Dynamic Frameset

Results 1 to 2 of 2

Thread: Dynamic Frameset

  1. #1
    Join Date
    Dec 1969

    Default Dynamic Frameset

    I currently have this on my webpages...<BR><BR>&#060;script&#062; <BR>if(self.location.href==top.location.href){ <BR> top.location.href=&#039;http://www.blah.com/frameset.asp?page=&#039; + escape(self.location.href); <BR>}; <BR>&#060;/script&#062;<BR><BR>...it all works ok, gets the frameset and puts the relevant page in the correct frame etc...however I keep getting a "Done, but with Errors on the page" error in the status bar and it seems to point me to this line of code...<BR><BR> top.location.href=&#039;http://www.blah.com/frameset.asp?page=&#039; + <BR><BR>..any ideas anyone?<BR><BR>In addition when a page is visited that has the script running on it the actual address comes up like this for example...<BR><BR>http://www.blah.com/frameset.asp?page=http%3A//www.blah.com/news/index.htm<BR><BR>...Is there a way to automatically erase the first half of that within the address bar so that its better for users to bookmark the pages. So from the example it would become... http://www.blah.com/news/index.htm <BR><BR>..?

  2. #2
    Join Date
    Dec 1969

    Default RE: Dynamic Frameset

    &#060;script&#062; <BR>var sStub = "http://www.blah.com/frameset.asp?page=";<BR>var sSelf = self.location.href;<BR>var sTop = top.location.href;<BR>if(sSelf==sTop){ top.location.href = sStub + escape(sSelf); } <BR>&#060;/script&#062;<BR><BR>But I can&#039;t see what would be giving you an error.<BR><BR>As for the second question (removing a portion from the address bar): no.<BR><BR>Craig.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts