Submit Form Notification Message

Submit Form Notification Message

am 15.03.2007 01:16:45 von TechNinja

Hi folks,

Using ASP and/or JavaScript, how do you create that little
notification message (usually in red below the submit button) when the
Submit button is pushed. Something that says "Your information is
being sent ..."

Thanks for any assistance.

Re: Submit Form Notification Message

am 15.03.2007 09:36:19 von exjxw.hannivoort

JP wrote on 15 mrt 2007 in microsoft.public.inetserver.asp.general:

> Using ASP and/or JavaScript,

ASP is not a programming language, but a serverside platform for
javascript, VBscript, etc. So the "or" is not possible.

> how do you create that little
> notification message (usually in red below the submit button) when the
> Submit button is pushed. Something that says "Your information is
> being sent ..."

It is being done clientside, so ASP cannot do that.

Please ask a clientside NG, like:

comp.lang.javascript


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Submit Form Notification Message

am 15.03.2007 10:29:57 von Anthony Jones

"JP" wrote in message
news:1173917805.725847.114370@e65g2000hsc.googlegroups.com.. .
> Hi folks,
>
> Using ASP and/or JavaScript, how do you create that little
> notification message (usually in red below the submit button) when the
> Submit button is pushed. Something that says "Your information is
> being sent ..."
>
> Thanks for any assistance.
>





Sending...

Re: Submit Form Notification Message

am 15.03.2007 10:47:21 von exjxw.hannivoort

Anthony Jones wrote on 15 mrt 2007 in
microsoft.public.inetserver.asp.general:

>
> "JP" wrote in message
> news:1173917805.725847.114370@e65g2000hsc.googlegroups.com.. .
>> Hi folks,
>>
>> Using ASP and/or JavaScript, how do you create that little
>> notification message (usually in red below the submit button) when
>> the Submit button is pushed. Something that says "Your information
>> is being sent ..."
>>
>> Thanks for any assistance.
>>
>
>
>
> > /> Sending...

Wouldn't the next sibling be the
?

call Method (JScript 5.6):
> Calls a method of an object, substituting
> another object for the current object.

Could you explain for us mortals what the call() here does?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Submit Form Notification Message

am 15.03.2007 12:29:00 von Anthony Jones

"Evertjan." wrote in message
news:Xns98F46DC104C99eejj99@194.109.133.242...
> Anthony Jones wrote on 15 mrt 2007 in
> microsoft.public.inetserver.asp.general:
>
> >
> > "JP" wrote in message
> > news:1173917805.725847.114370@e65g2000hsc.googlegroups.com.. .
> >> Hi folks,
> >>
> >> Using ASP and/or JavaScript, how do you create that little
> >> notification message (usually in red below the submit button) when
> >> the Submit button is pushed. Something that says "Your information
> >> is being sent ..."
> >>
> >> Thanks for any assistance.
> >>
> >
> >
> >
> > > > /> Sending...
>
> Wouldn't the next sibling be the
?

You're quite right. I wrote the code then added the BR as an after thought.

nextSibliling.nextSibling would be necessary.

>
> call Method (JScript 5.6):
> > Calls a method of an object, substituting
> > another object for the current object.
>
> Could you explain for us mortals what the call() here does?

It calls the doSubmit function as if the input had a doSubmit method
attached. Hence in the doSubmit execution the 'this' context is the input
element.

It could have been written:-

function doSubmit(elem)
{
var form = elem.form
elem.nextSibling.nextSibiling.style.visibility = 'visible'
window.setTimeout(fnSubmit, 0)

function fnSubmit()
{
form.submit()
}
}

and onclick would be "doSubmit(this)"

However I prefer .call since it is consistent with assigning the event
handler in code:-

elem.onclick = doSubmit

Anthony