Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript as content input

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I start to get a bit confused about content input via javascript. I have read in a book an example, explanation on how you can add content with javascript using DOM and Objects. What is putted is in real plean content like a blog (date and text). My question is, when should you use this to put content in, when is it an advantage, isn't it better to use a database for content (like MySQL) ?
 
If I understand you correctly, the difference is that any modifications made to the page by JS won't be persisted, so if you refresh the page after adding content using DOM methods, they will be lost.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Its a good answer to my question. I was thinking a bit in that way, but you confirmed it. Tx. Has someone an example when that it usefull. Which info putted it by the user should not remain fixed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top