JS bug: location.hash, .href
Will Stephenson
william.stephenson at ncl.ac.uk
Tue May 7 12:12:39 BST 2002
Please excuse me asking the list about this but I am not sure if it is a bug,
I will post it to bugs.kde.org if it is.
I was using a form (http://www.gradschools.ac.uk/apply/apply_apply.html), some
JS in it moves you around, but has the unpleasant side effect of blanking the
form of all input so far.
I looked around and found it was because they assign to location.href in order
to move the user around the form, I've produced a testcase which demonstrates
this, but more importantly, using location.hash (which I think is the proper
way) to move to a named anchor also clears the form.
I have a hunch that IE users wouldn't see the form cleared with either .href
or .hash as its crazy caching fills out the form contents again for you.
I don't really know whether what is being done here is canonical JS (not a
specialist) so I would appreciate it if you could tell me if Konq is behaving
correctly or if it's a bug.
Testcase attached below.
Please cc: me in on any reply as I'm not subscribed.
Will
--
---------------------------------
Will Stephenson
Dept. of Computing Science University of Newcastle-upon-Tyne, UK
Telephone +44 191 2228067 ICQ# 51765637
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020507/9d97766e/attachment.html>
More information about the kfm-devel
mailing list