Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
JavaScript Permanant Change?
Old 07-07-2009, 11:22 AM JavaScript Permanant Change?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Hello,

I'm trying to make a textarea of user's comments, in which they write what they have to say, then click submit, and it permanently changes the page's HTML, within the textarea to what they put in. Is there a way to do this?

For example, there's a blank textarea. Somebody types something into that textarea, and hits Submit, now the page updates, changing the textarea's value to what they put in, visible to all. It literally changes the page's HTML, permaneltly, but in a given element.

It's kind of like a controlled hack, but it's the only way I know of to get a commenting system in with JavaScript.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-07-2009, 11:50 AM Re: JavaScript Permanant Change?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Javascript is purely a client side operation, so cannot "change" the page for anyone other than the user/viewer where the page is being displayed.
So without some server side code and a database to collect and store the comments it can't be done simply.
The option without server side code would be to utilise a third party server/database to receive and store the comments and collect and display them using "AJAX" methods or forms in iframes
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to JavaScript Permanant Change?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16542 seconds with 12 queries