Hello.

Scenario: PHP/Smarty application, MVC pattern, prototype for async
requests(used throughout the site).

Suppose you have a form inside a DIV which users fill in or modify
from current data values.
I now want to ask the user for confirmation before he leaves the
current form(the page actually never changes) to go somewhere else
before having saved the modified data.

I figured how to monitor changes on the forms using prototype(ok,
that's not what I'd call a clean and elegant code, but it works
well :-) ).

There's a problem now, though: I need to block an ajax request after
asking a confirmation dialog(do you want to discard the changes? Yes/
No).

Looking through this group I've come across a transport.abort()
method, so that's possibly the preferred way to go, and I learned
about Ajax.Responders on the Prototype Docs.

What I would like now is to have some guidance in putting all the
pieces together to abort the calls in the onCreate globally registered
responder.

Can please anyone help me to code this in a sensible way?

Thank you for your time reading this,

Andrew

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to