From: Rahul Mehta on 31 Jul 2010 03:18 {username:'rahul',password:'123'} on alert it gives object , how can i validate this type of object ... please help ASAP thanks rahul
From: Denis McMahon on 31 Jul 2010 13:40 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
|
Pages: 1 Prev: 100% free dell laptaps offerd by dell and Vodafone companies. Next: Minus sign vs. hyphen |