Link to home
Start Free TrialLog in
Avatar of jd_dobariya
jd_dobariya

asked on

Javascript

Hellow !

Well ,I have one asp page contains iframe inside it.
in that frame frame opens the external URL.
I want to assign the value of textbox of the inner page (the page from external page opening inside the frame )

i used the following javascript

document.getElementById("ifrm").document.getElementsByName("modoOperacao") it shows me the object but

document.getElementById("ifrm").document.getElementsByName("modoOperacao").value  it shows me "undefined"

please let me know how can i solve it.

Thanks you very much.
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

jd_dobariya,

Is the page with the textbox on a different domain or server than the page where you will place this script?  If so you can't do it.  The browser prevents cross domain scripting like this for security reasons.  Let me know if the pages are on the same server and domain.

Let me know if you have any questions or need more information.

b0lsc0tt
ASKER CERTIFIED SOLUTION
Avatar of ritetek
ritetek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ritetek,  Good catch!  That is probably all he needs.

bol
Forced accept.

Computer101
EE Admin