iframe

G

Guest

hey all,

if i have an iframe on my webform and the source of the iframe is an .aspx
page with 1 hidden field, is there a way (on demand) to make the hidden
field visible?

thanks,
rodchar
 
L

Lau Lei Cheong

Instead, I believe you should create a textbox and make it invisible(i.e.:
DISPLAY: none) first, then set display to empty string to show it.
 
E

Eliyahu Goldin

Yes. it can be done easily in javascript. Something like

parentForm.myIframe.contentWindow.document.getElementById(hiddenField).style.display="inline';

The hidden field should not be an <input type=hidden...>. Rather it should
be a regular visible html element with style display:none or similar.

Eliyahu
 
G

Guest

thanks, i'll give it a try and report back.

Eliyahu Goldin said:
Yes. it can be done easily in javascript. Something like

parentForm.myIframe.contentWindow.document.getElementById(hiddenField).style.display="inline';

The hidden field should not be an <input type=hidden...>. Rather it should
be a regular visible html element with style display:none or similar.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top