jquery - Accordion inside iframe -
I have a scenario where my IFrame is dynamically loaded by the onclick function.
I'm trying to use AdWords in the Iframe but Below is my jquery code Is there a solution? Iframe code: I have jquery and amp; Jquery-ui file in parent.html Your accordion initialization code is as follows: If I think your parent page is accordion () function is not working.
$ (function () {$ ("#accordion"). Accordion ();});
& lt;% @ page language = "java" contentType = "text / html; charset = ISO-885 9-1" page encoding = "ISO-8859-1"%> & Lt;% @ taglib prefix = "c" yur = "http://java.sun.com/jsp/jstl/core"% & gt; & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transcription // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = ISO-885 9-1" & gt; & Lt; Script & gt; $ (Function () {$ ("#Erdian") .Ardian ();}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt;% ApplicationBean app = (ApplicationBean) request.getAttribute ("app");%> & Lt; C: Out Value = "$ {app.getAppName ()}" /> & Lt; Div id = "accordion" & gt; & Lt; H3 & gt; Apply & lt; / H3 & gt; & Lt; Div & gt; & Lt; P & gt; & Lt; / P & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; Td> Application name & lt; / Td> & Lt; Td> & Lt; C: Out value = "$ {app.getAppName ()}" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Service URL & lt; / Td> & Lt; Td> & Lt; C: Out value = "$ {app.getServiceUrl ()}" /> & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Posted time & lt; / Td> & Lt; Td> & Lt; C: Out value = "$ {app.getDeployTime ()}" /> & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Status & lt; / TD & gt; & Lt; TD & gt; & Lt; C: Select & gt; & Lt; C: when test = "$ {app.isRunning () == true}" & gt; Running & lt; / C: When & gt; & Lt; C: otherwise & gt; Down & lt; / C: otherwise & gt; & Lt; / C: Select & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; WSDL & lt; / TD & gt; & Lt; TD & gt; & Lt; C: Out value = "$ {app.getWsdls ()}" & gt; & Lt; / C: out & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; H3 & gt; Library & lt; / H3 & gt; & Lt; Div & gt; & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; H3 & gt; Message flow & lt; / H3 & gt; & Lt; Div & gt; & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt;
$ (function () {$ ("# accordion"). Accordion ();});
parent.html and the page you are using as an iframe
iframe.html , the code should not be on the
iframe.html page and on the
parent.html page.
Comments
Post a Comment