Skip to content Skip to sidebar Skip to footer

About Using Javascript In .php

I'm really actually just a html/css guy. I want to insert a booking form on to my page but i got a custom link for adding the form. The link consist of just basic script and I'm to

Solution 1:

@PalDev @Adder @RiggsFolly Thanks so much, at the end i as you mentioned it looks fine for a html file so i just used the html file coping it into this directory and on one of my page hooks I called the html using an iframe. It called the script succefully.

so my .html file helds the script:

<!-- Start Bookatable Code --><scripttype="text/javascript"src="https://bda.book..."></script><scripttype="text/javascript">LBDirect_Embed({
  connectionid  :  "ZA-RES-THELIVINGROOMATLEQUARTIERFRANCAIS_283714:67970"
  });
  </script><!-- End Bookatable Code -->

Then my page.php hooks the following page part_page-info.php which contains the iframe calling my .html file:

<tdwidth="30%"align="right"><iframestyle="display: block; width: 100%; height: 404px;"src="/wp-content/theme/leeu/content/leeu-test/tasting-room/test.html"></iframe></td>

This then displays the JavaScript i was looking for.(im just mentioning i think i did not work because all the other pages im not mentioning thats also been called and hooked from page.php has JavaScript interrupting the Script im trying to use).This was my easy solution around it.

Post a Comment for "About Using Javascript In .php"