i




 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
url not loading inside iframe in mac safari browser after hosting
01-09-2012, 06:04 AM (This post was last modified: 01-09-2012 06:15 AM by gopal_nivas.)
Post: #1
Not Solved url not loading inside iframe in mac safari browser after hosting
hi..
i want to load ebook url inside iframe.
it works in all browsers. except in mac machine safari browser and and IE9 browser ..

how to handle this..
my iframe syntax is:
"iframe runat="server" id="ifrm" style="width: 956px; height: 500px" name="ifrm"

then i load url pro grammatically for the ifraame..
how to handle this..
need ur suggestions with examples

regards
gopal.s


Quote
01-09-2012, 06:34 AM
Post: #2
Not Solved RE: url not loading inside iframe in mac safari browser after hosting
yes, in safari browser, when you will try to change the src property, nothing will happened, but to overcome the issue, you need to generate the whole iframe in code and then assign that iframe to some div, this will resolve the issue
here is the sample code
Code:
<div id="containFrame" runat="server">
</div>

public void GenerateFrame(string urlsrc)
{
string frame="<iframe id='ifrm' style='width: 956px; height: 500px'";
frame += " src='"+urlsrc+"' ></iframe>";
containFrame.innerHtml = frame;
}

i wrote this code directly on post, so if there is some mistake, then let me know again.

[Image: 2604595733.png]
Quote
01-09-2012, 07:20 AM
Post: #3
Not Solved RE: url not loading inside iframe in mac safari browser after hosting
hi nisar..
the above code also not loading ..
ur code and my code i used earlier loads the background color of the url and if right click and view the source of the iframe then it gives the url information but it is not loading the content of the url. it show blank screen .


this issue also in IE9.

regards
gopal.s
Quote
01-09-2012, 08:28 AM
Post: #4
Not Solved RE: url not loading inside iframe in mac safari browser after hosting
hi,
can i view the behavior of your code, if it is deployed somewhere then please share the link.

[Image: 2604595733.png]
Quote
01-09-2012, 08:47 AM
Post: #5
Not Solved RE: url not loading inside iframe in mac safari browser after hosting
hi, i have IE 8, FF and chrome.
and below code is working fine for me
Code:
protected void Page_Load(object sender, EventArgs e)
    {
        GenerateFrame("http://www.dotnetobject.com");
    }

    public void GenerateFrame(string urlsrc)
    {
        string frame = "<iframe id='ifrm' style='width: 956px; height: 500px'";
        frame += " src='" + urlsrc + "' ></iframe>";
        containFrame.InnerHtml = frame;
    }

[Image: 2604595733.png]
Quote


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  iis configuration Hosting Website praveen 9 814 03-17-2014 07:49 AM
Last Post: praveen
  other server URL not loading isside IFRAME Issue gopal_nivas 1 448 04-29-2013 05:21 AM
Last Post: magnum_2007
  Mac Safari - Silverlight application Loads Everytime gopal_nivas 1 451 04-12-2013 10:55 AM
Last Post: magnum_2007
  Avoid Silver light Loading Process in silverlight5 gopal_nivas 1 366 03-21-2013 06:58 AM
Last Post: magnum_2007
  Find Control inside stackpanel and hyperlink button inside datagrid control gopal_nivas 1 960 01-21-2013 12:36 PM
Last Post: magnum_2007



User(s) browsing this thread: 1 Guest(s)