473,320 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Submit Form Notification Message

JP
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.

Mar 15 '07 #1
4 4026
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)
Mar 15 '07 #2

"JP" <ji*******@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.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.
<script type="text/javascript">

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

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

</script>

<input type="button" onclick="doSubmit.call(this)" value="Send" /><br />
<span style="visibility:hidden; color:red">Sending...</span>
Mar 15 '07 #3
Anthony Jones wrote on 15 mrt 2007 in
microsoft.public.inetserver.asp.general:
>
"JP" <ji*******@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.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.

<script type="text/javascript">

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

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

</script>

<input type="button" onclick="doSubmit.call(this)" value="Send" /><br
/<span style="visibility:hidden; color:red">Sending...</span>
Wouldn't the next sibling be the <br>?

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)
Mar 15 '07 #4

"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...
Anthony Jones wrote on 15 mrt 2007 in
microsoft.public.inetserver.asp.general:

"JP" <ji*******@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.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.
<script type="text/javascript">

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

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

</script>

<input type="button" onclick="doSubmit.call(this)" value="Send" /><br
/<span style="visibility:hidden; color:red">Sending...</span>

Wouldn't the next sibling be the <br>?
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
Mar 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform"...
8
by: bettina | last post by:
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form...
3
by: Robert W. | last post by:
I have a separate thread that handles data transfer operations (with a mobile device). I've set things up so that a small notification form is displayed in the lower right corner of the window. ...
9
by: Eric George | last post by:
Hi, Has anyone had any success using jscript submit method in their VS.NET projects? For example I have some client processing in a script function then call <form name>.submit(); This won't...
4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
3
by: antares686 | last post by:
I am trying to figure out if this is possible and how as I have burnt my brain out today. I have an application that submits data to a SQL database and an email is generated for notifications on...
0
by: JP | last post by:
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...
4
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all I have the following code: I am trying to use the value of the image button to evaluate what plan the user has chosen, i.e. it request("submit1")="Basic", then the user chose basic plan...
0
by: vsrprasad16 | last post by:
Hi All, I am implementing a notification form similar to outlook email notification. my application call this notification form from a dll. this dll includes a form class and this dll has some...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.