Solved

Layer/Parent Document Question

Posted on 2002-05-03
4
316 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 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