[Javascript] IE onclick problem

Troy III Ajnej trojani2000 at hotmail.com
Wed Apr 16 19:28:53 CDT 2008


Yes,
but how do you hadle it, -how do you capture the bolean response
of true or false in case it fails to run, or in casse it succeeded, how 
do you check it prior to invoking other instuctions?
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                        Troy III                            progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> From: david at dorward.me.uk> To: javascript at lists.evolt.org> Date: Wed, 16 Apr 2008 09:46:42 +0100> Subject: Re: [Javascript] IE onclick problem> > > On 16 Apr 2008, at 08:57, Troy III Ajnej wrote:> > > > <a href="#" onclick="return addPlayer();">Add Player</a>> > > > What does the "return" statement stand for?!! I've never used it.> > Neither did I happen to come to the situation that I would be forced> > to do so. -So, than, why is it standing there?> > > Assuming it is written sensibly, the addPlayer function will return > either a true or false value depending on the success of its attempt > to run. By capturing that value and returning it from the event > handler, the fallback mechanism (BTW, href="#" is a link to the top of > the page ... which is a dreadful fallback mechanism) can be allowed to > run or be cancelled.> > > -- > 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/20080417/3677e9e8/attachment.htm>


More information about the Javascript mailing list