SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jan 2006
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iframe trouble in IE

    Hey, all, I need some help with troubleshooting...

    I am working on a webpage with an iframe that behaves badly in IE. FireFox and Netscape seem to have no trouble. IE displays everything except the iframe (iframes actually, there are four, one works, the other three, all similar, do not), sits and grinds with repetitive clicking sounds. When I have opened the local file on my box, it dies (IE crash) after a minute or so.

    You can look at the page at:

    http://www.geocities.com/jones_j_j/listings.html

    The iframe is linking to an external page (that I didn't write), so I am not familiar with all of the code there (and can't change it anyway).

    I am curious if it has to do with the javascript that is pulled into the iframe.

    Any ideas?

    Thanks

    J

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    It appears that the site you are linking to has some sort of difficulty in inerpretting the link id you have given. There is no problem with your iframes at all.

    I would suggest contacting the company and asking them if they have put anything on the link that distinguishes between iE and other browsers. Its unlikely but you never know!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Member
    Join Date
    Jan 2006
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I hadn't considered that.

    I am a little confused, though. What do you mean by something that they might have put "on the link"?

    The other thing that is strange, is that the full URL, including the ID value, works just fine in IE. It is only when it is embedded in my page (thru the iframe) that it causes problems.

    ~J

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    It does for me as well but when it is trying to load on the page inside the iframe, it generated a complex coded url (look in the status bar as it is loading).
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #5
    SitePoint Member
    Join Date
    Jan 2006
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I noticed that ugly business as well.

    When I looked at the source, there is a piece of JavaScript with the declaration:

    Code:
    var ReloadURL = 'Email.aspx?c=AAEAAAD*****AQAAAA...'
    (I clipped the assigned value in the interest of brevity)

    That is why I was wondering if it had to do with the JavaScript.

    On the other hand, I seem to remember a forum discussion about IE reloading iframes more often... or something like that. Honestly, it wasn't what I was looking for at the time, so I didn't read it though. Could that be what is going on?

    Do you know anything about that behavior?

    ~J

  6. #6
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    is there any chance you could post a bit more of that script J?
    it is probably the cause but not my bag i'm afraid. You might do better in the Javascript forum if you post more code in this thread I will ask a mod to move it for you.

    Spike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  7. #7
    SitePoint Member
    Join Date
    Jan 2006
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can do that.

    The inline JavaScript to be seen is below:

    Code:
    <SCRIPT language="javascript" src="/Matrix/Functions.js"></SCRIPT>
    <SCRIPT language="javascript" src="PublicDisplay.js"></SCRIPT>
    <script>
    	window.onload = pageLoadSetup;
    	var MaxSearchRecords = 500;
    	var SetSize = 1;
    	var PageSize = 1;
    	var OverLimit = false;
    	var VisitNumberCookieName = 'VisitNum'
    	var VisitNumber = 0;
    	var bIsPublicPage = true;
    	var ReloadURL = 'Email.aspx?c=AAEAAAD*****AQAAAAAAAAARAQAAAE0AAAAGAgAAAAEwCgYDAAAAATUKBgQAAAADMjY5DRIGBQAAAAY0OTE5ODcNBQYGAAAAAjI1BgcAAAABMA0FBggAAAAGw5tUw7ZTBgkAAAABMA0nCw))';
    
    	CheckBack();
    </script>
    I managed to download the Functions.js and PublicDisplay.js files, but I could not find a definition for the pageLoadSetup function/procedure.

    CheckBack Seems to just be checking if the user clicked the back button (based on the inline comment; I don't really understand the code completely). I found it in the PublicDisplay.js file:

    Code:
    function CheckBack()
    {
    	if(typeof(VisitNumberCookieName) == 'string')
    	{
    		var VisitCookie = GetCookie(VisitNumberCookieName);
    		if(VisitCookie != VisitNumber)//they clicked back!
    		{
    			location.replace(ReloadURL);
    		}
    	}	
    }
    It does use the suspicious 'ReloadURL' variable though.

    Thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •