Solved

iframe problem

Posted on 2004-03-30
11
856 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 32

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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

16 Experts available now in Live!

Get 1:1 Help Now