944,044 Members | Top Members by Rank

Ad:
Jul 14th, 2006
0

Var value is not passed

Expand Post »
Hi!

[html]<script language="javascript">
var myuid = 2;
var uri = 'http://impgb.tradedoubler.com/imp/img/16173558/1014659?' + new String (Math.random()).substring (2, 11);
document.write('<a href="http://clkuk.tradedoubler.com/click?p=37983&a=1014659&g=16173558&epi="'+myuid+'" target="_blank"><img src="'+uri+'" border=0></a>');
</script>[/html]


My problem is that , var myuid is not replaced with value in the url.

Kindly help me in this regard
Last edited by tgreer; Jul 15th, 2006 at 12:40 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dr_dumb99 is offline Offline
3 posts
since Sep 2004
Jul 14th, 2006
0

Re: Var value is not passed

You have an extra quote mark in your document.write line which is closing the href value before your variable is added. Try:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. document.write('<a href="http://clkuk.tradedoubler.com/click?p=37983&a=1014659&g=16173558&epi='+myuid+'" target="_blank"><img src="'+uri+'" border=0></a>');
Reputation Points: 16
Solved Threads: 7
Junior Poster
Lafinboy is offline Offline
166 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: javascript code not working in mozillafirefox
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Image Rotation w/Links





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC