Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1 view
Skip to first unread message

Rahul Mehta

unread,
Jul 31, 2010, 3:18:05 AM7/31/10
to
{username:'rahul',password:'123'}

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

please help ASAP

thanks

rahul

Denis McMahon

unread,
Jul 31, 2010, 1:40:26 PM7/31/10
to
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

0 new messages