On Sat, Jun 18, 2011 at 4:07 PM, yakup <[email protected]> wrote:

> I know jquery but it doesn't offer much than the core JS


Try:

jQuery(function(){
  run your startup code here.
});

or, more simply (but less flexible):

window.onload = function() {
  ...
};

If your JS files run code "by themselves" (e.g. if they do not only declare
functions/classes/objects, but actually perform operations) then the above
will NOT help you. Included JS code should not actually run anything - it
should (for the reason you're seeing now) only set up functions and shared
objects, and those should be initialized after all included files are
loaded. (That my opinion, anyway.)

There is no v8-specific way to do what you're asking about - you will need
to either use jQuery or a similar library or change the window.onload code
in your page to make the initialization process.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to