Guys,
It might be a good idea to lose the */ since there ain't no /* -
particularly since IE6 warns about the syntax error at line 15 char 22,
which is where it's at.
Hth,
Ian

-----Original Message-----
From: Dwayne Hope [mailto:[EMAIL PROTECTED] 
Sent: 01 November 2004 20:01
To: [EMAIL PROTECTED]
Subject: RE: SPAM-LOW: [AspNetAnyQuestionIsOk] IE 6.0 Javascript question


the only I had to change to get it to work was 
before 
window.location.hostname.toString().split('.').slice(-2).join('.');</script>
 
add a <script> tag.
 
Dwayne

Peter Brunone <[EMAIL PROTECTED]> wrote:
Hi Burak, 

      First of all, you don't need the "javascript:" pseudoprotocol in
an event handler; it's only necessary in mechanisms that assume another
protocol, like an anchor tag which defaults to "http:" if you don't
specify.

      Second, I'm not sure you can call a function as an attribute of
a window.  You might try top.document.frameRedirect(), and if that
doesn't work, maybe put an invisible link in the top frame that you can
click programmatically to trigger the function.

      Of course, it might be better still to have a javascript include
file that you can just call from any page as necessary...

Cheers,

Peter

-----Original Message-----
From: Burak Gunay [mailto:[EMAIL PROTECTED] 

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('.');</scr
ipt>
  <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



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 Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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