Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


problem getting inline form element value...



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
indi.anupam



Joined: 29 Jun 2008
Posts: 1

PostPosted: Sun Jun 29, 2008 7:29 pm    Post subject: problem getting inline form element value... Reply with quote

hello all,
I am trying to implement an inline form embedded in a user profile which enables user to update value when user clicks on any element / attribute on it..

you can see the sample profile page here
http://www.themodelshopusa.com/test/test.php

im using very simple concept using innerHTML to replace the text element to a form element. here is the code which do this

<head>
<script language=javascript>
function edit_prop(d)
{
document.getElementById(d).innerHTML = "<input type=text name=\"edit_prop\">";
}
</script>
</head>

<body>
<table>
<tr>
<td><div id="one" onclick="edit_prop('one')">click here</div></td>
</tr>
</table>
</body>


My problem is how do I get the updated data from the edit_prop input element Question

Please help me out as I already have tried / read a lot but no luck Sad

much appreciated..

--Anu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap