Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: Re-directing access within Frames #2

irt.org | About | Feedback | 56 [ previous next ]

Feedback on:
Re-directing access within Frames #2

Sent by
chris hayes on December 01, 1998 at 09:16:41: Dear great people!
i have a slash mixup //\\ problem creating an empty pathname in newURL.

>make a generic script that >calulates the absolute path >using:
(btw typo in calulates)

Your calculation:
newURL = location.protocol + '//' + location.host + location.pathname.substring(0,location.pathname.lastIndexOf('/')) + '/newpage.htm'


Seems generic but when i work local/offline in MS IE 3 i get a pathname like
Even if i try to stubbornly open it with only / slashes, but that is immediately corrected to \ again.
So /c:\data\evwdemo\index2.htm
will of course be stripped to zilch/nada/noppes.

How then ? So this one must be stripped in another way. I'll try to swap all \'s to /'s first (nasty workaround) but since you understand it all a bit better than i do....

chris hayes
droevendaal
wageningen

Other feedback on 'Re-directing access within Frames #2' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.