Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem with iframe

Reply
Thread Tools

problem with iframe

 
 
=?Utf-8?B?QWFyb24gR3Vv?=
Guest
Posts: n/a
 
      01-11-2006
i set a iframe in b.aspx,and if set it as
<iframe id=”frm1” src=”xxxxxxxxxxxxxx.aspx?para1=<%=var1%>”></iframe>
,on some client pc the iframe can not be rendered to ie.and the result of
'view source' of b.aspx,i can noly file a '</iframe>' tag ,the '<iframe
id...' lost.

but if set the iframe as <iframe id=”frm1” src=””></iframe> and use a js to
set its src dynamiclly like this
<script language=”javascript”>
var ifrm = document.getElementById(“frm1”);
if (typeof(ifrm) != ‘undefined’ && ifrm != null)
{
ifrm.src=” xxxxxxxxxxxxxx.aspx?para1=<%=var1%>”;
}
</script>
,everything goes ok.

why? is there any difference between the two way?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
form have 2 iframe.problem to input text in other iframe elca Python 0 10-21-2009 10:00 AM
how to use an iframe as a link (make the whole iframe clickable) mi HTML 4 05-21-2008 10:13 PM
Targeting a parent iframe from a sub-iframe albanitus@yahoo.com HTML 0 11-15-2006 04:40 PM
IFRAME - Refresh Table on Parent Window - maintain IFRAME State Scott ASP General 6 04-14-2004 05:48 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments