Hi,

At a glance, I see three problems:

1. There's no opening quote on the URL.

2. You've misspelled onException.

3. You're calling the alert method immediately (when you create the
request) and saving its return value as the value for the onExeption
(sic) parameter.  You want to define, not call, a function.

It's always worth thoroughly proof-reading your code when you're
getting unexpected errors.

Some resources that may be helpful (all with examples of doing Ajax
requests):
http://prototypejs.org/learn
http://prototypejs.org/api/ajax
http://proto-scripty.wikidot.com

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On May 18, 11:01 am, Labs <s.labun...@gmail.com> wrote:
> Hi,
>
> I can't find the probles with code to save html table data. Can
> anybody help? I get onExeption event only.
>
> The code is below
>
> default.asp (Pathwww.comp.com/defailt.asp):
> ======================================
> params='email=t...@comp.com&User=UserName'
>
> new Ajax.Request (Scripts/ajaxSaveBalance.asp', {method: 'post',
> postBody: params, onExeption: alert('Error')});
>
> (I store ajaxSaveBalance.asp inwww.comp.com/Scripts/ajaxSaveBalance.asp).
>
> Where's my problem with code?
--~--~---------~--~----~------------~-------~--~----~
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