Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

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

 
 
Rahul Mehta
Guest
Posts: n/a
 
      07-31-2010
{username:'rahul',password:'123'}

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

please help ASAP

thanks

rahul
 
Reply With Quote
 
 
 
 
Denis McMahon
Guest
Posts: n/a
 
      07-31-2010
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);
</script>

Works for me!

Rgds

Denis McMahon
 
Reply With Quote
 
 
 
Reply

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



Advertisments