Buy Sell Discuss UK Domain Names at AcornDomains.co.uk

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:45:12 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 21-06-2011, 12:34:03 PM     #1 (permalink)

 
Join Date: Jul 2010
Posts: 399
boxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond reputeboxfish has a reputation beyond repute

Can't get javascript code to work

I'm trying to get a bit of javascript coding to work but really struggling

The 'form' can be found here: http://www.freecarvaluation.org.uk/enter-registration/

and here is the coding behind it:

Code:
<script type="text/javascript">// <![CDATA[
function doit() {
var x = document.getElementById('symtb').value
window.open('http://being.successfultogether.co.uk/click.asp?ref=558809&amp;site=7865&amp;type=text&amp;tnb=1&amp;diurl=http://www.webuyanycar.com/affiliateTracker.aspx?AffiliateID=1007&amp;CreativeID=72&amp;Reg='+x)
}
// ]]></script>
</p>
<p>
<input id="symtb" size="20" type="text" value="SU06NJX" /> <button onclick="doit()">Get Value</button></p>
<p>&nbsp;</p>
<p><a href="http://being.successfultogether.co.uk/click.asp?ref=558809&amp;site=7865&amp;type=text&amp;tnb=1&amp;diurl=http://www.webuyanycar.com/affiliateTracker.aspx?AffiliateID=1007&amp;CreativeID=72&amp;Reg=SU06NJX">link</a></p>
You'll see that there is the form and also a text link. The link has exactly the same url behind it, and links through fine, passing the registration number, the textbox and button however must have an error as it links through to affilinet.

Does anyone have any ideas what I am doing wrong - does the url need formatting differently?
boxfish is offline  
Old 21-06-2011, 04:14:22 PM     #2 (permalink)

 
aquanuke's Avatar
 
Join Date: May 2005
Location: Surrey
Posts: 1,993
aquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond repute

Have you been accepted for the program, looks as its just being redirected to the network.
aquanuke is offline  
Old 21-06-2011, 04:34:38 PM     #3 (permalink)
dta

 
Join Date: Jul 2009
Posts: 388
dta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud of

?? both work for me and go through fine....
dta is offline  
Old 21-06-2011, 04:42:10 PM     #4 (permalink)

 
aquanuke's Avatar
 
Join Date: May 2005
Location: Surrey
Posts: 1,993
aquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond repute

Quote:
Originally Posted by dta View Post
?? both work for me and go through fine....
where affilinet or webuyanycar. I still get affilinet
aquanuke is offline  
Old 21-06-2011, 04:45:46 PM     #5 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Duplicate post

Last edited by grantw; 21-06-2011 at 11:22:13 PM.
grantw is offline  
Old 21-06-2011, 04:48:13 PM     #6 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Duplicate post

Last edited by grantw; 21-06-2011 at 11:22:24 PM.
grantw is offline  
Old 21-06-2011, 04:54:25 PM     #7 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,624
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

It looks like a browser issue mate, both work fine in IE - in firefox the link works but the form doesn't. Firefox seems to be handling the &amp; in the url differently in the link and in the form.

Copy and paste the url into firefox from the code and it don't work, replace all the &amp; with & and it works.

Grant
grantw is offline  
Old 21-06-2011, 05:32:08 PM     #8 (permalink)
dta

 
Join Date: Jul 2009
Posts: 388
dta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud of

Quote:
Originally Posted by aquanuke View Post
where affilinet or webuyanycar. I still get affilinet
webuyanycar - as just posted its a problem with your url on firefox
dta is offline  
Old 21-06-2011, 05:44:01 PM     #9 (permalink)

 
aquanuke's Avatar
 
Join Date: May 2005
Location: Surrey
Posts: 1,993
aquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond reputeaquanuke has a reputation beyond repute

ah ok im on Linux did'nt think anyone used ie anymore
aquanuke is offline  
Old 21-06-2011, 05:45:37 PM     #10 (permalink)
dta

 
Join Date: Jul 2009
Posts: 388
dta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud ofdta has much to be proud of

Quote:
Originally Posted by aquanuke View Post
ah ok im on Linux did'nt think anyone used ie anymore
?? they still have the biggest share of the browser market and no doubt most of your users will be probably using ie... but the problem is with firefox not ie...
dta is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Voucher Codes - IAB Launches Code of Best Practice bensd Affiliate Marketing 0 02-12-2008 09:33:39 PM
Hosted, updated voucher code sites from £49 per year vintagecomputer.co.uk Affiliate Marketing 6 30-10-2008 03:33:23 PM
A new simply way to make a image slider- Javascript Code o0DarkEvil0o Website Design 0 17-05-2008 07:05:15 AM
SEO work required retired_member16 Search Engine Optimisation 1 05-05-2008 01:15:34 PM

Web Hosting from UK2 from just 99p


All times are GMT. The time now is 12:45:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".