problem with iframe

Discussion in 'ASP .Net' started by =?Utf-8?B?QWFyb24gR3Vv?=, Jan 11, 2006.

  1. 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?
    =?Utf-8?B?QWFyb24gR3Vv?=, Jan 11, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    670
  2. mi
    Replies:
    4
    Views:
    13,418
    dorayme
    May 21, 2008
  3. elca
    Replies:
    0
    Views:
    557
  4. Scott
    Replies:
    6
    Views:
    919
    [MSFT]
    Apr 14, 2004
  5. Daedalous
    Replies:
    3
    Views:
    660
    Daedalous
    Jan 16, 2004
Loading...

Share This Page