473,770 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Java script on classic ASP page

"paulmitchell50 7" <pa************ *@googlemail.co mwrote in message
news:ef******** *************** ***********@c58 g2000hsc.google groups.com...
On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayaday ada.comwrote:
"paulmitchell50 7" <paulmitchell.. .@googlemail.co mwrote in message

news:f1******** *************** ***********@z72 g2000hsb.google groups.com...
I have the following Java script on a asp page located on my company
intranet.
<html>
<head>
<title>Exampl e combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.submi t();
}

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 5070
On Aug 12, 4:16*pm, "Anthony Jones" <A...@yadayaday ada.comwrote:
"paulmitchell50 7" <paulmitchell.. .@googlemail.co mwrote in message

news:ef******** *************** ***********@c58 g2000hsc.google groups.com...
On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayaday ada.comwrote:


"paulmitchell50 7" <paulmitchell.. .@googlemail.co mwrote in message
news:f1******** *************** ***********@z72 g2000hsb.google groups.com....
I have the following Java script on a asp page located on my company
intranet.
<html>
<head>
<title>Exampl e combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.submi t();
}
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>Exampl e combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.submi t();
}
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...@yadayaday ada.comwrote:
>"paulmitchell5 07" <paulmitchell.. .@googlemail.co mwrote in message

news:ef******** *************** ***********@c58 g2000hsc.google groups.com...
>On Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayaday ada.comwrote:


>>"paulmitchell 507" <paulmitchell.. .@googlemail.co mwrote in message
>>>
news:f1******** *************** ***********@z72 g2000hsb.google groups.com...
>>
>>>I have the following Java script on a asp page located on my
company intranet.
>>><html>
<head>
<title>Examp le combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.su bmit();
}
>>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>Examp le combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.submi t();
}

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(f rmSelect) {
frmSelect.submi t();

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...@NOyah oo.SPAMcom>
wrote:
paulmitchell507 wrote:
On Aug 12, 4:16 pm, "Anthony Jones" <A...@yadayaday ada.comwrote:
"paulmitchell50 7" <paulmitchell.. .@googlemail.co mwrote in message

news:ef******** *************** ***********@c58 g2000hsc.google groups.com...>O n Aug 12, 1:06 pm, "Anthony Jones" <A...@yadayaday ada.comwrote:
>"paulmitchell5 07" <paulmitchell.. .@googlemail.co mwrote in message

news:f1******** *************** ***********@z72 g2000hsb.google groups.com...


>>I have the following Java script on a asp page located on my
company intranet.
>><html>
<head>
<title>Exampl e combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
frmSelect.sub mit();
}
>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>Exampl e combo box</title>
<script language="javas cript">
<!--
function dept_onchange(f rmSelect) {
* * * * frmSelect.submi t();
}
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(f rmSelect) {
* * * * frmSelect.submi t();

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("c ourses")? 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
2370
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 new script i tried to filter the stream-url from an
0
1499
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 following stuff that the control must support. The control must provide a method called InvokeJavaScriptFunction The prototype of this method is:
34
3331
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 solutions, but I thought I remember that there was a way to 'compile' java script and use that instead of the actual script?
7
1973
by: dbabin | last post by:
I have a java script function enableServerList() {document.getElementById("ddlServers").disabled=false } function disableServerList() {document.getElementById("ddlServers").disabled=true } This greys out a drop down list as expected. The problem is, when I click on the "get Report" button, I need a way to say in asp code:
8
2391
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 page will be viewed using Microsoft's IE browser (version 6.x ....). Webapge is self-contained. i.e., it does not refer to any links outside the webpage, however, it uses bookmarks inside the same page. I have a long table to display, table has...
1
3109
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 that I could use this script in other pages. So I put a reference to the script file in the <head tag of the Master page. But that does not work because the <head tag of the Master page also contains a 'runat=server' statement. And only one <head...
5
13123
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 this kind of script "Server Side Java Script". I am in confusion because according to lots of web developer Java Script is a client side scripting language. We can not say it Server Side Java Script.
1
4545
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 is java script enable or not and how to restrict user to view java script include page if its browser javascript disable until he not change accordingly. It is urgent Thanks in advance.. Ilaxi
3
5514
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 , returen the curser to the old select -City . Can you Solve this problem for me. Thanks Const cServer="localhost"
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.