That's a nice solution.
I'm adding onclick as a reserved parameter in AjaxDirectLink and closing
Bug26
Jesse Kuhnert wrote:
> Yeah, using dojo event connectors is perfect for this situation. They
> even add special behaviour onto the javascript event passed in so that
> you can interrupt the normal event flow, as in:
>
> function foo(event) {
> event.preventDefault(); //stops any further processing after your
> method
>
> dosomething();
> }
>
> There is also event.stopFurtherProcessing() (or something similar),
> but I don't remember what the difference is between the two. I use
> preventDefault() in the client side form stuff to prevent form
> submissions on client side validation failures.
>
> On 1/10/06, *Andrea Chiumenti* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Yes , but "Really delete?" -> NO means not to proceed, so no ajax
> action should be processed.
> I wonder if directly adding a dojo event on click shod accomplish
> this task.
>
> kiuma
>
>
> On 1/10/06, *Andreas Andreou* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> I've posted a bug report on this
> http://tacoscomponents.jot.com/BugReporter/Bug26
> mainly to get the opinion of the other tacos developers.
>
> I consider this an interesting idea, but users will have to be
> careful
> when using it (if it's implemented).
> It's not correct to do a return true because then the rest of the
> onclick javascript (added by tacos to handle
> the ajax call) will not be executed.
>
> In that case, a valid use would be
> <a jwcid="AjaxDirectLink" onclick="if (confirm('Really
> delete?')==false)
> return false;" ...>...</a>
>
> But, as I said before, I don't know what others think on this...
>
> Andrea Chiumenti wrote:
>
>> Hi,
>> how can I add a javascript confirmation message on an
> AjaxDirectLink
>> if onclick parameter is reserved ?
>> (click on delete link -> 'Are you really shure?' ->(return
>> true;/return false;)
>>
>> Thx,
>> kiuma
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> for problems? Stop! Download the new AJAX search engine that
> makes
> searching your log files as easy as surfing
> the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> <http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel