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

Saving onClick Tracking To SQL Server

233 100+
I am very new to JS and have a few tasks I would like to accomplish. I understand the basics, but that is about all.

-I want to be able to track when a user clicks an imagebutton and save that to a column in a database with the value of "true"

Expand|Select|Wrap|Line Numbers
  1. <script type=text/javascript>
  2. var conn
  3. conn=new ActiveXObject("ADODB.Connection");
  4.  
  5. var rst
  6. rst=new ActiveXObject("ADODB.recordset");
  7.  
  8. sql="UPDATE LinkCLick1 WHERE URL= URL"
  9.  
  10. conn.Open("Connection string");
  11.  
  12. rst.Open (sql, conn);
  13.  
-Another task is enabling an imagebutton based off of two parameters, if a form is valid and depending on which radio button(s) are selected.

Expand|Select|Wrap|Line Numbers
  1. If (page.isvalid and rad1.checked) {
  2.     window.open(pdf1.pdf);
  3.      }
  4. Else If (page.isvalid and rad1.checked and rad2.checked) {
  5.      window.open(pdf1.pdf) and window.open(pdf2.pdf);
  6.      }

The radio button are not in a group, so more than one can be selected. The use will make their selections, fill out the form, and then click the submit button. Upon submitting, I would like the selected values to automatically download.


**Note, I thought I was under the forums sections when posting. I cannot find where to delete. I would appreciate a mod moving this to the forums section.
Jul 30 '07 #1
2 1136
gits
5,390 Expert Mod 4TB
moved from js-articles-section ;) ...

kind regards
Jul 30 '07 #2
iam_clint
1,208 Expert 1GB
are you sure this is how you want to do it? you should really look into doing this server side..
Jul 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Michael Kennedy [UB] | last post by:
Hi Everyone, I have this multithreaded C# windows forms application which does a lot of image processing. Occasionally, I get the following error: A generic error occurred in GDI+....
5
by: byrocat | last post by:
Sybase and DB2 both have the capability of tracking user activities at a number of levels: invalid access attempts to databases, table, etc.; creation/deletion/modification of database...
3
by: CSDunn | last post by:
Hello, I have an Access 2000 Project in which the data comes from a SQL Server 2000 database, and multiple users need to be able to see new records as each user adds records. The users also need...
3
by: cdj | last post by:
Hi all, I've got a picturebox on a form, and a save button. When I go to save, the app craps out with the following error: ================== An unhandled exception of type...
2
by: Shaw | last post by:
We develop ASP.NET based web application for a while, and don’t have defect (bug) reporting and tracking system for development right now. We consider using defect report and track software....
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
0
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
8
by: Dan Rumney | last post by:
All, I have a web page (copied below) with 3 images on it of fixed dimensions. Each image has a map associated with it In the maps, there are a number of areas with an onClick handler...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
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
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...

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.