Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Creating HREF with Java


Scott_Archer - 5:34 pm on Oct 12, 2012 (gmt 0)


I think I am on to the solution but something in this is not quite right...

Suggestions?

in the body I am pulling the vale of these two lines:

<input name="Text22" id="text22" type="text" value="$" readonly="readonly"></td>
<input name="Text23" id="text23" type="text" value="$" readonly="readonly"></td>

----------------------------------------------
here is where I am at:

<script language="javascript" type="text/javascript">
function urlGen(f){
var i1 = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&amp;business=xxxxxxxxxxxx&amp;lc=US&amp;item_name=A%20P%20P&amp;no_note=1&amp;no_shipping=2&amp;a1=";
var i2 = f.text22.value;
var i3 = "&amp;p1=1&amp;t1=M&amp;src=1&amp;a3=";
var i4 = f.text23.value;
var i5 = "&amp;p3=1&amp;t3=M&amp;currency_code=USD&amp;bn=PP%2dSubscriptionsBF%3abtn_subscrib";
var fullURL = i1 + i2 + i3 +i4 + i5;
f.action = i1 + i2 + i3 + i4 + i5;
return true;
}

</script>


<a href="javascript: void(0)" onclick="scriptFunction(f.action)" target="_blank">
<div id="submit" class="out"
onMouseOver="document.getElementById('submit').className = 'over';"
onMouseOut="document.getElementById('submit').className = 'out';">
<span>action</span>


Thread source:: http://www.webmasterworld.com/javascript/4507120.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com