Safari and JavaScript

mac

Safari and JavaScript

Postby Tim Streater » Sat, 30 Apr 2005 00:37:32 GMT

{*filter*}y Safari 1.3. I spent a couple of hours proving to my satisfaction 
that my Javascript was correct and was indeed modifying the document 
objects correctly, and that the non-appearance on-screen of the effects 
of my JavaScript was not due to bugs I introduced elsewhere.

So I restarted Safari and all is fine. But it definitely seems there are 
still bugs.

-- tim

Similar Threads:

1.Safari and JavaScript arrays

Hello,

I am querying the JavaScript community to learn if 
others are having problems with Safari[1] and JavaScript 
arrays:

myImages = [
    "images/image0.jpg",
    "images/image1.jpg",
    "images/image2.jpg",
];
                                                                                
then referenced like this:
                                                                                
    document.images[1].src = myImages[1];
                                                                                
Is this a known bug with Safari? Broken arrays?
                                                                                
(BTW the above works in every major browser's
recent version; those I have tried)
                                                                                
I can write a string literal into the src property:
                                                                                
    document.images[1].src = "images/image1.jpg";
                                                                                
and achieve image replacement, but not when the string
literal is referenced from an array.
                                                                                
What gives? Am I doing something Really Stupid (TM)?
                                                                                
Thanks in advance for advice.
                                                                                
Cheers,
DK
                                                                                
[1] Referring to Safari version 1.0.1
                                                                                

2.Safari (browser, Javascript) related forum?

3.Safari and javascript - turning on debug support

4.Safari and javascript

How can you make a div visible and hidden in safari?

document.all["div_submit"].style.display = "none";

Does not appear to work.

Also, can anyone tell me how to turn on javascript error commenting in
Safari? Right now, if javascript fails or errors, the browser just sits
there and doesn't return any error message.

-- 
Christine

5.[OT] (was: Safari and javascript - turning on debug support)

6. fooling safari with javascript

7. Safari and Javascript

8. Javascript not working: Safari, IE5.2, iCab



Return to mac

 

Who is online

Users browsing this forum: No registered users and 12 guest