Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Programming > PHP - Code
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2nd July 2009, 19:51
D4PHP User
 
Join Date: May 2009
Posts: 15
Lizeth is on a distinguished road
Unhappy How to clean a memo

Hi again, I have a form, with some edits, labels and a memo. Also I have 2 buttons, one that make the Register, and the other that Cleans.

If I fill in all the edits and the memo, and I press the button Clean, well it cleans fine, I have this lines:

var Dom = findObj("mmoDom");
Dom.value = '';

The problem is that the button Register, also have an event JSClick that evaluate if a data is not fill. When this event is executed, the memo that is supposed to be clear, automatically fills in with the lines that supposedly I’ve clean. I think the POST save the internally the value of the memo, but I need to completely clean the memo. How do I do that?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 3rd July 2009, 04:13
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,216
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

findObj('Memo1_hidden').value='';

Just about every edit type control has a hidden field that is used to store the info for the vcl to gather back at the server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 3rd July 2009, 21:54
D4PHP User
 
Join Date: May 2009
Posts: 15
Lizeth is on a distinguished road
Default hi it doesn't work

Hi thanks.

I put the line as you told me but it marked an error in the page.

It is correct that every edit type control has a hidden field, the problem is that the memo is a TextArea type, and I don't know how it works.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 3rd July 2009, 22:01
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,216
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

That was just an example, you need to name it what your name is.
findObj("mmoDom_outer")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 4th July 2009, 01:59
D4PHP User
 
Join Date: May 2009
Posts: 15
Lizeth is on a distinguished road
Default ooo

Ok know I understand it, thanks I will try that

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:38.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use