paulmitchell507 wrote:
On Aug 12, 4:16 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
news:ef**********************************@c58g2000 hsc.googlegroups.com...
>On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>>"paulmitchell507" <paulmitchell...@googlemail.comwrote in message
>>>
news:f1**********************************@z72g2000 hsb.googlegroups.com...
>>
>>>I have the following Java script on a asp page located on my
company intranet.
>>><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.
Sorry, we have not got off on a very good footing here!
><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:
>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.