-
daveporter
Hi everyone,
I am redoing a site and it has a booking form that has an iFrame with Javascript.
I’ve searched the forums here, but unsure of the best way to get it to work!
The code I have received from the booking form people starts:
<script type='text/javascript'>
And ends
</script>
And the details they sent said: “Here is the iframe code to embed the eappointments booking into the website”I found one article here that says to create a shortcode, but not sure if that is the right way ?
Any help appreciated.
Dave
ps – I can provide the full code if required ? -
David
Hi there,
have you tried adding the script inside a HTML Block ?
-
daveporter
Thanks David,
I just tried that, and I see the <script> in the source code, but nothing displays.
Doesn’t it need to be in an iFrame somehow ?
I see no errors in the console!
Other thoughts ?
Dave -
David
What is the full code ? And can i see the site where the code has been added ?
-
daveporter
Thanks David, info in the Private info
-
David
In the script there is the
po.src
which contains a URL to thed4w/resources/js/iframe.min.js
and that URL is throwing a 403 Forbidden error. The code provider would need to help resolve that. -
daveporter
Thanks David,
Sorry I had the wrong code in there – I found the code from the old site and tried that and forgot to put it back.
The only difference is the number on the end of that po.src line.
I tried again, but still no luck – I don’t see any 403’s, but I’m not sure 100% where to look.
But I’ll run it past the supplier of the booking program as well.
Dave -
Alvind
Hi there,
When you run the URL in the browser, it indeed returns a 403 error. It should return some JS code if the URL is correct.
You will definitely need to reach out to the booking app’s support team.
Let us know how it goes.
-
daveporter
Ok thanks very much, I’ll wait for their reply! I’ve sent a support request!
Dave -
Alvind
No problem!
-
daveporter
Closing this one off – the developer of the booking program got back to me with revised code.
It just required me to add a script to an element and then the page just needed some custom HTML that was just a div with an ID to point it to the script and it all seems to be working OK.
Thanks, Dave -
Alvind
Glad you managed to resolve it!
- You must be logged in to reply to this topic.