Why i posted this thread here is not for understanding php/mysql/javascript operations. Let me reframe my question to give you more clarity about the issue.
In wikitude AR world i am creating a button using a image resource and the ImageDrawable method. And then i making it clickable. Within the onclick event i am trying to
connect to a php server and do certain operation on mysql database. For that purpose i am using following jquery methods $.ajax,$.post,$.get. But this piece of code doesn't work here.
Most important point is that to make sure that code inside button click event is correct i have seperately created a webpage and there i am trying to do the same operation and it works very well.
I am not sure why these jquery methods are not getting triggered within the javascript file. I am attaching the javascript file and the php file for you to give me a feedback. Please have a look.
A
Andreas Fötschl
said
about 8 years ago
Hi again!
Please check the following:
* did you include the required jQuery files in your index.html * did you configue your endpoint in a way that it allows Access-Control-Allow-Origin ? * Debug the webView to highlight potential JS (syntax) errors - Android Guide, iOS Guide
Best regards
P
Patrick Patrick
said
about 5 years ago
hello Manish Kaushik
can you provide me an example of using My SQL database ?
Manish Kaushik