We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,453 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

accessing script variable for html file

so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a week and storing the values of the variable and would like to just grab those values and not have to create the html page dynamically every time. Any help is greatly appriciated also not sure if this should go here or under web design(sorry if i posted in wrong group).

3
Contributors
3
Replies
19 Hours
Discussion Span
5 Months Ago
Last Updated
4
Views
don.davis.773
Newbie Poster
3 posts since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Sounds like a job for embedded AJAX, which would read the file with your variables in it, then populate DIV containers on a relatively static HTML page. You wouldn't have to create the entire page each time, and could even have a 'loading' message or something else there until the content is finished loading from your variables. I used something similar for my Pinball Locator some time ago.
I'd say this question is more programming-related than web design, although good skills in the latter would definitely be required to pull this one off.

LaughingOtter
Newbie Poster
14 posts since Sep 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

Ok so Ajax is pretty much the only way to do this then? I read somewhere if u use Ajax to populate a page it disables bookmarks and the back button is this also trueOk so Ajax is pretty much the only way to do this then? I read somewhere if u use Ajax to populate a page it disables bookmarks and the back button is this also true

don.davis.773
Newbie Poster
3 posts since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

If you don't want to generate the page dynamically, you can generate it once a week and store an html file when you run your script. You could use a template engine like Mako for variable substitution in the html file. It is very easy to do.

Gribouillis
Posting Maven
Moderator
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0622 seconds using 2.65MB