Solved

iframe problem

Posted on 2004-03-30
11
857 Views
Last Modified: 2007-12-19
Hi Experts,

I have JSP page inside of IFRAME
I also have javascript within this JSP like this : document.getElementById('ID').src = tempID;
where I am assigning value that was populated within JSP to outside of IFRAME source attribute of another IFRAME. Here 'ID' is id of another IFRAME in my main page.

What I am doing wrong ?

Thank you.


0
Comment
Question by:fpoyavo
11 Comments
 
LVL 33

Expert Comment

by:shalomc
ID: 10715502
try

top.getElementById('ID').src = tempID;

ShalomC
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10715818
Did not help. :(
0
 
LVL 6

Expert Comment

by:jarasa
ID: 10716081
I guess that they should not be called ID try to change the name of one of them.

But anyway you should post the code to see it better.

Javier
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10716651
I was trying other names and methods to get value of that field but all in vain :(
0
 
LVL 1

Expert Comment

by:gagaliya
ID: 10717340
parent.document.getElementById('ID').src = tempID;

?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 500 total points
ID: 10717418
whats the name of your another IFRAME????
try doing

top.IframeName.document.getElementById('ID')
here iframeName is the actual name of the Iframe that contains ID
or try simply
top.document.getElementById('ID');
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10742059
Hi guys,

gagaliya was closer then anybody else. I actually found the answer before and it does have parent.....hmmm but worked only
when I used parent.framename.formname.elements[0].value.

Thank to all.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10742075
How come point went to Kuldeep.....

I said to GAGALIYA. PLEASE CORRECT IT.
0
 
LVL 19

Expert Comment

by:Kuldeepchaturvedi
ID: 10742098
Hmm.... you must have clicked it wrongly...!!!
I do not know if admin can re assign them...
I will open up a points question for Gagaliya.. so that he can collect them..
Is that okay????
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10743652
you can post a support request in:
http://www.experts-exchange.com/Community_Support/
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10745296
Yep. That's OK. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With the rapid rise in mobile usage, mobile devices are here to stay and have become an integral part of doing business. Here are 9 great apps for your BYOD environment.
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now