![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using EJB3 with Ajax | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| Getting Rich with Ajax | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| Validating Forms with Ajax | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| "Hello Ajax"! How to Do the Ajax Thing with Oracle JDeveloper | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 03:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sending Post Parameters With Ajax
Hi!!!
I'm having a little problem with a web application I'm developing. I need to send a query to a php script using post method of Ajax. I created the variable where the query is stored and it looks like this: consulta= barrio="Monserrat" or barrio="Palermo"&buscar=1; this is in a variable called params... The problem is that the php script never receibes de "consulta" variable, actually it receives it but it's empty... I'm totally sure that the problem is that i need to scape same characters but i don't know how to do it... can someone help me???? Thanks!!!! |
|
||||
|
It's simple. Just call encodeURIComponent() function to escape individual values from Javascript before getting to XmlHttpRequest (or whatever wrapper you may be using).
This is the documentation: https://developer.mozilla.org/en/Cor...deURIComponent |
| Bits Awarded / Charged to cbkihong for this Post | |||
| Date | User | Comment | Amount |
| 06-14-2009 | Neo | Excellent. | 50,000 |
|
||||
|
oh! thanks!! it works great!!
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|