Wrox Programmer Forums
|
BOOK: JavaScript Programmer's Reference
This is the forum to discuss the Wrox book JavaScript Programmer's Reference by Alexei White ISBN: 978-0-470-34472-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: JavaScript Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2009, 03:48 PM
Registered User
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ~/rob
Post Safari Execution and Load Order Oddness

So far, I am really enjoying the book.

I have noticed something odd with execution and load order with Safari (4.0.4 on Windows). I ran the code shown on page 28 (under Inline Scripts), and it works as expected on Firefox 3.5.5 and IE8. The first alert pops up, the headline appears after the alert box is closed, then the second alert pops up.

Using Safari, the page is not rendered to screen until both alerts are closed. Until then, it's a blank page. Then when I move the alerts to an external file, it works as expected with the headline being rendered between alerts.

I guess the moral of the story is to follow Alexei's advice and make sure you are testing on a good cross-section of browsers.
 
Old December 9th, 2009, 10:02 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Thanks for the heads up. Safari 4 wasn't out when this book was written, so that makes it a big tough to test code there. :)

Are you sure that's the correct page number? I checked (2nd edition) and don't see to which code you are referring.
__________________
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
 
Old December 9th, 2009, 10:54 PM
Registered User
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ~/rob
Default

Hmm. My copy of the book definitely has that code on page 28. Maybe I am in the wrong forum? Hehe. I was talking about Javascript Programmer's Reference -- not the older Cliff Wootton (9781861004598) authored one, but the newer Alexei White (9780470344729) version.
 
Old December 9th, 2009, 11:15 PM
Registered User
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ~/rob
Default But it works correctly on OS X

Quote:
Originally Posted by ~/rob View Post
I have noticed something odd with execution and load order with Safari (4.0.4 on Windows).
And yet on OS X (10.4 -- this an OLD laptop), Safari 4.0.4 works as expected: alert box, h1 headline, and alert box.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Order of execution of rules in BizTalk BRE ctatvasoft Biztalk 0 December 9th, 2009 01:32 AM
javascript in safari arafat.eajaz Javascript 0 September 5th, 2008 02:06 AM
tell about safari -n- konqueror anshul HTML Code Clinic 2 August 26th, 2004 09:32 PM
Page Base Load event order frayed_edge BOOK: ASP.NET Website Programming Problem-Design-Solution 3 March 4th, 2004 08:37 AM
PhilePage execution order jnorbut BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 28th, 2003 11:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.