1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Rep Power
    We are planning to use DHTML and JavaScript to generate the whole UI, and JSP or Java Servlet as backend to pass in dynamic data to the JavaScript, and let DHTML+JavaScript to generate the HTML page which contain UI together with data to present to the user. Could any one suggest any method for us to pass the dynamic data into JavaScript? Thanks!
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Perth West Australia
    Rep Power
    With PHP you would write the variables ie:
    <?php echo "var thisvar="hello" ";?> or fill the form using document.formname.valuename.value="<?php echo $var ?>">

    I assume that JSP does a similar thing.

    This method however needs the users UI to be refreshed which I gather from earlier questions you do not want to happen , I think then that the best bet is to use a hidden frame which alters the data in the visible frame using the second method above.


    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. DEBUGGER in VC++ dumping memory leaks
    By kavi_s in forum C Programming
    Replies: 3
    Last Post: December 3rd, 2004, 02:00 PM
  2. dynamic data structures
    By joelster in forum C Programming
    Replies: 1
    Last Post: November 17th, 2003, 05:39 PM
  3. <THEAD> not printing across multiple pages
    By allanmcc in forum HTML Programming
    Replies: 2
    Last Post: September 29th, 2003, 08:47 PM
  4. Loading JavaScript Arrays with MySQL Data
    By guest in forum JavaScript Development
    Replies: 42
    Last Post: May 29th, 2003, 10:07 AM
  5. Dynamic number of Form Elements between PHP and Javascript
    By Statik in forum JavaScript Development
    Replies: 2
    Last Post: June 20th, 2001, 06:24 AM

IMN logo majestic logo threadwatch logo seochat tools logo