Doug Van
asked on
Is it possible instruct a page to open in a child window?
Hello all,
I have some html code that I need to open in a child window.
This is easy to accomplish if I am calling this html code through other html.
Example:
But in my situation, I have no access or control over what is calling my "page_to_open_in_child_win dow.htm". I have tried renaming this file and using the above code in a redirector and it worked... except unfortunately (this is an LMS), using the redirector idea causes the LMS session data to not be retained.
Question is, can I embed the same instructions inside of my "page_to_open_in_child_win dow.htm"? Can this be done through HTML and/or javascript and/or CSS?
Thanks
I have some html code that I need to open in a child window.
This is easy to accomplish if I am calling this html code through other html.
Example:
<script type="text/javascript">
window.open("page_to_open_in_child_window.html","","location=0,toolbar=0,status=0,resizable=1,width=800,height=600");</script>
<body>
But in my situation, I have no access or control over what is calling my "page_to_open_in_child_win
Question is, can I embed the same instructions inside of my "page_to_open_in_child_win
Thanks
ASKER
Hello tdlewis,
Thanks for your response but not even close. LOL Though, I suspect my description wasn't nearly good enough.
The problem is that in opening a child window, I must also carry a two-way communications with the parent window API. This is where it is slightly more complicated than simply opening a child window.
Thanks for your response but not even close. LOL Though, I suspect my description wasn't nearly good enough.
The problem is that in opening a child window, I must also carry a two-way communications with the parent window API. This is where it is slightly more complicated than simply opening a child window.
OK. Can you give a brief description of what you need the parent and child windows to do?
ASKER
Hello tdlewis,
This might be beyond the scope of a EE question but here goes... I have attached two files.
First is the index.html - this file is the first to load and it establishes the API and then
opens...
Test-sample.htm - there is more variables (part of the API) and this file then opens the FLASH file (not included).
Throughout this process, the API calls establish a 2 way comm link from the LMS to the FLASH file (lesson actually).
What I am trying to accomplish is to open that Flash lesson in a child window and maintain the 2 way comm link to/from the LMS.
What do you think?
Test.zip
This might be beyond the scope of a EE question but here goes... I have attached two files.
First is the index.html - this file is the first to load and it establishes the API and then
opens...
Test-sample.htm - there is more variables (part of the API) and this file then opens the FLASH file (not included).
Throughout this process, the API calls establish a 2 way comm link from the LMS to the FLASH file (lesson actually).
What I am trying to accomplish is to open that Flash lesson in a child window and maintain the 2 way comm link to/from the LMS.
What do you think?
Test.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tdlewis: For all your effort, thank you.
myWin = window.open("","", "location=0,toolbar=0,stat
Then you can do something like this:
myWin.document.writeln("<h
In that way, you don't need a pre-existing webpage.
On the other hand, if you need for something to be loaded by the LMS so that you have its session data then create a super simple page. It can be as simple as:
<html><body></body></html>
Then you can do something like this:
myWin.document.body.innerH