|
 |
asp_databases thread: onClick
Message #1 by "Warren S. Wyght" <wswyght@t...> on Thu, 06 Jul 2000 22:33:23 -0600
|
|
I know this is not ASP DataBase specific but I am building a ASP site that
uses an Access database and I do have a problem.
When I put in a
<input type=button . . . . onClick="go">
I can not get any results unless I make this be in JavaScript function. I
am trying to find out if there is a ASP way of using the onClick event for
a button. I have look in my Beginning ASP Databases and in my ASP in a
Nutshell book and can not find anything.
I have inherited a site that uses frames while in the frames I can
navigate but I can not get Netscape to recognize the "history.back(1)" or
history.go(-1) commands so I thought I would just use the
Response.Redirect "somepage.asp" command but I can not get this to happen
on the click of a button.
Can anyone help?
Also, can I not use Response.Redirect outside of the body of the HTML
document? At least it seems to be that I can not use it outside of the
<body> </body>?
Warren
Message #2 by smartin@c... on Fri, 7 Jul 2000 10:32:15 -0400
|
|
Warren:
You won't find any support for client-side events (i.e., onClick, onBlur,
onChange, etc.) in ASP because ASP is server-side and has no knowledge of
those events. By the time those events take place, the ASP portion is over
and done with.
Second, Response.Redirect actually sends a redirect header to the browser
and the browser request the new page. Since this is the case,
Response.Redirect must be called *before* any other headers are written to
the page. The best way to ensure this happens is to buffer (Response.buffer
= True) your page content.
-Stephen
-----Original Message-----
From: Warren S. Wyght
Sent: Friday, July 07, 2000 12:33 AM
To: ASP Databases
Subject: [asp_databases] onClick
I know this is not ASP DataBase specific but I am building a ASP site that
uses an Access database and I do have a problem.
When I put in a
<input type=button . . . . onClick="go">
I can not get any results unless I make this be in JavaScript function. I
am trying to find out if there is a ASP way of using the onClick event for
a button. I have look in my Beginning ASP Databases and in my ASP in a
Nutshell book and can not find anything.
I have inherited a site that uses frames while in the frames I can
navigate but I can not get Netscape to recognize the "history.back(1)" or
history.go(-1) commands so I thought I would just use the
Response.Redirect "somepage.asp" command but I can not get this to happen
on the click of a button.
Can anyone help?
Also, can I not use Response.Redirect outside of the body of the HTML
document? At least it seems to be that I can not use it outside of the
<body> </body>?
Warren
Message #3 by "Dana Coffey" <dcoffey@x...> on Fri, 7 Jul 2000 11:30:20 -0400
|
|
could you make the buttons images instead and use hyperlinks to navigate?
Dana Coffey
Technologist, Xceed, Inc.
112 Krog St. Atlanta, GA 30307
tel. xxx-xxx-xxxx x 5013
dcoffey@x...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Everything should be as simple as it is, but not simpler.
----Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{{-----Original Message-----
{{From: smartin@c... [mailto:smartin@c...]
{{Sent: Friday, July 07, 2000 10:32 AM
{{To: ASP Databases
{{Subject: [asp_databases] RE: onClick
{{
{{
{{Warren:
{{
{{You won't find any support for client-side events (i.e., onClick, onBlur,
{{onChange, etc.) in ASP because ASP is server-side and has no knowledge of
{{those events. By the time those events take place, the ASP
{{portion is over
{{and done with.
{{
{{Second, Response.Redirect actually sends a redirect header to the browser
{{and the browser request the new page. Since this is the case,
{{Response.Redirect must be called *before* any other headers are written to
{{the page. The best way to ensure this happens is to buffer
{{(Response.buffer
{{= True) your page content.
{{
{{-Stephen
{{
{{-----Original Message-----
{{From: Warren S. Wyght
{{Sent: Friday, July 07, 2000 12:33 AM
{{To: ASP Databases
{{Subject: [asp_databases] onClick
{{
{{
{{I know this is not ASP DataBase specific but I am building a ASP site that
{{uses an Access database and I do have a problem.
{{
{{When I put in a
{{<input type=button . . . . onClick="go">
{{I can not get any results unless I make this be in JavaScript function. I
{{am trying to find out if there is a ASP way of using the onClick
{{event for
{{a button. I have look in my Beginning ASP Databases and in my ASP in a
{{Nutshell book and can not find anything.
{{
{{I have inherited a site that uses frames while in the frames I can
{{navigate but I can not get Netscape to recognize the "history.back(1)" or
{{history.go(-1) commands so I thought I would just use the
{{Response.Redirect "somepage.asp" command but I can not get this to happen
{{on the click of a button.
{{
{{Can anyone help?
{{
{{Also, can I not use Response.Redirect outside of the body of the HTML
{{document? At least it seems to be that I can not use it outside of the
{{<body> </body>?
{{
{{Warren
{{
{{---
{{Wrox Professional Wireless Developer Conference, Amsterdam, July
{{10-12. Covering application of WAP, XML, ASP, Java and C++ to
{{wireless computing, choose from 40+ technical sessions delivered
{{by industry experts:
http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9
---
You are currently subscribed to asp_databases
|
|
 |