ZeroPaid.com

  (#1) Old
flyingmunky25 Offline
Zeropaid Regular
flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150
 
flyingmunky25's Avatar
 
Posts: 36
Join Date: Feb 2008
Location: USA
Reputation Power: 25
Javascript array to static html - October 3rd, 2008, 01:22 PM

Hi All,
I'm looking for a way to take a javascript array from a .js file, and process it to create a single html page per item in the array.
I have looked at the options of writing a script in c++ or c# or some other language to process the file, but i was wondering if anyone knew of something thats already made or a program that would do this.

Thanks!
   
Reply With Quote
  (#2) Old
flyingmunky25 Offline
Zeropaid Regular
flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150
 
flyingmunky25's Avatar
 
Posts: 36
Join Date: Feb 2008
Location: USA
Reputation Power: 25
October 3rd, 2008, 01:33 PM

i probably should have elaborated some more
This script holds a bunch of data and the html file pulls out the different elements it needs and creates a table in html.

the .js file is pretty much just a large database since we do not have any server-side scripting here or database access.
   
Reply With Quote
  (#3) Old
dubstylee Offline
chick repellant
dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000dubstylee Reputation is 2000
 
dubstylee's Avatar
 
Posts: 599
Join Date: Apr 2002
Location: SD CA
Age: 29
Reputation Power: 154
October 3rd, 2008, 04:17 PM

do you actually need html files or can you do a document.write


"Those who make peaceful revolution impossible will make violent revolution inevitable."
- John F. Kennedy

knofun | Cheap Used Cars
  Send a message via AIM to dubstylee  
Reply With Quote
  (#4) Old
flyingmunky25 Offline
Zeropaid Regular
flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150flyingmunky25 Reputation is 150
 
flyingmunky25's Avatar
 
Posts: 36
Join Date: Feb 2008
Location: USA
Reputation Power: 25
October 3rd, 2008, 09:56 PM

i actually need the html files. for whatever reason that i don't know, my job requires them. they want the pages done with the javascript and also just plain old html pages.
   
Reply With Quote
  (#5) Old
TorrentSearch Offline
Advanced User
TorrentSearch Reputation is 550TorrentSearch Reputation is 550TorrentSearch Reputation is 550TorrentSearch Reputation is 550TorrentSearch Reputation is 550TorrentSearch Reputation is 550
 
TorrentSearch's Avatar
 
Posts: 18
Join Date: Oct 2008
Location: here
Age: 23
Reputation Power: 0
October 12th, 2008, 06:21 AM

Is this what you're looking for?
http://coding.derkeiler.com/Archive/...4-06/0796.html
Or does it have to be Javascript?

Is this similar to what you want to do?
http://www.w3schools.com/html/tryit....=tryhtml_basic
   
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




vBulletin Skin developed by: vBStyles.com