Solved

Layer/Parent Document Question

Posted on 2002-05-03
4
307 Views
Last Modified: 2009-07-29
I have a layer(iframe) on a web page that I load a page into when I click a button. Basically using the URLintoLayer extension from Dremaweaver. Anyway, there are check boxes on the external document that I load into this layer.

What I am wanting to do is when I click one of the check boxes on the emded page in the layer - I want the text box to change on the page that hosts the layer.

Here is some example code:

<script language="javascript">
function OK_loadit(url,layerObjNS, width) {
     document.frmMain.layer
 if (document.layers){
         document.layers[layerObjNS].load(url, width);
    } else{
         if (window.frames.length > -1){
                 url=url+'?catalog='+document.frmMain.cboDatabases.value+'&table_name='+document.frmMain.cboTables.value
             window.frames[layerObjNS].location.href = url;
}
</script>

<body bgcolor="#FFFFFF" text="#000000">
<iframe scrolling="auto" id="layerViewTables" frameborder="0" style="position:absolute; left:31px; top:334px; width:570px; height:230px; z-index:2; visibility: hidden;"></iframe>

<input name="txtTestField" type="text" id="txtTestField" size="25">
<input name="cmdView" type="button" id="cmdViewColumns3" onClick="MM_showHideLayers('layerViewTables','','show');OK_loadit('view_tables.asp','layerViewTables','*');return document.MM_returnValue" value="View Columns">
</body>
0
Comment
Question by:swhitlow
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
quantum2 earned 200 total points
ID: 7028235
I havent tried this so I am not sure if this will work. However, Idid something like this where if I checked a radio button on a layer I would change the color of a table cell on another part of the page.

To do this I named the control and then put the code in to have it change when slected and then update the new control by using its ID.

<input type="radio" name="radiobutton" value="radiobutton" onClick="document.getElementById('cell1').className='Green',document.getElementById('cell2').className='Green', document.getElementById('cell3').className='White',document.getElementById('cell4').className='white', document.getElementById('current').className='homesumdim'">

Q2
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7116663
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I will recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 1

Expert Comment

by:quantum2
ID: 7117881
I gave an answer that technically works. Can I not get the points for it...?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7130689
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to quantum2

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

708 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

15 Experts available now in Live!

Get 1:1 Help Now