Luey
asked on
javascript open link with variables
Hello what is wrong with my javascript. It opens the url correctly except for it adding [objectHTMLInputElement] in the url. This is the url the code is opening.
http://www.accesswestga.com/[objectHTMLInputElement]de aler_real_ estate_my_ account.ph p?agent=24 &show=HOME
http://www.accesswestga.com/[objectHTMLInputElement]de
<script type="text/javascript">
function openLink(){
location = document.getElementById('site_url') + "dealer_real_estate_my_account.php?agent=" + document.getElementById('link_agent').value + "&show=" + document.getElementById('link_property').value;
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
These things are easily missed.
I once spent an hour trying to figure out why changes to a script had no apparent effect. The script I was editing was on my test server. The script I was testing was on the LIVE server.
Duh!!!
I once spent an hour trying to figure out why changes to a script had no apparent effect. The script I was editing was on my test server. The script I was testing was on the LIVE server.
Duh!!!
ASKER
I hear ya! Thanks again
ASKER