1,105,310 Community Members

accessing script variable for html file

Member Avatar
don.davis.773
Newbie Poster
3 posts since Aug 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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).

Member Avatar
LaughingOtter
Newbie Poster
14 posts since Sep 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
don.davis.773
Newbie Poster
3 posts since Aug 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
Gribouillis
Posting Maven
3,453 posts since Jul 2008
Reputation Points: 1,140 [?]
Q&As Helped to Solve: 883 [?]
Skill Endorsements: 18 [?]
Moderator
 
1
 

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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: