Results 1 to 4 of 4

Thread: Hi Help pls.. Urgent...thanx alot

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    100

    Hi Help pls.. Urgent...thanx alot

    Hi,

    I have got a list box of numbers. When i choose say "3" then the same page should populate a table with 3 rows. How do i go about doing that? I have no clue...Can anybody help pls? Thanx

  2. #2
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: Hi Help pls.. Urgent...thanx alot

    Could you please post your code. Are you using JavaScript or a server side language?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    100

    Re: Hi Help pls.. Urgent...thanx alot

    I am using html and java script. The thing is that i do not know how to go about writing the javascript code. I onky have a drop down list with a few numbers

  4. #4
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769

    Re: Hi Help pls.. Urgent...thanx alot

    1) Implement a server side page that returns an xml representation of the data you want displayed in the table.
    2) Place a div tag where you want the table to be. Give the div an id that you can reference it by...
    3) Develop an xslt that transforms the xml data into the html table. Oh yeah...store this file on the server with the rest of your files.
    4) Create an xml data island in your web page and point it to the xslt file.
    5) Catch the onchange event of the drop down box
    6) Create a javascript procedure (executed onchange of drop down) that will request information from the server page you created using MSXML.HTTP_REQUEST object.
    7) Use MSXML2.XSLTemplate object and the xslt file you created to transform the xml received from the server page into the html table.
    8) Assign the html output of (7) to the div.innerHTML.

    And hey presto, you there!
    This might seem like a lot, but there is not much code at all to each step.
    Any more questions, dont hesitate to ask.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width