Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: JavaScript Programmer's Reference
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 9th, 2009, 03:48 PM
Registered User
 
Join Date: Dec 2009
Location: central california
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.
Reply With Quote
  #2 (permalink)  
Old December 9th, 2009, 10:02 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
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/
Reply With Quote
  #3 (permalink)  
Old December 9th, 2009, 10:54 PM
Registered User
 
Join Date: Dec 2009
Location: central california
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.
Reply With Quote
  #4 (permalink)  
Old December 9th, 2009, 11:15 PM
Registered User
 
Join Date: Dec 2009
Location: central california
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.
Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03:06 AM
tell about safari -n- konqueror anshul HTML Code Clinic 2 August 26th, 2004 10: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 12:56 PM



All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.