Thank you for the response. Here is the code (id is replaced by fake id )
<a id="_lpChatBtn"
href='https://server.iad.l
><img src='https://server.iad.li
Main Topics
Browse All TopicsI have bought a third party chat program and vendor provided me with the code and image for chat to add into my html code. Once the image is clicked the control is redirected to vendor's site for chat. Everything works fine but I don't get any tracking information i.e what page user is clicking this button. Log file shows 'leaving the site' and nothing more. I would like to place my own button on top of vendor's button so when my button is clicked I can write a cookie and then trigger a click event so it work as usual for the vendor. Is it possible to do this? I am using html and classic asp for my shopping cart. Thank you for your help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thank you for the response. Here is the code (id is replaced by fake id )
<a id="_lpChatBtn"
href='https://server.iad.l
><img src='https://server.iad.li
Hi there,
Sorry for replying late, I was out of office for couple of dayes...
HTML you have does the following: when someone clicks the button javascript does some stuff with cookies and finally open the chat window (https://server.iad.livepe
<script language="javascript" type="text/javascript">
alert('chat window will open!!');
//open chat page
lpButtonCTTUrl = 'https://server.iad.livepe
lpButtonCTTUrl = (typeof(lpAppendVisitorCoo
window.open(lpButtonCTTUrl
</script>
This page does the operation you button click did... You can add some code before of after this to do the stuff you wanted.
The code had
<a id="_lpChatBtn"
href='https://server.iad.l
><img src='https://server.iad.li
should be changed to open your redirect page:
<a id="_lpChatBtn" href="" onClick="window.open('redi
or even simpler ...
<a href="redirect.asp">open</
This did not work the way I expected.
Along with requiring a visitor to click multiple times, a couple of other problems showed up.
The chat window, after you click ok on the 'Chat window will open' message, gets blocked as a pop-up by both IE7 and Firefox 2.
When you ok the pop-up the chat window opens fine, but when you close the chat window you're left with the blank redirect page.
Hi,
Wel that is quite expected... However
"The chat window, after you click ok on the 'Chat window will open' message, gets blocked as a pop-up by both IE7 and Firefox 2." is the problem you had with you previous HTML as wel, because you already had "... window.open(lpButtonCTTUrl
"When you ok the pop-up the chat window opens fine, but when you close the chat window you're left with the blank redirect page." can be solved. I assumed that after logiing you will close the page, you could do that with window.close();
alernative is that you use ASP code:
- In that case you should use some kind of hidden input field (<input type="hidden" name="buttonCliked'" value="false" ID="buttonCliked">) and set its value to true onl clik of your button and make page submit (
onclick="YourFormName.butt
- Your asp code has to have something like
<%
if Request("SubmitAll") <> "true" then
write log
response.redirect "'https://server.iad.livep
end if
%>
you have to have some classic ASP knowledge to be able to implement this, but this solution will overcome poup blocker and empty page problem. however chat window will take over the existing page, so it will not open with 'width=475,height=150,resi
Business Accounts
Answer for Membership
by: hamidovtPosted on 2008-02-20 at 00:21:31ID: 20935908
It is difficut to say anything without really seeing what you have done... Could you please send the code you were supplied by the third party? I mean the code you have described as "vendor provided me with the code and image for chat to add into my html code".