javascript - Open healcode link in iframe -


The issue I am facing is preventing links from launching a new page and loading your href pricing in IRRM is. The client site is using the Haylocks that provides widgets for scheduling fitness classes etc. Check it when you click on the signup button when the widget loads, it opens a new page what the customer wants to open that link on the same page or in a popup window. Whatever I can think of, I have to try them all. I have used jQuery, Fancybox etc.

Code IM is used here.

I think that this is a problem, that my inline script loads schedule HTML before ending the widget scripts.

I know that this is possible because the same widget is used and opens the link in an overlay frame on the same page.

Please put some light on this

update:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Iframe id = "openViewHere" width = "500px" height = "500px" src = "" & gt; & Lt; / Iframe & gt; & Lt; Script type = "text / javascript" & gt; Healcode_widget_id = "7696499e81"; Healcode_widget_name = "schedules"; Healcode_widget_type = "mb"; Document.write (unescape ("% 3Cscript src = 'https: //www.healcode.com/javascripts/hc_widget.js' type = 'text / javascript'% 3E% 3C / script% 3E")); // Helldord Schedule Widget for Greater New York's Ayyangar Yoga Association: Brooklyn Deli Class Schedule & lt; / Script & gt; & Lt; Noscript & gt; Please & lt; A href = "https://www.healcode.com" target = "_ blank" & gt; Helcoda & lt; / A & gt; Enable javascript to get. Functionality & lt; / noscript & gt; & Lt; Script src = "https://code.jquery.com/jquery-1.11.1.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (". Signup_anu"). Click (function () {var url = $ (this) .attr ("href"); $ ("# openViewHere"). Attr ("href", url); return back;}); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;      

Just use this code:

Keep in mind that windows.ready () may cause the fire, while the widget script is still being added Dynamics of elements are the reason that the audience does not have to work, you have to use the element through the previously loaded parent (like "body").

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -