JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2000, 07:16 AM
Jack Lam Jack Lam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 Jack Lam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old June 23rd, 2000, 01:05 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > How to pass dynamic data into JavaScript?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway