Remote Scripting with IFRAME
-
hi friend i am using Remote Scripting with IFRAME. There are two page one is Client.aspx and Server.Aspx. Client.aspx Contains:- (script type = "javas") function GetDate(msg) { alert(Msg); } (script) ( name="RSIFrame" style="width:0px; height:0px; border: 0px" src="blank.html">(/iframe>) <b> (server contains :-</b> (script type="text/javascript"> window.parent.GetDate('<%=request.servervariables("SERVER_SOFTWARE")%>'); br mode="hold" /> (body> <form id="form1" runat="server" target="RSIFrame"> <div> <input type="text" name="whatever" /> <asp:button id="Button1" runat="server" text="Button" /> </div> /body) <b>It's Work Properly when Server and client page o same System. if Server page open On different system and client page open deferent system then its not communicate(Its not Work Properly). any body have solotion of this problem... ans Link Which i follow:-</b> <a href="http://developer.apple.com/internet/webcontent/iframe.html">http://developer.apple.com/internet/webcontent/iframe.html</a>[<a href="http://developer.apple.com/internet/webcontent/iframe.html" target="_blank" title="New Window">^</a>] <div class="ForumSig">Piyush Vardhan Singh p_vardhan14@rediffmail.com http://holyschoolofvaranasi.blogspot.com http://holytravelsofvaranasi.blogspot.com </div></form>
-
hi friend i am using Remote Scripting with IFRAME. There are two page one is Client.aspx and Server.Aspx. Client.aspx Contains:- (script type = "javas") function GetDate(msg) { alert(Msg); } (script) ( name="RSIFrame" style="width:0px; height:0px; border: 0px" src="blank.html">(/iframe>) <b> (server contains :-</b> (script type="text/javascript"> window.parent.GetDate('<%=request.servervariables("SERVER_SOFTWARE")%>'); br mode="hold" /> (body> <form id="form1" runat="server" target="RSIFrame"> <div> <input type="text" name="whatever" /> <asp:button id="Button1" runat="server" text="Button" /> </div> /body) <b>It's Work Properly when Server and client page o same System. if Server page open On different system and client page open deferent system then its not communicate(Its not Work Properly). any body have solotion of this problem... ans Link Which i follow:-</b> <a href="http://developer.apple.com/internet/webcontent/iframe.html">http://developer.apple.com/internet/webcontent/iframe.html</a>[<a href="http://developer.apple.com/internet/webcontent/iframe.html" target="_blank" title="New Window">^</a>] <div class="ForumSig">Piyush Vardhan Singh p_vardhan14@rediffmail.com http://holyschoolofvaranasi.blogspot.com http://holytravelsofvaranasi.blogspot.com </div></form>
Sounds like a "cross site scripting" problem, which is not allowed. See this article. It has information about this, including iframe usage. http://www.codeproject.com/KB/scripting/Cross_site_scripting.aspx[^]
Steve