|
 |
asp_databases thread: Re: Is there anyway to make ASP recognize an onClick
Message #1 by ana nunes <ana__nunes@y...> on Mon, 17 Jul 2000 06:07:01 -0700 (PDT)
|
|
> Subject: fill next combo with SQL filter???
> From: wswyght@t...
> Date: Fri, 14 Jul 2000 19:33:45 GMT
> X-Message-Number: 2
>
> Is there anyway to make ASP recognize an onClick so
> the system does not think
> it must be a JavaScript function. I cannot ever call
> a ASP Sub inside a JavaScript
> function.
>
> Please any help is really needed on this. I have
> spent two days and am nowhere.
>
>
> Warren S. Wyght
<select onchange=submit ...
ana, Lisbon
Portugal
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/
Message #2 by "Daniel Walker" <danielw@w...> on Mon, 17 Jul 2000 15:21:0
|
|
Um, no. An ASP server generates a page which is then transmitted to the
client's computer. Although dynamically generated, the pages the ASP writes
are actually pretty static - even the dynamic ones! They can be DHTML -
i.e. you can Response.Write client-side javascript, just as easily as you
can Response.Write static HTML - but the only place this script will ever
run is within the confines of the actual document object- the page - it is
delivered aboard. It cannot talk to the outside world.
Many people have difficulty recognising that there's no direct
communication between the two machines, the server and the client. A
connection isn't opened up between them so that they can run each other's
code: all that happens is the client asks the server for a page, the server
dumps that page onto the client and the client then _has_ the page.
Once it is sitting on the client's machine, there's nothing the server
machine can do about it until it is asked for another page by the client.
The client cannot "ask" the server to run a particular subroutine on it's
side, or something. All it can do is ask for a page which may, or may not
contain that subroutine.
The best alternative you have, if you've a fairly complicated bit of coding
to do on the client side, is to have the server download a component, or
something, that does the work. Without seeing what Warren is after,
however, it's hard to see what this might consist of.
On 07/17/00, "ana nunes" wrote:
> > Subject: fill next combo with SQL filter???
> > From: wswyght
> > Date: Fri, 14 Jul 2000 19:33:45 GMT
> > X-Message-Number: 2
> >
> > Is there anyway to make ASP recognize an onClick so
> > the system does not think
> > it must be a JavaScript function. I cannot ever call
> > a ASP Sub inside a JavaScript
> > function.
> >
> > Please any help is really needed on this. I have
> > spent two days and am nowhere.
> >
> >
> > Warren S. Wyght
>
> <select onchange=submit ...
>
> ana, Lisbon
> Portugal
>
Message #3 by Elisei Craciun <Ecraciun@G...> on Mon, 17 Jul 2000 15:27:43 +0100
|
|
check your form dfault language :))
it must be like :
<form name="myForm" language="vbscript">
ECN
-----Message d'origine-----
De : ana nunes
Envoy=E9 : lundi 17 juillet 2000 15:07
=C0 : ASP Databases
Objet : [asp_databases] Re: Is there anyway to make ASP recognize an
onClick
> Subject: fill next combo with SQL filter???
> From: wswyght
> Date: Fri, 14 Jul 2000 19:33:45 GMT
> X-Message-Number: 2
>
> Is there anyway to make ASP recognize an onClick so
> the system does not think
> it must be a JavaScript function. I cannot ever call
> a ASP Sub inside a JavaScript
> function.
>
> Please any help is really needed on this. I have
> spent two days and am nowhere.
>
>
> Warren S. Wyght
<select onchange=submit ...
ana, Lisbon
Portugal
Message #4 by "Warren S. Wyght" <wswyght@t...> on Tue, 18 Jul 2000 20:25:51 -0600
|
|
Howdy Daniel;
You are right, although I read that there is no direct communication between
the two
I keep forgetting this fact. I guess it is wishful thinking on my part. Anyway
I think I am
going to pull a little slight of hand to get this thing working.
Thanks again
Warren
Daniel Walker wrote:
> Um, no. An ASP server generates a page which is then transmitted to the
> client's computer. Although dynamically generated, the pages the ASP writes
> are actually pretty static - even the dynamic ones! They can be DHTML -
> i.e. you can Response.Write client-side javascript, just as easily as you
> can Response.Write static HTML - but the only place this script will ever
> run is within the confines of the actual document object- the page - it is
> delivered aboard. It cannot talk to the outside world.
>
> Many people have difficulty recognising that there's no direct
> communication between the two machines, the server and the client. A
> connection isn't opened up between them so that they can run each other's
> code: all that happens is the client asks the server for a page, the server
> dumps that page onto the client and the client then _has_ the page.
>
> Once it is sitting on the client's machine, there's nothing the server
> machine can do about it until it is asked for another page by the client.
> The client cannot "ask" the server to run a particular subroutine on it's
> side, or something. All it can do is ask for a page which may, or may not
> contain that subroutine.
>
> The best alternative you have, if you've a fairly complicated bit of coding
> to do on the client side, is to have the server download a component, or
> something, that does the work. Without seeing what Warren is after,
> however, it's hard to see what this might consist of.
>
> On 07/17/00, "ana nunes" wrote:
> > > Subject: fill next combo with SQL filter???
> > > From: wswyght
> > > Date: Fri, 14 Jul 2000 19:33:45 GMT
> > > X-Message-Number: 2
> > >
> > > Is there anyway to make ASP recognize an onClick so
> > > the system does not think
> > > it must be a JavaScript function. I cannot ever call
> > > a ASP Sub inside a JavaScript
> > > function.
> > >
> > > Please any help is really needed on this. I have
> > > spent two days and am nowhere.
> > >
> > >
> > > Warren S. Wyght
> >
> > <select onchange=submit ...
> >
> > ana, Lisbon
> > Portugal
> >
> ---
> ---
> You are currently subscribed to asp_databases
--
Those who make peaceful revolution impossible will make violent revolution
inevitable
JFK Speech at white House 13 March 62
vital Speeches 1 April 1962 Page 356
http://www.lethbridgec.ab.ca/~wswyght/index.html
Message #5 by =?iso-8859-1?Q?Gonzalo_Ruiz_de_Villa_Su=E1rez?= <gonzalo.ruizdevilla@a...> on Thu, 20 Jul 2000 17:59:39 +0200
|
|
Um, yes. There is a way of doing what you want, Warren.
If you know a little bit of Javascript and use the code you will find at
http://www.dansteinman.com/dynduo/
you will solve quite quickly your problem.
You should get the files
dynlayer.js
dynlayer-common.js
to do the work.
You must put a hidden layer "myGreatLayerDiv" in your code and initialice
it.
It's really easy, read the documentation at DynDuo.
Then you should use the onClick event to call the "load" method of the layer
to load inside all the information generated
by an .asp. You should pass to the "load" method the function to manipulate
the data you loaded.
Something like
<HEAD>
<script language="JavaScript">
<script language="JavaScript" src="../../../js/dynlayer.js"></script>
<script language="JavaScript" src="../../../js/dynlayer-common.js"></script>
<!--
function init()
{
DynLayerInit()
}
function doEverythingNow()
{
//Some code to make the URL
myURL = 'getMyInfo.asp?MyParameter=' + MyParameter
myGreatLayer.load(myURL,'doSomethingWithTheDataNow()');
}
function doSomethingWithTheDataNow()
{
...
//some code
...
}
//-->
</script>
...
</HEAD>
<BODY onLoad="init()">
...
<!-- must have bufferFrame in the body somewhere -->
<IFRAME STYLE="display:none" name="bufferFrame"></IFRAME>
<div id="myGreatLayerDiv" style="position:absolute; width:151px;
height:115px; z-index:2; left: 8px; top: 2px; visibility: hidden">
<form>
<input type="buttom" name="Load" value="Load" onClick="doEverythingNow()">
</form>
....
</body>
And that's it.
I haven't tried this solution yet, but I'm confident it will work.
Tell me if you achieve it.
Cheers,
Gonzalo
-----Mensaje original-----
De: Warren S. Wyght [mailto:wswyght@t...]
Enviado el: miércoles, 19 de julio de 2000 4:26
Para: ASP Databases
Asunto: [asp_databases] Re: Is there anyway to make ASP recognize an
onClick
Howdy Daniel;
You are right, although I read that there is no direct communication between
the two
I keep forgetting this fact. I guess it is wishful thinking on my part.
Anyway
I think I am
going to pull a little slight of hand to get this thing working.
Thanks again
Warren
Daniel Walker wrote:
> Um, no. An ASP server generates a page which is then transmitted to the
> client's computer. Although dynamically generated, the pages the ASP
writes
> are actually pretty static - even the dynamic ones! They can be DHTML -
> i.e. you can Response.Write client-side javascript, just as easily as you
> can Response.Write static HTML - but the only place this script will ever
> run is within the confines of the actual document object- the page - it is
> delivered aboard. It cannot talk to the outside world.
>
> Many people have difficulty recognising that there's no direct
> communication between the two machines, the server and the client. A
> connection isn't opened up between them so that they can run each other's
> code: all that happens is the client asks the server for a page, the
server
> dumps that page onto the client and the client then _has_ the page.
>
> Once it is sitting on the client's machine, there's nothing the server
> machine can do about it until it is asked for another page by the client.
> The client cannot "ask" the server to run a particular subroutine on it's
> side, or something. All it can do is ask for a page which may, or may not
> contain that subroutine.
>
> The best alternative you have, if you've a fairly complicated bit of
coding
> to do on the client side, is to have the server download a component, or
> something, that does the work. Without seeing what Warren is after,
> however, it's hard to see what this might consist of.
>
> On 07/17/00, "ana nunes" wrote:
> > > Subject: fill next combo with SQL filter???
> > > From: wswyght
> > > Date: Fri, 14 Jul 2000 19:33:45 GMT
> > > X-Message-Number: 2
> > >
> > > Is there anyway to make ASP recognize an onClick so
> > > the system does not think
> > > it must be a JavaScript function. I cannot ever call
> > > a ASP Sub inside a JavaScript
> > > function.
> > >
> > > Please any help is really needed on this. I have
> > > spent two days and am nowhere.
> > >
> > >
> > > Warren S. Wyght
> >
> > <select onchange=submit ...
> >
> > ana, Lisbon
> > Portugal
> >
> ---
> ---
> You are currently subscribed to asp_databases
$subst('Email.Unsub')
--
Those who make peaceful revolution impossible will make violent revolution
inevitable
JFK Speech at white House 13 March 62
vital Speeches 1 April 1962 Page 356
http://www.lethbridgec.ab.ca/~wswyght/index.html
---
---
You are currently subscribed to asp_databases
|
|
 |