[Javascript] IE onclick problem

Troy III Ajnej trojani2000 at hotmail.com
Fri Apr 18 22:35:06 CDT 2008


Sorry, but 
> var capturedReturnValue = myFunction();just won't do! You are asigning the function to the var. 
 
It imediately calls the function execution and in casse it was
referrenced from some other function as well, might end up
in loop execution.
I still don't see how to utilize such a claim nor make it work.
At least not by asigning a function to the var, because:
>if (capturedReturnValue) {...
will allways act as TRUE since it's not an empty strig.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                        Troy III                            progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> From: david at dorward.me.uk> To: javascript at lists.evolt.org> Date: Thu, 17 Apr 2008 07:09:23 +0100> Subject: Re: [Javascript] IE onclick problem> > > On 17 Apr 2008, at 01:28, Troy III Ajnej wrote:> > Yes,> > but how do you hadle it, -how do you capture the bolean response> > of true or false in case it fails to run> > var capturedReturnValue = myFunction();> > > , or in casse it succeeded, how> > do you check it prior to invoking other instuctions?> > if (capturedReturnValue) {> > }> > -- > David Dorward> http://dorward.me.uk/> http://blog.dorward.me.uk/> > > _______________________________________________> Javascript mailing list> Javascript at lists.evolt.org> http://lists.evolt.org/mailman/listinfo/javascript
_________________________________________________________________
Get in touch in an instant. Get Windows Live Messenger now.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20080419/b41646a9/attachment.htm>


More information about the Javascript mailing list