HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Passing information between IFrames on a slide
Passing information between IFrames on a slide
  View type:
I have this situation: A slide with 3 IFrames where an interaction in the 'main' frame (e.g. clicking on highlighted text) should direct a second IFrame to display something new (e.g. another html page or a graphic). I haven't found a way to do this in the docs. Can anyone help?
Thanks in advance!
 
Hi Robert
What you have would be effectively 3 discrete instances of the web browser displaying content on the same page.
If you had 3 web browser windows open on your desktop you wouldn't expect browser window 1 to affect the display that browser window 3 is showing, they are sperate instances without anything really uniting them.
Ideally you would have html1 displayed a click on a designated area would then have the server (I'm assuming these are remote from your initial content) dynamically change the content of html2 and so on.
 
 
So the ideal method would be to make the dynamic change at the server which handles the iframe content.
While you think about how you might manage that there is another option.
If you had a single iframe object on the page with the source html content in frames (I know frames are pretty much deprecated but they are still supported) then you could replicate what you want without any server end work.
http://www.w3.org/TR/html4/present/frames.html
Frame1 would have links that open further html docs in frame2, frame 2 would open links in frame3 or 1.
It will probably make a mess of your page layout but it will work and is simple to implement.
 
 
 
Hi Nick,

Frames looks exactly like what I need. I don't suppose there is a way to implement this is CL? as I am not an html programmer.
Thanks in advance,
Rob
 
 
 
 
drop me a mail and let me know what you're after.
I should be able to get some skeleton html pages with simple instructions back to you.
You'd need a text editor (notepad or OpenOffice Write NOT M$ Word no no no never use that!!)and be able to put the files onto a server somewhere.
You could also easily bundle them onto a cd published module.
 
 
 
 
 
Hi Nick,

Aplogies for not responding sooner. Yes! I'd love to use whatever templates you've developed. Can you put them on your server in my files area? If not, my email is rwshaw1234@gmail.com. And no, I'll not use M$ Word...[:cool:]

Thanks,
Rob
 
 
 
 
 
 
Just putting some CSS together for this. Do you have a font type and size preference or are you happy with the users browser default (might be anything though).
Any specific styled blocks you might need?
 
 
 
 
 
 
 
Nick,

I'll use the browser's default until I'm comfortable editing HTML.

I'm assuming I can integrate what you're developing into the CourseLab composition environment (e.g. as a template) - is this the case?

Thanks in advance!
Rob
 
 
 
 
 
 
 
 
Hi Rob, The concept is good but there seem to be a few issues which I'm ironing out.
The idea is that you just drop the files into the folders
 
 
 
 
 
Yep we can make this work Robert.
I've knocked up a very quick frameset structure for this which is a little clunky. I'll see if I can knock up something a little more elegant.
Anyways there's a master/index.html that is split into vertical thirds.
An html page opens in the first area, there are links that open a number of html pages in the second area. Then the second area opens more htmls in area 3.
Subject:
Message options
No additional options