I'm working on a mobile web-app using HTML5 and sencha touch. My next step is to add some native capability using phonegap. My app uses Ajax requests to retrieve data from a server component and i am not sure if ajax will work within phonegap packed apps? Should i use JSONP instead?
No need for JSONP. Since the html files are local files, there is no cross domain restriction.
Related
I am using AngularJs to submit a form to a Sharepoint WCF service.
What is the best way to upload file attachments using AJAX, supporting all browsers?
The solution is for AngularJs as frontend and NodeJs as backend. but you can also use it with .net and WCF as backend if you are using Angular for ajax request. please follow the link below
https://ciphertrick.com/2015/12/07/file-upload-with-angularjs-and-nodejs/
I am working in an application using Codeigniter 2.1.4 and I have a simple login form and I am not using any ajax to submit or load the form ('data-ajax' => 'false'). Also I am using jQuery Mobile 1.3.1 to give the site a mobile look as it will be accessed most from mobile devices.
The issue I am having is that in the PC or Mac the login form work and I can access the private section of the site, but if I try accessing the site from a mobile device (iPad and iPhone) I keep getting the error:
An Error Was Encountered
The action you have requested is not allowed
A lot of google search results suggest issues with the CSRF feature in CI 2.x with forms using ajax and even when disabling the CSRF feature in the config.php file the issue is not solved. I even tested the application without the jQuery Mobile library without luck.
Note: The odd thing is that I tested the app in Google Chrome for the iPhone and it work like a charm, but I tested it a Samsung Galaxy
III and it gave me the same error.
Any ideas what is going on?
OK Planing to Build small twitter App with Kendo UI . just wondering if that mean part of the app will be hosted in my server in order to get that work ?
I don't want host any part of the app at the server . i want this App to work directly Forward and backward from the app at user Device to twitter API
Please don't tell me it's just script will be hosted and the App that going to be created with Phonegap or whatever is just a Browser . Please don't tell me that
I am not sure I understand your question right but you can create a JavaScript only (no-server side code required) twitter client. You can embed all required JavaScript files and deploy them using PhoneGap.
Is there any other Server Driven Ajax Framework similar to Jquery Mobile ( which can fetch a complete page without refresh and update the ui ) for normal Ajax Web Application instead of Mobile Web Application ?
Thanks.
There's nothing at all stopping you using jQuery Mobile for a 'desktop' web application rather than a mobile web application. You may need to tweak the css slightly.
I'm designing a web service that serves up JSON through a REST API. This API is currently being used by an iPhone app to do CRUD operations.
My question is, can I design a web client that uses this REST API using nothing more than ExtJS (or some other RIA framework) and HTML pages? In other words, can I create a static HTML page that uses ExtJS to send AJAX calls to the REST API and receive JSON data from it? Or is this thinking too naive and wrong?
I think this is perfectly acceptable as long as you know that your users browser will be able to handle javascript and AJAX accordingly.
Yes! YES! You can use static html and js files, served by any web server, to build an Ext JS application. Ext JS is very happy to talk REST and JSON to your web service.
Build your Ext JS application outside of ASP.NET MVC. You don't need it.