newbie27
asked on
javascript escape function
Hello Experts,
I am generating dynamic text areas on the page, capturing its data and assigning to the variable before being posted. The problem is for all the spaces in the data it is converting it to "%20" , al though I am using escape function but still not doing it right. Can someone please advice?
something like this
sItemdNotes += "," + escape($("#editedData"+cur rId).html( ));
sItemdNotes= test%20notes,hello%20how%2 0are%20you --> this is how it is doing it at the moment
Thanks
Sam
I am generating dynamic text areas on the page, capturing its data and assigning to the variable before being posted. The problem is for all the spaces in the data it is converting it to "%20" , al though I am using escape function but still not doing it right. Can someone please advice?
something like this
sItemdNotes += "," + escape($("#editedData"+cur
sItemdNotes= test%20notes,hello%20how%2
Thanks
Sam
The statement should be:
sItemdNotes= 'test%20notes,hello%20how%20are%20you'
Ah, I see. ssorry. I think vibrazy is right
ASKER
Hello Guys,
Thanks for your comments, apparently I dont think I can use val() as I am capturing the data from the html
It is not returning anything if I use val().
please can you visit my app here
http://213.253.134.6/artism/admin/list_admin.asp#testAll
if you notice in the grid, i have a notes link, upon clicking it you will get a dialog( jquery facebox plugin) to accept data and once you add text please click on the right close button to see the text getting appended to the html Id, it is doing it fine, but when you want to save this by selecting the row and giving a unique listname, click on save.
i am currently showing it as an alert ... please have a look.
Thanks for your comments, apparently I dont think I can use val() as I am capturing the data from the html
It is not returning anything if I use val().
please can you visit my app here
http://213.253.134.6/artism/admin/list_admin.asp#testAll
if you notice in the grid, i have a notes link, upon clicking it you will get a dialog( jquery facebox plugin) to accept data and once you add text please click on the right close button to see the text getting appended to the html Id, it is doing it fine, but when you want to save this by selecting the row and giving a unique listname, click on save.
i am currently showing it as an alert ... please have a look.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks, this has worked !
Im glad to help.
Regards,
Vibrazy
Regards,
Vibrazy
Try sItemdNotes += "," + escape($("#editedData"+cur
Regards,
Vibrazy