• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

iframe reloads another iframe

Participant ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

i have a page that has 2 iframes...

"iframe1" is a form "pstpg.cfm" that posts to itself and writes to table...

when a visitor submits form in "iframe1" need it to tell "dsppg.cfm" in "iframe2" to refresh.

i know not a cf issue but driving me nuts

tnx in advance
TOPICS
Advanced techniques

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jan 19, 2009 Jan 19, 2009
tnx to all...

sometimes u just gotta rip ur hair out...

<img src="art/x.gif" name="refr" width="10" height="10" border="1" id="refr" onload="MM_openBrWindow(dsppg.cfm','iframe2','')">

Votes

Translate

Translate
LEGEND ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

if you are on CF8, you can use CFDIV instead of iframes and use
ajaxonload() and ColdFusion.navigate() functions to refresh the second
cfdiv...

it is still early here and i am only on my first cup of coffee and i
can't quiet remember right now how to do it with iframes (if you are not
on CF8), but that is sure to require javascript...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

thanks Azaid but i am not using cf8..

i use this script which has the correct function on a page that has frames and iframes

<body onLoad="top.topr.headr.location.href='sect_hd.cfm?secID=#gtsec.secID#'">

where "top" is a frame name. this page has no frames so all pages load in index.cfm

what i need is to just tell iframe2's file to refresh when iframe1's file is acted upon.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

If it's possible, you will probably have to use some inner HTML. iframe1 will have to talk to iframe2 via the parent.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

Dan Bracuk and all...

i do appreciate your thoughts but telling me that iframe1 needs to talk to iframe2 is not really a help. what i would appreciate is someone who actually understands my issue and that i have spent 1/2 day trying everthing i can think of.

i do expect it to be a javascript function but do not know what it is.

tnx again,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

see if any of these can help you:
http://bytes.com/groups/javascript/148043-refreshing-one-iframe-another
http://www.tek-tips.com/viewthread.cfm?qid=1281918&page=6
http://www.daniweb.com/forums/thread130202.html

but, as was wisely suggested in of the other links i found:
DON'T use iframes - use AJAX.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 19, 2009 Jan 19, 2009

Copy link to clipboard

Copied

LATEST
tnx to all...

sometimes u just gotta rip ur hair out...

<img src="art/x.gif" name="refr" width="10" height="10" border="1" id="refr" onload="MM_openBrWindow(dsppg.cfm','iframe2','')">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation