User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 455,985 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,759 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 825 | Replies: 2
Reply
Join Date: Feb 2007
Posts: 60
Reputation: adaykin is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
adaykin adaykin is offline Offline
Junior Poster in Training

How can I get output in a table by using the document ID?

  #1  
Dec 3rd, 2007
Hey suppose I have code like:

<td id="something">I want to put stuff in here</td>

How would I be able to put the value of a JavaScript array into the part where I want to put stuff. Say the value of the array at a position is hello, I would output hello.
My Website <-- check out my site!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Posts: 78
Reputation: DavidB is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
DavidB DavidB is offline Offline
Junior Poster in Training

Re: How can I get output in a table by using the document ID?

  #2  
Dec 3rd, 2007
Using a form would be one approach. Are you trying to avoid the use of forms?

Alternately, you could try innerHTML. Put a div or span where results are to be inserted and then write the Javascript code such that it outputs the appropriate HTML.
Reply With Quote  
Join Date: Feb 2007
Posts: 60
Reputation: adaykin is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
adaykin adaykin is offline Offline
Junior Poster in Training

Re: How can I get output in a table by using the document ID?

  #3  
Dec 4th, 2007
Well say I have an array that has a value of "Text" at position 0. How would I set the array at position 0 to display in my table where I have the element x.
My Website <-- check out my site!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 9:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC