[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
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',

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Alex McAuley
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
://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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
...@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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
: 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
] 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
, 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Alex McAuley
://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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
...@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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
: 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread Ash
...@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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-05 Thread DJ Mangus
- 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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-04 Thread Ash
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread Ash
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',

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread Ash
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',

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread DJ Mangus
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread Alex McAuley
://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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-03 Thread T.J. Crowder
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

[Proto-Scripty] Re: Beginners question, trouble with Event.stop in AJAX

2009-08-02 Thread T.J. Crowder
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()