List Info

Thread: Dynamic Data Input/Editing




Dynamic Data Input/Editing
user name
2006-02-21 00:41:57
Alright my appication has fields on a user page that are
editable and
display in a DIV tag. My goal is to allow the user to edit
each of them
individualy.

Describing the situation as best i can, I have a page with a
DIV layer
box. In it is text that is pulled from a database that the
user has
entered previously.

Now, next to the box i want to have an edit button that when
clicked
will turn the text that is displayed on the page in an
editable text
box without reloading the page.

I have seen this on forums where a user can post a mesage to
the board,
and then their post will be seen with an EDIT button which
when
clicked, will turn the post into editable text where the
user can edit
it and fix it.

Am I making sense to anyone and anyone know where I can find
documentation on this or what to even search for on google?


Thanks
Bryan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Dynamic Data Input/Editing
user name
2006-02-21 11:18:53
I know what you're talking about. It's a mix of css and
dom
manipulation using javascript.
I've used this technique before to display a hidden div of
form fields
when a user clicked on a radio button.
I can't remember where i got my info but this is similar.
http://www.net
lobo.com/div_hiding.html


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Dynamic Data Input/Editing
user name
2006-02-21 12:05:41
sorry my bad English, but...

for example...

<div id="unic_Id";> text text text text text text text text text text </div&gt;

<input type=";button&quot; value=&quot;Edit"; onclick=&quot;document.getElementById('unic_Id').innerHTML='<form name=\'formName\' action=\'file.php\'&gt;<textarea>'+getElementById('unic_Id').innerHTML+'</textarea><;br/><;input type=\'submit\' value=\'Ok\'></form>';this.style.display='none'">;




On 2/21/06, samudasu <hotmail.com">samudasuhotmail.com> wrote:

I know what you're talking about. It's a mix of css and dom
manipulation using javascript.
I've used this technique before to display a hidden div of form fields
when a user clicked on a radio button.
I can't remember where i got my info but this is similar.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Dynamic Data Input/Editing
user name
2006-02-21 19:03:42
Thanks for the response. It almost does what I need it to
however the
edit button doesnt show the form if you paste your code into
a html
file and run it. I am not a javascript whiz but i think its
something
simple.

Any idea what it is that prevents the form from showing?

Thanks again


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Dynamic Data Input/Editing
user name
2006-02-21 19:26:34
send me the file, i dont understand right because my bad English....
but paste it, and i help u

On 2/21/06, Boxxa <gmail.com">bryan.benwaygmail.com> wrote:

Thanks for the response. It almost does what I need it to however the
edit button doesnt show the form if you paste your code into a html
file and run it. I am not a javascript whiz but i think its something




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Dynamic Data Input/Editing
user name
2006-02-21 20:41:11
I am using your code example and just putting it into a html
file.



Your code:

<div id="unic_Id"> text text text text
text text text text text text
</div>


<input type="button" value="Edit"
onclick="document.getElementById('unic_Id').innerHTM
L='<form
name=\'formName\'
action=\'file.php\'><textarea>'+getElementById
('unic_Id').innerHTML+'</text­area><br/><i
nput

type=\'submit\'
value=\'Ok\'></form>';this.style.display='non
e'">


When I click that button, it does not open up the form.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )