HTML
  Home arrow HTML arrow Page 3 - Opening Web Page Dialog Boxes with Other D...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Opening Web Page Dialog Boxes with Other Dialog Boxes
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-01-12

    Table of Contents:
  • Opening Web Page Dialog Boxes with Other Dialog Boxes
  • Content
  • Child HTML
  • Adding a Row in a Child Table

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Opening Web Page Dialog Boxes with Other Dialog Boxes - Child HTML


    (Page 3 of 4 )

    Setting and Reading Child HTML Element Values

    In the JavaScript of the parent window, the following statement would access the value of an element in the child window.


    myWindow.document.getElementById(ID).value


    Assume that you have the following element in the child window:


    <input type=”text” id=”I1”>


    The following statement in the parent script would set the value of the Input Text control to “Peter”.


    myWindow.document.getElementById('I1').value = "Peter";


    And the following code in the parent script would read the value of the Input Text element from the child window into the variable, name, in the parent window:


    var name = myWindow.document.getElementById('I1').value;


    Setting and Reading Child HTML TD Content

    The method is similar to the one explained above, but instead of the property, value, you have the property, innerHTML.

    Assume that you have the following element in the child window:


    <table>

    <tr>

    <td id="TD1">

    The cell content

    </td>

    </tr>

    </table>


    The following statement in the parent script would set the content of the table cell element to “New Cell Content.”


    myWindow.document.getElementById('TD1').innerHTML = "New Cell Content"


    And the following code in the parent script would read the content of the table cell element from the child window into a variable (content) in the parent window:

    var content = myWindow.document.getElementById ('TD1').innerHTML;

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek