javascript - Call a jsp Page in an iframe -
i working on interface using jsp pages , javascript. project structure shown here.
in main jsp page(veditor.jsp) under views, have properties panel division.
veditor.jsp
... <!--container/canvas--> <div id="container" class="container"> </div> <!--properties panel--> <div style="float: left" class="property" id="propertypane"> <h1 class="toolbox-titlex" id="toolbox-titlex">properties</h1> <iframe class = "panel" id="lot"></iframe> </div> ... here need call selectclauseform.jsp page within veditor.jsp's iframe in properties panel using veditor.js javascript.
veditor.js
if (dropelem == "stream ui-draggable") { var newagent = $('<div>').attr('id', i).addclass('streamdrop'); var elemtype = "table"; $("#container").addclass("disabledbutton"); $("#toolbox").addclass("disabledbutton"); $('#container').append(newagent); callselectclauseform(); } function callselectclauseform() { alert("called before"); document.getelementbyid("lot").src = 'selectclauseform.jsp'; alert("called after"); } i getting both alerts within callselectform() method properties panel not loading , getting following error.
as shown above, when calling createtableform(...) method, need call selectclauseform.jsp within iframe in veditor.jsp.
is because path wrong in src location? suggestions on how can load jsp inside iframe using javascript highly appreciated new this.
you can follow url. load jsp file , add response content in div.you can achieve same in iframe.



Comments
Post a Comment