Try adding e.preventDefault(); instead of Event.stop(e) and let me
know if that works?
On Tue, Aug 4, 2009 at 4:55 PM, Ashashley.kenner...@gmail.com wrote:
function callProcBasketEmail(e) {
var pars = Form.serialize('email-form');
var myAjax = new Ajax.Updater('email-response',
Hi, I wasn't sure whether you meant in the 1st or second function, but
it doesn't make a difference in either.
I think it is the Event.observe('password-form', 'submit',
callProcBasketPassword); which is not working properly, although I
don't know how to debug it
On Aug 5, 6:48 pm, DJ Mangus
Are you getting any Javascript errors? Note: firefox and firebug is
your friend. Don't forget to break on all errors.
On Wed, Aug 5, 2009 at 11:22 AM, Ashashley.kenner...@gmail.com wrote:
Hi, I wasn't sure whether you meant in the 1st or second function, but
it doesn't make a difference in
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element._prototypeEventID) return
element._prototypeEventID[0]; (element is null error)
if I step past it and submit the second form I get
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element._prototypeEventID) return
element._prototypeEventID[0
://www.thevacancymarket.com
- Original Message -
From: Ash ashley.kenner...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:04 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
When I set firebug
...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:04 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get
Sent: Wednesday, August 05, 2009 10:04 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element
: Beginners question, trouble with Event.stop
in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element._prototypeEventID) return
element._prototypeEventID[0
] Re: Beginners question, trouble with
Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element._prototypeEventID) return
element._prototypeEventID[0
, August 05, 2009 10:04 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with
Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936 if (element
://www.thevacancymarket.com
- Original Message -
From: Ash ashley.kenner...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:37 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
That seems to be working
...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:37 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
That seems to be working!
Is Event.observe.defer a standard method, or is it only
script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:37 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
That seems to be working!
Is Event.observe.defer a standard method, or is it only to be used in
certain cases
: Wednesday, August 05, 2009 10:04 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with
Event.stop in
AJAX
When I set firebug to break on all errors...
Submit the first form and I get (from prototype.js)
function getEventID(element) {
element is null3936
...@gmail.com
To: Prototype script.aculo.us
prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:37 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop
in
AJAX
That seems to be working!
Is Event.observe.defer a standard method
-
From: Ash ashley.kenner...@gmail.com
To: Prototype script.aculo.us
prototype-scriptaculous@googlegroups.com
Sent: Wednesday, August 05, 2009 10:37 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with
Event.stop in
AJAX
That seems to be working
Hi TJ, thanks for the help, I understand the concept of onSuccess and
have updated my javascript. That function runs without an error, but
the observe line does not some to be working (the form keeps trying to
submit using the standard old fashioned method) I think I am missing
something else
Thanks for the help, I just tried replacing Event.stop(e); with return
false; in the function but it still submits the form.
I would prefer to do it the new way anyway, if you would be able to
help me...
The first function is called from Event.observe('email-form',
'submit',
Thanks for the help, I just tried replacing Event.stop(e); with return
false; in the function but it still submits the form.
I would prefer to do it the new way anyway, if you would be able to
help me...
The first function is called from Event.observe('email-form',
'submit',
Is the password-form submit button a return from procBasketEmail.php?
if so then you should observe it in the OnSuccess callback. If that
isn't correct chalk it up to me checking this moments after awakening.
On Mon, Aug 3, 2009 at 6:23 AM, Ashashley.kenner...@gmail.com wrote:
Thanks for the
://www.thevacancymarket.com
- Original Message -
From: Ash ashley.kenner...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, August 03, 2009 2:23 PM
Subject: [Proto-Scripty] Re: Beginners question, trouble with Event.stop in
AJAX
Thanks for the help, I just tried
Hi,
But this stops the whole function from working - where should the
observe line be placed to ensure it will work properly?
Right, because this new line:
Event.observe('password-form', 'submit', callProcBasketPassword);
...will cause an error, because there is no element with the ID
Hi Ashley,
In the one that's not working, you're using what's called a DOM0-
style handler -- that's where you're attaching the handler the old-
fashioned way, by using an attribute on the form element:
form id=password-form onsubmit=callProcBasketPassword()
24 matches
Mail list logo