-
AuthorPosts
-
December 18, 2014 at 3:17 pm #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.
December 18, 2014 at 9:58 pm #370240Hi 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,
ElliottDecember 18, 2014 at 10:57 pm #370265Thank you!!!
Much appreciated!!
Regards
Paul L.December 18, 2014 at 11:04 pm #370270Another 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!
December 19, 2014 at 2:57 am #370412Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.