SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jul 2000
    Location
    Odense - Denmark
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi!

    Sometimes on my HP Javascript doesnt seem to work! Most of the time it does, but sometimes I get an error stating that a certain function doesnt exsists. Here is the code:

    <HTML>
    <HEAD>
    <SCRIPT LANGUAGE="JavaScript">

    function loadFrames(frame1,page1,frame2,page2) {
    eval("parent.mother."+frame1+".location='"+page1+"'");
    eval("parent.mother."+frame2+".location='"+page2+"'");
    }

    </script>

    <BODY>
    <A HREF="javascript:loadFrames('main_window','home.html','main_left','home_left.html')"><img src="home1.gif" BORDER=0 name=home></a>
    </body>
    </html>

    I sometimes get the message that "loadFrames" doesnt exsists. Is this "my problem" or is it my Netscape 4.xx thats not working proberly?

  2. #2
    ********* Addict DLG_1's Avatar
    Join Date
    Jun 2000
    Location
    Texas, USA
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so are you trying to make it so that when someone clicks on the image it will "loadFrames()"?

    sam

    [This message has been edited by DLG_1 (edited July 20, 2000).]

  3. #3
    ********* Addict DLG_1's Avatar
    Join Date
    Jun 2000
    Location
    Texas, USA
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by madsen:
    Hi!

    Sometimes on my HP Javascript doesnt seem to work! Most of the time it does, but sometimes I get an error stating that a certain function doesnt exsists. Here is the code:

    &lt;HTML&gt;
    &lt;HEAD&gt;
    &lt;SCRIPT LANGUAGE="JavaScript"&gt;

    function loadFrames(frame1,page1,frame2,page2) {
    eval("parent.mother."+frame1+".location='"+page1+"'");
    eval("parent.mother."+frame2+".location='"+page2+"'");
    }

    &lt;/script&gt;

    &lt;BODY&gt;
    &lt;A HREF="#" onClick="loadFrames('main_window','home.html','main_left','home_left.html')"&gt;&lt;img src="home1.gif" BORDER=0 name=home&gt;&lt;/a&gt;
    &lt;/body&gt;
    &lt;/html&gt;

    I sometimes get the message that "loadFrames" doesnt exsists. Is this "my problem" or is it my Netscape 4.xx thats not working proberly?
    <HR></BLOCKQUOTE>


  4. #4
    ********* Addict DLG_1's Avatar
    Join Date
    Jun 2000
    Location
    Texas, USA
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using this instead.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    &lt;A HREF="#" onClick="loadFrames('main_window','home.html','main_left','home_left.html')"&gt;&lt;img src="home1.gif" BORDER=0 name=home&gt;&lt;/a&gt;

    [/code]


  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    madsen,

    It would help if you could tell us what "certain function doesn't exist."


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  6. #6
    SitePoint Member
    Join Date
    Jul 2000
    Location
    Odense - Denmark
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by kyank:
    madsen,

    It would help if you could tell us what "certain function doesn't exist."

    <HR></BLOCKQUOTE>

    The "certain function" is loadFrames(). Hence the last line in my message...
    The script actualle works about 95% of the time. But sometimes it just doesnt, and I have to reload the frame with the script. It really wierd!

    [This message has been edited by madsen (edited July 20, 2000).]


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
  •