Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #369961

    Im trying to add a link to bookatable booking for a restaurant. I use the code module to add the link, and it works. But it breaks the googlemap function on page in the process.

    Link to page
    http://restaurangfoto.se/martentrotzig/boka/

    link is at the bottom of the page on the left column.

    The google page is on the right (not showing now for some reason)

    Link to live site where i haven’t added the code yet, and the googlemap function is working:
    http://martentrotzig.se/boka/

    Code used for the bookatable link

    <!-- Start Bookatable Code -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type="text/javascript" src="https://bda.bookatable.com/deploy/lbui.direct.min.js"></script>
    <a id="target" href="#">Boka Online via BookAtable</a>
    <script type="text/javascript">
      $(function () { $("#target").lbuiDirect(
    {
         connectionid  :  "SE-RES-MRTENTROTZIG_104746:11770",
         language  :  "sv-SE",
         popupWindow  :  {
           enabled  :  true}
        });
    });
    </script>
    <!-- End Bookatable Code -->

    Any ideas what causing this and how i can remedy it ?

    I need the link, but i also want the google plugin to work.

    #370240

    Hi Paul!

    Remove this part,

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    

    Loading two copies of jQuery will cause javascript errors.

    And then change this part,

    $(function () { $("#target").lbuiDirect(
    

    To this.

    jQuery(function () { jQuery("#target").lbuiDirect(
    

    Regards,
    Elliott

    #370265

    Thank you!!!

    Much appreciated!!

    Regards
    Paul L.

    #370270

    Another question now that i got the script working.. :-)

    Is there a way to attach this script/link to a icon box or a button ?

    The way i implement it now is simply thru a code module or a plain text module(html)

    Thanx!

    #370412

    Hey!

    I believe you change the target to attach lbuiDirect here:

    jQuery(function () { jQuery("#target").lbuiDirect(
    

    For example an Avia button with a custom class:

    jQuery(function () { jQuery(".avia-button.custom_class").lbuiDirect(
    

    Regards,
    Josue

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.