Software Archive
Read-only legacy content
17061 Discussions

Code working in Chrome but not in XDK

Zack_S_
Beginner
504 Views

Good day!
I am trying to use this example (attatched) and got everything working fine up to a point. Using Intel XDK and Windows Server 2008 R2 with the .aspx server side code (attached) and got it working perfectly in the Chrome window of the Intel XDK. However, using the emulator or deploying to an actual Android device, does not work. Exactly the same code that works in Chrome does nothing on the device or emulator. No error message or anything.

As mentioned, I am including both the html5 code that performs all the camera functions correctly in Chrome, but not in Intel XDK emulator or actual device deployment.

Important to note is that it is the actual file upload to the server that does not work. The normal camera functions and file selecting does work both in Chrome and the emulator.

Any ideas or more info I can provide?
Thanks in advance

0 Kudos
1 Reply
Elroy_A_Intel
Employee
504 Views

I recommend using jQuery ajax() API as a means to communicate data between the client and server.

For more information, visit http://api.jquery.com/jquery.ajax/ and http://api.jquery.com/category/ajax/.

0 Kudos
Reply