jk11uk Posted April 24, 2010 Share Posted April 24, 2010 I'm presuming i have to use javascript, but anytyhing will do to get the job done! I have a site which has an affiliate form and i need to pass data into it using javascript. I've set up a test button (the link 'tester') which should send xxxx into the firstname field. But, as you may have guessed im here for a reason and it doesnt http://www.budgetinsuranceagents.co.za/car-insurance-quote.html Could someone have a look and give me a hand? The code on the link is: <a onclick="document.frames('frameform').document.forms('MyForm').firstname.value='xxxx';" href="#">tester</a> Quote Link to comment Share on other sites More sharing options...
jk11uk Posted April 25, 2010 Author Share Posted April 25, 2010 hey - any ideaas? pleeeease help! Quote Link to comment Share on other sites More sharing options...
seventheyejosh Posted April 26, 2010 Share Posted April 26, 2010 It is because Javascript isn't allowed to access an iframe from another domain: http://en.wikipedia.org/wiki/Same_origin_policy Your active url: http://www.budgetinsuranceagents.co.za/car-insurance-quote.html The iframe src: http://affiliates.trafficsynergy.com/z/1047223/CD9592/ Javascript is denied access. This helps prevent XSS attacks. Quote Link to comment Share on other sites More sharing options...
jk11uk Posted April 26, 2010 Author Share Posted April 26, 2010 aaaah. thanks very much makes sense i guess Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.