Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > about NOT getting framed

Reply
Thread Tools

about NOT getting framed

 
 
Ricardo Garcia
Guest
Posts: n/a
 
      09-22-2004
hi again, i have a page with frames, and my navigation frame uses XML with
XSL, but the problem is that neither opera nor konqueror support XSL, so my
wish is that at load, if the browser is opera or konqueror, goes to a page
without the navigation frame
my index.html has the frames: navFrame.xml and home.html

so i put a script at startup:

if (getBrowser()=="Opera" || getBrowser()=="Konqueror") //these methods work
properly
if (self != top)
window.top.location.href = "home.html";

the problem seem that it gets into a circle, and the browser keeps loading
index.html one and another time

Could somebody help me??

Thanks




 
Reply With Quote
 
 
 
 
kaeli
Guest
Posts: n/a
 
      09-23-2004
In article <GDn4d.142082$(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed) enlightened us with...
> hi again, i have a page with frames, and my navigation frame uses XML with
> XSL, but the problem is that neither opera nor konqueror support XSL, so my
> wish is that at load, if the browser is opera or konqueror, goes to a page
> without the navigation frame
> my index.html has the frames: navFrame.xml and home.html
>
> so i put a script at startup:
>
> if (getBrowser()=="Opera" || getBrowser()=="Konqueror") //these methods work
> properly
> if (self != top)
> window.top.location.href = "home.html";
>
> the problem seem that it gets into a circle, and the browser keeps loading
> index.html one and another time
>
> Could somebody help me??


Aside from the fact that is a very bad idea, as many more browsers exist than
you could know about and they may not support XML/XSL either...

Where is this script located? In the frameset, or in one of the pages that
loads? If it's in the frameset, self will be equal to top and the location
will never change.


--
--
~kaeli~
Cthulhu saves our souls and redeems them for valuable
coupons later.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
__doPostBack and Response.direct not working in non-framed pages. =?Utf-8?B?Q2xhcw==?= ASP .Net 0 11-10-2005 01:35 PM
servlet help - redirecting from within a framed servlet ppcguy Java 1 08-08-2005 03:03 PM
help read URL from framed JSP Chumpmeister Java 2 05-29-2004 10:08 AM
Sessions when using Framed web site? =?Utf-8?B?Q2hyaXN0b3BoZXI=?= ASP .Net 1 01-26-2004 12:35 AM
js not working when framed newbieTW Javascript 0 01-05-2004 05:32 PM



Advertisments