...

View Full Version : I m try to use AJAX and PHP in my system



CstAn
01-24-2007, 05:02 PM
Hi,

Currently i was try to use AJAX in my system. But problem was face were how to error free communicate with javascript and php.

firstly,
I using encodeURI()/encodeURIComponent() before i sent the httpRequest to server.
For other not apply with AJAX(cause there was two much data and some process required), i using urlencode to encode the data and save in database.

using javascript function to encode it, i can display well in interface(still not faced any problem); but the data encode with PHP function i had fec some problem for display the content.

can any one guide me a way, so that i will not face this kinds of problem..

isnt had a function for each language that able to communicate without any error??

can you tell me how you solve this problem?? what method u use it???

what i can think now was:
using str_replace to replace all the char will cause error..but...it was too hard to do it.

thanks

gunman
01-25-2007, 08:28 AM
I didn't understand very well your problem, but if you are facing some problems with url when you send it with httpRequest, i could offer you to make some mapping to that urls and save them to db after you send them you could read and navigate to correct place your application. Good luck

Linark
01-25-2007, 08:43 PM
Try using xajax as that is a free xajax library.

CstAn
01-26-2007, 06:23 AM
I didn't understand very well your problem, but if you are facing some problems with url when you send it with httpRequest, i could offer you to make some mapping to that urls and save them to db after you send them you could read and navigate to correct place your application. Good luck

sorry for my language.

my problem was when i encode using javascript how can i decode by using PHP or nice versa??

cause i my use AJAX in my system, before i sent the http request, i encode using javascript after that pass to server then i decode using PHP for listing.

thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum