Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to assign value to textbox control present in iframe using javascript for IE

I tried

window.frames["<%=ifrUploadDocs.ClientId %>"].document.getElementById("<%=hdBatchId.ClientId %>");

but not working.

Please help me in solving this.
Posted
Comments
F-ES Sitecore 26-Aug-15 4:04am    
First off, if the page in the iframe isn't on the same domain as the parent page then you can't. Second, the ClientID code is only valid for the current page, it can't find the ID of a page in an iframe in the browser. You'll need some other way to get the ID of the control you want in the iframe.

1 solution

there is a good tip on this , check this , might be helpful.

http://www.codeproject.com/Tips/656521/Get-or-Set-value-to-Controls-inside-iFrame-from-Pa
 
Share this answer
 

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