Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to validate {username:'rahul',password:'123'}

Thread Tools

how to validate {username:'rahul',password:'123'}

Rahul Mehta
Posts: n/a

on alert it gives object ,
how can i validate this type of object ...

please help ASAP


Reply With Quote
Denis McMahon
Posts: n/a
On 31/07/10 08:18, Rahul Mehta wrote:
> {username:'rahul',password:'123'}
> on alert it gives object ,
> how can i validate this type of object ...

so you are doing what?

<script type='text/javascript'>
ob = eval({username:'rahul',password:'123'});
alert (ob.username + "\n" + ob.password);

Works for me!


Denis McMahon
Reply With Quote

Thread Tools

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Newbie, unable to validate with genuine windows XP Pro? =?Utf-8?B?SWdvciBRdWFzaW1vZG8=?= Microsoft Certification 0 11-05-2005 08:17 PM
Validate SessionID Shankar Reddy ASP .Net 3 09-25-2004 05:59 AM
can i validate the presence of .Net framework in the OS a_srivathsan ASP .Net 2 09-08-2004 03:56 AM
Re: How could I validate a MCSE certificate? Dandy WEYN MCSE 0 07-02-2003 11:35 AM