Getting Syntax error when pass date and time in javascript due to colon(:) and space( ) -


i getting syntax error in javascript while pass date , time parameter due colon(:) , space( )
ex :

onclick=popup(02/06/2015,07**:**12:00,53970,scn,chb,jpr,02/06/2015 **strong text**07**:**12:00,20); 

onclick = popup('02/06/2015','07:12:00',53970,'scn','chb','jpr','02/06/2015 07:12:00',20); 

pass them strings.

and since using these url parameters, please encode them using encodeuricomponent

urlparam = encodeuricomponent(urlparam); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -