Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old August 5th, 2002, 10:13 AM
saramaca saramaca is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 2 saramaca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question JScript: document.open('text/html', 'replace') trouble in IE6

Hi everyone,

I read "Internet Explorer 6 Hacks And Holes Exposed" Mitchell's story [1] and I wonder if any of you is aware of an additional problem regarding JScript document.open method params -- triggered on URL

IE6 does not seem to honor the value of sName optional param when it is set to "replace" string [2]: "When opening up a new document, specifying the String replace for sName designates that the new document is to replace the current document in the history list". In a javascript quiz [3] I developed 2 years ago, each question is being written to the same frame and obviously should not generate an entry in window history. But in IE6, it's a whole different story since each question is being added to the IE6 history list (!) and calling top.history.back() doesn't even restore the 'previous' page as intended (works in all browsers, Opera excepted -- but support for JavaScript isn't perfect in this particular browser).

Any idea? Do I need to add some IE6-specific code?

Thanks in advance,

[1] URL

[2] URL

[3] URL

Last edited by saramaca : August 6th, 2002 at 04:05 AM.

Reply With Quote
  #2  
Old August 6th, 2002, 02:53 AM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Michael,
Have you tried replacing the JavaScript with the equivelant server-side code to perform the marking, etc on the server-side?

Reply With Quote
  #3  
Old August 6th, 2002, 04:03 AM
saramaca saramaca is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 2 saramaca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Already have at hand a server-side quiz written in PHP when we were organizing contests and people could win some prizes... this way they could not peek at the source code and get the right answers. On the other hand, the 2 JavaScript quizzes I have written are here only for fun. They do have an advantage over the server-side script: they load in one pass and keep the state w/o making any further request to the server. And I'm not enclined to convert the whole thing to PHP (or Perl) just because Microsoft IE6 has changed the rules regarding its handling of document.open params. Is there a way to contact Microsoft and warn them there is a bug within the IE6 JScript implementation? Or again maybe there is a work-around ?[*]
[*] I tried to assign the html code to a variable (e.g. nextQ) and then invoke location.replace("javascript: nextQ") for the current frame... Though it works in NS4 and Mozilla, it doesn't work at all with IE5.x Mac (doesn't go any further than 2nd question; seems to be a memory leak problem but I don't have much time to investigate)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > JScript: document.open('text/html', 'replace') trouble in IE6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway