Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing html in Ajax

 
Nimish Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Ajax.I get responsetext in ajax in this format.
-----------------------------------------------------------
<html>
<form>

<input type="text" name="person" value="nimish" />

</html>
</form>
------------------------------------------------------------
now I want to get "nimish" in this html.
How can I parse this html?

Thanks,

Patel
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to do string manipulation to get it. Can I ask why can't you jjust have the server return just that value to the page in the first place.

Eric
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an option, you can write that into hidden iframe and use javascript to get a value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic