Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

append value to end of url

Status
Not open for further replies.

PushCode

Programmer
Dec 17, 2003
573
US
Is this the proper way to send a value to a javascript function, which will then append that value to the end of a url?

Javascript function:
function doEdit(i)
{
document.frmpage.action=&quot;/application/claims/admin/adjudicate/popup.inpatient_day_tracker.cfm?claim_id=<cfoutput>#page.claim_id#&status=edit</cfoutput>&row=&quot; + i;
}

Form:
<form name=&quot;frmpage&quot; action=&quot;&quot; method=&quot;post&quot;>
<input type=&quot;image&quot; src=&quot;/pics/button.edit.pencil.gif&quot; alt=&quot;Edit&quot; width=&quot;17&quot; height=&quot;21&quot; border=&quot;0&quot; onClick=&quot;doEdit(2)&quot;>
</form
 
You can do it that way, although I don't understand why you're putting variables in your querystring when your form is using the post method. It's usually either one or the other.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top