Aby,
Thanks. I did figure out the syntax finally
which made this possible. In the Extra HTML
of the object on the calling page, I used
the following:
--onClick=return(functionCall(this));
In the function called 'functionCall(elmt)'
i used the following:
--window.open(...);
--return false;
Note the use of Parentheses in this for the
returns. In particular, note that paren's
are used in the extra HTML return, but not
used in the return of the actual function.
Only this combination of syntax seems to
work 100%.
Also note the 'this' in the function call.
I can parse the contents of 'this' to get
the value for 'currRowNumber'. This added
in case someone was wondering.
Again, thanks for the answers. There really
isn't another place I can seem to get these
kind of answers.
Lance Cannon
[EMAIL PROTECTED]
Aby Mathew <[EMAIL PROTECTED]> wrote:
>Lance,
>
>Probably I should have told you without making you ask.
>
>It is simple. ExtraHtml : 'return functionCall()'. Inside functionCall(),
>after finishing whatever you want to do, put 'return fase;'. That will do
>it.
>
>Regards,
>
>Aby
>
>
>> -----Original Message-----
>> From: Lance Cannon [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, December 14, 1999 2:15 PM
>> To: 'Aby Mathew '
>> Subject: RE: [ND] Turning off submit when using
>> 'window.open()' in Href
>>
>>
>> Thanks for the reply,
>>
>> You are correct in that the 'return false' will stop the page
>> from going forward. The problem is, if I put 'return false'
>> in the 'onClick' event, I can't put the call to the java
>> function in this event as well (also, I can't put 'return
>> false' in the function I call as this does not seem to work).
>>
>> I need to be able to either do a 'window.open()' in a
>> function I call from the 'onClick' event. In this function,
>> I will parse out 'currRowNumber' from 'this' and get the row
>> number of the row clicked.
>>
>> If you can tell me syntax to put two commands (i.e.
>> 'functionCall()' & 'return false') in the 'onClick' and have
>> the both execute correctly that would be my ideal solution.
>>
>> Thanks,
>>
>> Lance Cannon
>> [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]