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

fire sql on hyperlink click before opening external link

1
hi,

i have some links which open other sites in a new window/tab and need to track this activity

am wondering how i can fire some sql yet still spawn a new window:

ie i have the html as:

<a href="http://google.com" target="_new">hr mr lala</a>

yet want to run sql on its click and still fire the new open window

any help much appreciated.
Aug 25 '12 #1
1 1641
ariful alam
185 100+
You can use AJAX here. You can send value to an AJAX function to send the data to a server page like PHP to track and use JAVASCRIPT window.open() in the function to open a new tab/window.

Hope helps. :)
Aug 25 '12 #2

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

Similar topics

2
by: cschang | last post by:
I have a form containing a link next to an input box. I include a javascript function in the input by using the onblur='fuc()'. I used this function to open another ASP page to do something and...
1
by: KiwiBrian | last post by:
I am using Statcounter to log site visits Upon enquiring whether the service logged visits from my site to external sites using site links I was given the following information:- "You have to...
2
by: eveready | last post by:
Hello I have two forms - a start form running in the background and a content form in the foreground. When a timer fires on the start form, I need to fire the click event for a button on the...
2
by: moondaddy | last post by:
Using asp.net 2.0 and c#, I have a table in a webform. One of the rows in the table has some text used as a main category heading. I want to be able to click on this heading and display or hide...
14
by: eddy.pagotto | last post by:
Hi, I'm trying to display external link into a DIV (http:// www.google.com/, for example). I don't want to use IFRAME, because I already tried it and I'm not satisfied about the results. How can...
6
by: info | last post by:
hello all, if anyone out there could help me i would really appreciate it. i am very much a novice coder. I have a site we are building and we have created a section in the admin area to allow the...
3
by: tamimmakki | last post by:
hi, I want to pass a value with hyperlink click to a php page.What i want to do is I have a list of 12 players in form of hyperlinks. if some user want to check profile of any player he will click on...
3
by: amanjsingh | last post by:
Hi, I have my website and want to perform this functionality most likely using PHP. Please note that the website is huge and manual editing of pages is not possible. Is there a quick solution...
2
by: majeti | last post by:
How to call a server method on hyperlink click
1
by: aznimah | last post by:
HI, i need help on how to draw a square dot when fire mouse click: -onto image in picturebox -the dot size is 10px X 10px -and return the position of dots (x,y) values. here i try some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
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...

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.