Connecting Tech Pros Worldwide Forums | Help | Site Map

Re: Java script on classic ASP page

Anthony Jones
Guest
 
Posts: n/a
#1: Aug 12 '08
"paulmitchell507" <paulmitchell507@googlemail.comwrote in message
news:effe22fb-7c85-4172-953d-d6546cd548f8@c58g2000hsc.googlegroups.com...
On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>
news:f1150599-7e4e-4053-8b16-554e9880004c@z72g2000hsb.googlegroups.com...
>
Quote:
I have the following Java script on a asp page located on my company
intranet.
>
Quote:
<html>
<head>
<title>Example combo box</title>
<script language="javascript">
<!--
function dept_onchange(frmSelect) {
frmSelect.submit();
}
>
In the other thread with an identical question I asked you why you were
doing the above??
>
Paul,

When you ask for help you will most likely get responses that ask you
questions so that what you are doing is better understood and the help can
be more targeted. Its very frustating trying to help someone when they
won't answer the questions posed to them. I'd like to help further but
unless I know the answer to the above question I'm afraid I can't.



--
Anthony Jones - MVP ASP/ASP.NET



paulmitchell507
Guest
 
Posts: n/a
#2: Aug 12 '08

re: Re: Java script on classic ASP page


On Aug 12, 4:16*pm, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>
news:effe22fb-7c85-4172-953d-d6546cd548f8@c58g2000hsc.googlegroups.com...
On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>
>
>
>
>
Quote:
"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>
Quote:
news:f1150599-7e4e-4053-8b16-554e9880004c@z72g2000hsb.googlegroups.com....
>
Quote:
Quote:
I have the following Java script on a asp page located on my company
intranet.
>
Quote:
Quote:
<html>
<head>
<title>Example combo box</title>
<script language="javascript">
<!--
function dept_onchange(frmSelect) {
frmSelect.submit();
}
>
Quote:
In the other thread with an identical question I asked you why you were
doing the above??
>
Paul,
>
When you ask for help you will most likely get responses that ask you
questions so that what you are doing is better understood and the help can
be more targeted. *Its very frustating trying to help someone when they
won't answer the questions posed to them. *I'd like to help further but
unless I know the answer to the above question I'm afraid I can't.
>
--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -
>
- Show quoted text -
Sorry, we have not got off on a very good footing here!
Quote:
<html>
<head>
<title>Example combo box</title>
<script language="javascript">
<!--
function dept_onchange(frmSelect) {
frmSelect.submit();
}
Why have I done the above? Because I was looking for an example of a
drop down box that would display the 'firstlastname' field but pass
the staff_ID field. This was the first example I found that appeared
to work. If you have an alternative solution I would be more than
happy to change the code above.
Bob Barrows [MVP]
Guest
 
Posts: n/a
#3: Aug 12 '08

re: Re: Java script on classic ASP page


paulmitchell507 wrote:
Quote:
On Aug 12, 4:16 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
>"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>>
>>
news:effe22fb-7c85-4172-953d-d6546cd548f8@c58g2000hsc.googlegroups.com...
Quote:
Quote:
>On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>>
>>
>>
>>
>>
Quote:
>>"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>>
Quote:
>>>
news:f1150599-7e4e-4053-8b16-554e9880004c@z72g2000hsb.googlegroups.com...
Quote:
Quote:
>>
Quote:
>>>I have the following Java script on a asp page located on my
>>>company intranet.
>>
Quote:
>>><html>
>>><head>
>>><title>Example combo box</title>
>>><script language="javascript">
>>><!--
>>>function dept_onchange(frmSelect) {
>>>frmSelect.submit();
>>>}
>>
Quote:
>>In the other thread with an identical question I asked you why you
>>were doing the above??
>>
>Paul,
>>
>When you ask for help you will most likely get responses that ask you
>questions so that what you are doing is better understood and the
>help can be more targeted. Its very frustating trying to help
>someone when they won't answer the questions posed to them. I'd like
>to help further but unless I know the answer to the above question
>I'm afraid I can't.
>>
>
Sorry, we have not got off on a very good footing here!
>
Quote:
><html>
><head>
><title>Example combo box</title>
><script language="javascript">
><!--
>function dept_onchange(frmSelect) {
> frmSelect.submit();
>}
>
Why have I done the above? Because I was looking for an example of a
drop down box that would display the 'firstlastname' field but pass
the staff_ID field. This was the first example I found that appeared
to work. If you have an alternative solution I would be more than
happy to change the code above.
You're still missing the point. Anthony is asking about this specific
function:
Quote:
Quote:
>function dept_onchange(frmSelect) {
> frmSelect.submit();

Why are you wanting to submit the form when the listbox selection
changes?
It appears the answer is that you have copy/pasted this html from
somewhere and you do not know why the code was written to cause the form
to be submitted when the selection changed. is that correct?

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


paulmitchell507
Guest
 
Posts: n/a
#4: Aug 13 '08

re: Re: Java script on classic ASP page


On Aug 12, 5:02*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
Quote:
paulmitchell507 wrote:
Quote:
On Aug 12, 4:16 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>
news:effe22fb-7c85-4172-953d-d6546cd548f8@c58g2000hsc.googlegroups.com...>On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>
Quote:
Quote:
>"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>
news:f1150599-7e4e-4053-8b16-554e9880004c@z72g2000hsb.googlegroups.com...
>
>
>
>
>
>
>
Quote:
Quote:
>>I have the following Java script on a asp page located on my
>>company intranet.
>
Quote:
Quote:
>><html>
>><head>
>><title>Example combo box</title>
>><script language="javascript">
>><!--
>>function dept_onchange(frmSelect) {
>>frmSelect.submit();
>>}
>
Quote:
Quote:
>In the other thread with an identical question I asked you why you
>were doing the above??
>
Quote:
Quote:
Paul,
>
Quote:
Quote:
When you ask for help you will most likely get responses that ask you
questions so that what you are doing is better understood and the
help can be more targeted. Its very frustating trying to help
someone when they won't answer the questions posed to them. I'd like
to help further but unless I know the answer to the above question
I'm afraid I can't.
>
Quote:
Sorry, we have not got off on a very good footing here!
>
Quote:
Quote:
<html>
<head>
<title>Example combo box</title>
<script language="javascript">
<!--
function dept_onchange(frmSelect) {
* * * * frmSelect.submit();
}
>
Quote:
Why have I done the above? *Because I was looking for an example of a
drop down box that would display the 'firstlastname' field but pass
the staff_ID field. *This was the first example I found that appeared
to work. *If you have an alternative solution I would be more than
happy to change the code above.
>
You're still missing the point. Anthony is asking about this specific
function:
>
Quote:
Quote:
function dept_onchange(frmSelect) {
* * * * frmSelect.submit();
>
Why are you wanting to submit the form when the listbox selection
changes?
It appears the answer is that you have copy/pasted this html from
somewhere and you do not know why the code was written to cause the form
to be submitted when the selection changed. is that correct?
>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.- Hide quoted text -
>
- Show quoted text -
You are correct to say that I do not know why the code was written to
cause the form to be submitted when the selection changed. Is it
possible that the page needs to be submitted each time a selection is
changed so the corrasponding staff_ID is placed in
request.form("courses")? If I was to select user A form the listbox I
need user A's staff_ID recorded. If I changed my mind and selected
user B, I would need user B's staff_ID recorded.

Paul
Closed Thread