Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: [asp_databases] use client side function to modify server side information


Message #1 by "Jimmy Ho" <jimmyyl@h...> on Thu, 21 Dec 2000 14:41:43 +0800
i would like to collect some information like the number of clicks the

surfers click. How can i connect to server side database?

P.S I know the detail of database connection for ASP, just dont know how to

use ASP with client side script.



Function linkName_onclick

'connect to server side database and add 1 to count

return true

end function



Thanx







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #2 by "Ken Schaefer" <ken@a...> on Sat, 23 Dec 2000 20:38:40 +1100
Can't be done as such, without using something like ActiveX or a Java applet

that maintains a persistant connection to the server, or some client side

code that can trap client-side clicks (eg javascript) and increment a

counter that it then sent to the server.



Could I recommend a primer on the stateless nature of the WWW - HTTP v1.1

RFC:

http://www.ics.uci.edu/pub/ietf/http/rfc2068.txt



Cheers

Ken





----- Original Message -----

From: "Jimmy Ho" <jimmyyl@h...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, December 22, 2000 5:35 AM

Subject: [asp_web_howto] [asp_databases] use client side function to modify

server side information





> i would like to collect some information like the number of clicks the

> surfers click. How can i connect to server side database?

> P.S I know the detail of database connection for ASP, just dont know how

to

> use ASP with client side script.

>

> Function linkName_onclick

> 'connect to server side database and add 1 to count

> return true

> end function

>

> Thanx





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #3 by gbrown@c... on Sun, 24 Dec 2000 09:47:32 -0000
Hi 



If you want to go from client to server to do some processing have you

thought about using popups.



I use Javascript to launch a popup which runs a server side ASP script to

run my page com objects. The popup launches at its smallest size and also

off screen.



If I then need to update something on the main window I can use

opener.document.form.control.value="xyz".



If I need to feedback to the user ie an error I just move the popup to

centre and size it so the user can see with a button that does a

self.close()



Works well.



Regards

Graham

Computer Software Services 

http://www.compsys.co.uk



---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index