Div content shown in new web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunil68
    New Member
    • Jun 2007
    • 4

    #1

    Div content shown in new web page

    Hi
    I am facing a problem. In the combo box when i select on option than i want to open a web page in the new window and the related data shown on that web page that i open in the new window. Please help me out.

    Thanks

    sunil
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    what have you done so far? please describe a bit more what data you want to have in the new window ...

    kind regards

    Comment

    • sunil68
      New Member
      • Jun 2007
      • 4

      #3
      Originally posted by gits
      what have you done so far? please describe a bit more what data you want to have in the new window ...

      kind regards
      simple div shown with the same id that in the option and the div.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        since we are not supposed to provide full solutions here, please show the code you already have tried. the basic idea is to use the onchange-event of the select-element to call a JavaScript-function the open()s a window and passes the desired data to the new open window that you might reference from the opener. you could even use a variable to store a reference to the new window in the window from where you open it.

        kind regards

        Comment

        • sunil68
          New Member
          • Jun 2007
          • 4

          #5
          Originally posted by gits
          since we are not supposed to provide full solutions here, please show the code you already have tried. the basic idea is to use the onchange-event of the select-element to call a JavaScript-function the open()s a window and passes the desired data to the new open window that you might reference from the opener. you could even use a variable to store a reference to the new window in the window from where you open it.

          kind regards
          [HTML]<body>
          <form id="Mainfrm" name="Mainfrm">
          <select name="state" size="1" onChange="javas cript:window.op en('newpage.htm l','mywin','wid th=715,height=7 00');"-->
          <option value="" selected>Choose a State</option>
          <option value="six">Ala bama</option>
          <option value="six">Ala ska</option>
          </select>
          </form>



          <!-- I want to show is div with the same data in the new window webpage the div id and the option value is the same-->

          <div id="six" class="hiddenDi v">
          <span>Sales Person : Al Theriot</span>
          <table border="1" cellpadding="0" cellspacing="0" >
          <tr><td width="10%"></td><td>Sun.Nov. 30,2008</td><td>Mon.Dec. 01,2008</td>
          <td>Tues.Dec.02 ,2008</td><td>Wed.Dec. 03,2008</td><td>Thurs.De c.04,2008</td></tr>
          </table>
          </div>

          </body>[/HTML]
          please help me out.
          Last edited by gits; Oct 23 '08, 11:02 PM. Reason: added code tags

          Comment

          Working...