473,395 Members | 1,629 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,395 software developers and data experts.

Re: Java script on classic ASP page

"paulmitchell507" <pa*************@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.

--
Anthony Jones - MVP ASP/ASP.NET
Aug 12 '08 #1
3 5051
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.

--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -

- Show quoted text -
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.
Aug 12 '08 #2
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.
Aug 12 '08 #3
On Aug 12, 5:02*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
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.- 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
Aug 13 '08 #4

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

Similar topics

3
by: Alexander Fillips | last post by:
Hi, my short question: is there a python object which can interpret java-script? the whole story ;-) I wrote some streaming-scripts for the xbox mediaplayer which supports python. for a...
0
by: Mircea Pleteriu | last post by:
Hi all, I have created a .NET Windows control with c#. I have placed the control on a HTML page within the OBJECT element. Everything works fine up to now. Now, I wanna implement the...
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
7
by: dbabin | last post by:
I have a java script function enableServerList() {document.getElementById("ddlServers").disabled=false } function disableServerList() {document.getElementById("ddlServers").disabled=true } ...
8
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
1
by: Larry Rebich | last post by:
I'm using some Java Script I found that supports a 'back' button on my ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the Java Script in a Java Script file . The thought was...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
1
by: ilaxi kandoliya | last post by:
Hi, I have developing project with asp.net 2.0 (C#) I have used java script function in my code but if User's browser is java script disable then its not working properly so how to check Browser...
3
by: alandiit | last post by:
Hi every body I would like connect three combo box (CascadingDropDown with a Database) MYSQL by asp classic or Java Script . But I have a problem with this example , when I will change City ,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.