Welcome to TalkGraphics.com
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28
  1. #11
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How to construct URL that calls javascript and loads .html file

    Quote Originally Posted by Markku View Post
    The iFrame does not load the .htm file. The popup works fine.
    Check if you have correctly set the iframe's ID property.
    John.

  2. #12

    Default Re: How to construct URL that calls javascript and loads .html file

    The id was "content" and apparently that was no good. I changed it to "Kontent" and it started working.

    Thanks for leading me to it.

  3. #13
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How to construct URL that calls javascript and loads .html file

    Aha. There are some names that can't be used for ID in IE. I guess we had this issue before but I don't remember what name was used. To make sure this doesn't happen, I suggest always using unique names. Like those I use in tweaks, starting with some sort of prefix, for example: "my_frame", "jw_place1", Markku_Object_1", e.t.c.
    John.

  4. #14

    Default Re: How to construct URL that calls javascript and loads .html file

    Good to know that IE doesn't like some id names. From my experience so far Chrome seems to be least strict of all the browsers. In my recent project everything worked fluently with Chrome when IE, Firefox and Safari were choking with some naming mistakes I had made.

  5. #15

    Default Re: How to construct URL that calls javascript and loads .html file

    Oh no!

    There is still a problem with IE6, which won't load source html (scr).
    The current id is "My_Kontent" and still nothing loads.

    Just happens to be so that my customer has IE6 installed throughout, so I cannot ask them to upgrade.

    Are there any tricks to solve this?

  6. #16
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How to construct URL that calls javascript and loads .html file

    Show the entire link that you use.
    John.

  7. #17

    Default Re: How to construct URL that calls javascript and loads .html file

    Do you mean the placeholder's code?

    HTML Code:
    <iframe id="My_Kontent" width=100% height=100% scrolling=no frameborder=0 marginheight=0 marginwidth=0 allowTransparency="true" src="atom_etusivu.htm"></iframe>

  8. #18
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How to construct URL that calls javascript and loads .html file

    No, I mean the code that you place in the link field. The one that starts with "javascript:"
    John.

  9. #19

    Default Re: How to construct URL that calls javascript and loads .html file

    Ah, that...

    Code:
    javascript:document.getElementById("My_Kontent").src="co_person.htm";my_open("IntTrig");my_open("My_Toolbox2");my_close("My_Toolbox1");
    The actual problem is that IE6 does not load the .htm that is referenced in the iFrame code by scr.

    Neither does it load the above url (co_person.htm).

  10. #20
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: How to construct URL that calls javascript and loads .html file

    So that you don't see any content at all, even the initial "atom_etusivu.htm" in the frame with IE6?
    Have you only tried to open that page from the HDD or is it the same on-line?
    I have checked simple iframe with IE6, and it seems to work fine here (locally and online).
    John.

 

 

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
  •