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
|