• May 03, 2024, 10:31:23 am

Author Topic: Ajax Post method is not working in Symbian web apps  (Read 1909 times)

0 Members and 1 Guest are viewing this topic.

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Ajax Post method is not working in Symbian web apps
« on: June 04, 2013, 05:31:41 pm »
Hi everyone,
I am trying to consume php web services using post method to pass the parameters but i am getting error "Network error :404 not found".When i checked by consuming the same web service in other mobile applications, its work fine.
This the code which i have used in the symbian web application:
$.ajax({
                url: "http://test/test1/",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                type: "POST",
                data: '{"useremail":' + email + ',' + "password:" + password + '}',               
                success: function (response) {
                    //do whatever your thingy..
                    alert("Sucess");
                }
            });
Note : I am not using any native code for this app development. I am using html and java-script only  for this apps.
Please any one can help me out or provide me any ref link to resolve this issue.

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: Ajax Post method is not working in Symbian web apps
« Reply #1 on: June 05, 2013, 04:31:49 am »
Daft question, but do you have network access allowed in the plist ?