I would guess it is the statement
 
if (location)
 
it should be some boolean expression like if (location != null)
 
HTH
 
Dwayne

Burak Gunay <[EMAIL PROTECTED]> wrote:

Hello,

I have an index.html file as follows

  <html>
  <head>
  <meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
  <title>Career OneStop Coach</title>
  <script type="text/javascript">document.domain =
window.location.hostname.toString().split('.').slice(-2).join('.');</script>
  <script type="text/javascript">
  <!-- //
   function frameRedirect() {
   var defaultURL =
"http://newcoach.careeronestopcoach.org";;
    var location = top.location.search.toString();
    var path = '/'
    if ( location ) { path = location.split('=')[1]; }
       document.getElementById('OnlineCoachFrame').src
= defaultURL + path; */
        }
      // -->
    </script>
        </head>
        <frameset id="ExteriorFrame" rows="0,*">
                <frame src="/empty.html" name="Empty"
scrolling="none" noresize="noresize" frameborder="0"
/>
                <frameset id="InteriorFrame"
cols="*,300">
                        <frame
src="http://www.careeronestop.org"; name="Content"
scrolling="auto" />
           <frame
src="http://newcoach.careeronestopcoach.org";
id="OnlineCoachFrame" name="OnlineCoach"
scrolling="auto" frameborder="1" />
       </frameset>
   </frameset>

    </html>

And empty.html has

<html>
   <head>
      <script type="text/javascript">
          <!-- //
         document.domain =
window.location.hostname.toString().split('.').slice(-2).join('.');
        // -->
      </script>
   </head>
   <body onload="javascript: top.frameRedirect()">
<body>

        </body>
</html>

When I try to bring up this page in IE 6.0 I get an
error message complaining about the javascript
function
frameRedirect. No matter what's in that function, the
browser complains.

When I comment out the <body onload=...>, the page
comes up fine.

How can I fix this problem?

Thank you,

Burak





            
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 



Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to