Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    148
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I m try to use AJAX and PHP in my system

    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

  • #2
    New Coder
    Join Date
    Jul 2005
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    If you can not find a decision, maybe you have to try to change a problem

    http://www.gunman.co.nr
    http://bglinux.org

  • #3
    New Coder
    Join Date
    Nov 2006
    Location
    UK
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try using xajax as that is a free xajax library.
    - Mark

  • #4
    Regular Coder
    Join Date
    Nov 2005
    Posts
    148
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by gunman View Post
    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.
    Last edited by CstAn; 01-26-2007 at 05:25 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •