Click here to Skip to main content
15,912,457 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my HTML code , the parameter is job_no how do i pass it to the assigntocompany.aspx ,pls help me out
is anything wrong in the code , i couldnt get an correct syntax



<iframe
id="I3" frameborder="0"
marginwidth="0" marginheight="0"
scrolling="no" style="width: 800px; height: 208px" src="../Jobs/AssignToCompany.aspx?Job_no=strjobno"
Posted

1 solution

If you use jQuery it would be pretty easy. First, get the value and then refresh the iframe.
JavaScript
var val = $('#I3').attr('Job_no');
var currentSrc = $('#I3').attr('src');
$('#I3').attr('src',currentSrc + val);
 
Share this answer
 
Comments
ashok_89 23-Feb-12 7:57am    
iam using the accordian jquery ,is it not possible to pass the parameter to the page in src link
ZurdoDev 23-Feb-12 8:16am    
If you have a reference to jQuery, then yes you can use this. If you are using the according from jQuery UI then you must be using jQuery also.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900