Page 1 of 1

Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Mon Nov 25, 2013 10:23 pm
by Matthew6437604

I cant find out how I would code that so it only clears the app not the database.


Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Tue Nov 26, 2013 12:10 am
by maxkatz

One option is to select the content in the DOM and reset those elements.


Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Tue Nov 26, 2013 8:45 pm
by Matthew6437604

I cant find DOM is it in the button settings?


Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Tue Nov 26, 2013 8:48 pm
by maxkatz

DOM stands for Document Object Model. To simplify, that's where the browser keeps the HTML page. You can traverse the browser DOM and make changes to any elements, including clearing the values.

http://en.wikipedia.org/wiki/Document...

I'd recommend to read how jQuery works and how to work with selects.


Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Tue Nov 26, 2013 9:05 pm
by Matthew6437604

Where can you traverse the DOM to edit it?


Hi I made a chat app and I want to make a clear message button to clear the screen of messages but not clear the databas

Posted: Tue Nov 26, 2013 9:56 pm
by Maryna Brodina

Hello! Please take a look here http://docs.appery.io/documentation/d...