Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'do JavaScript' still broken in Safari 3 beta



I think whatever ECMA says about 'return' is meaningless for Javascript because everything is essentially a function in web programming with javascript.

For example, something like <p onclick='afunction()'> has to implicitly return(true) in order for the browser to know that the click worked. What if afunction doesn't return true or, worse yet, returns false? Then you'd have to modify the code to <p onclick='afunction();return true'> which means you have to consider the entire onclick javascript string as a function with an implicit wrapper.

- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.