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