Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi..

 

in iframe the url not loading in chrome and safari browsers.

 

how to handle this..

 

is it any other alternate for iframe in order to load URL tat should support all browsers.

it is working only in IE.

 

need ur suggetsions..

 

 

my page is like below:

 

<html>

<head runat="server">

<meta http-equiv="X-UA-Compatible" content="IE=8" />

<body>

<form id="form1" runat="server">

<iframe id="ifrmEBOOK" runat="server" width="100%" height="700px"></iframe>

</form>

</body>

</html>

 

 

 

regards

gopal.s

Posted (edited)

Re: Iframe URL not loading in chrome

 

There was someone named "gopal krish" that asked a similar question

(with somewhat similar html code) in an EggHead Cafe page.

You can read the answer he got here.

 

Don't know about Safari, but Chrome is a little funny about iframes.

 

If you read here you'll find:

...If you're using frames or iframes, specify the encoding at the top of the source of those frames, as well. Some browsers (including Google Chrome) won't recognize encoding declarations that appear deep in a document (such as after CSS or script in your document's head section)....Also make sure that your web server is not sending conflicting HTTP headers. Headers sent by the web server will override any charset declarations in your page.
..a small code snippet showing "Example of good encoding placement" follows the above quoted text on the linked-to page..

 

As regards to debugging for Safari you have not shown any CSS code that may be tied to:

id="ifrmEBOOK",

 

So all I could do is offer a few tentative links (1, 2) to explore..

I myself have fallen prey to this little javascript generated iframe onLoad "gotcha".

Edited by dotnetguy37

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...