Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Safari selectedIndex problem in Javascript

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  setting PATH for GUI to provide to apps?  
Author Message
Nick Z

External


Since: Aug 15, 2006
Posts: 1



(Msg. 1) Posted: Tue Aug 15, 2006 3:55 am
Post subject: Safari selectedIndex problem in Javascript
Archived from groups: comp>sys>mac>programmer>misc (more info?)

Hi,

I've been trying to find a solution to this problem in the Safari support
forums but haven't had any luck so far. In Internet Explorer and
Firefox/Mozilla/Netscape, I can programatically set
"myselectbox.selectedIndex = -1" and when I submit my form, the selectbox
value is passed as null or nothing, which is expected. Safari (the latest
version 2.0.4) sets the selectbox to the first value when I submit my form.
What it really does is, it sets the "selectedIndex" property to 0. It
doesn't understand the "-1" value. Is there a workaround for that in Safari
to mimic the behavior from IE/Firefox/Safari/Netscape or will I just have to
"cheat" and add a blank field in each one of my SELECT boxes.

Thanks a lot!

 >> Stay informed about: Safari selectedIndex problem in Javascript 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Embedded Javascript Interpreter OS X - Folks, I've been exploring the options for some time now, on including a javascript interpreter in my Mac OS X application, and was hoping for a few comments. Ideally, I'd love to be able do the following in my code: #include "jsinterpreter.h&quo...

quicktime callback functionality in javascript - Hiya, I konw WMP has a callback functionality (see below). The question is : is there a similar callback (event-listener) functionality I can use in javascript for an embedded QT movie.? Ciao WMP Javascript callback functionality Eg <script..

Help with SAFARI problems/ IE too! - HELP!!!!!! I had been having some huge problems with system 10.2.6 crashing my machine with IE launched version 5.2.3. So, I decided to remove the IE program completely and install SAFARI. I do like safari quite a bit but am having trouble with active...

Showing a URL with Safari - Hello, how can i control Safari from an X11 application. I must show a webpage inside the browser and resize the window. Also i must be sure that the browser does not open a new window every time i show an URL.

O'Reily's Safari Service? - Hi. Anyone use the Safari online book service? Seems like a neat idea but I'm so used to real books that I dunno if it works. - you can't curl up with the book. I'd like to cut down on my bookshelf, though. It's getting oppressive (especially all those..
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]