Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions on IOS6 #265

Open
truittjl opened this issue Feb 18, 2013 · 5 comments
Open

actions on IOS6 #265

truittjl opened this issue Feb 18, 2013 · 5 comments

Comments

@truittjl
Copy link

Just leaving a note about an issue I am dealing with. It appears there is a bug in IOS6 where it caches absolutely everything. This is forcing me to rewrite a lot of code adding a timestamp as a phantom parameter to every call. I had to made a change to the ajax call in this code base as well. See change for delete call below.....

    _deleteRecordFromServer: function ($row, success, error, url) {
        var self = this;

        //Check if it is already being deleted right now
        if ($row.data('deleting') == true) {
            return;
        }

        $row.data('deleting', true);

        var postData = {};
        postData[self._keyField] = $row.data('record')[self._keyField];

        // Update For IO6 BUG
        var timestamp = new Date();
        postData["T"] = timestamp.getTime();
@LamboJay
Copy link

Instead of adding a phantom timestamp, try adding the following line in your document.ready function or before your $('#tableContainer').jtable() call.

$.ajaxSetup({ cache: false });

@truittjl
Copy link
Author

I tried that first. Along with a dozen other things.

Try a simple web page that return a timestamp. Call it consecutively from your desktop then from an IOS6 phone / device. My test used ajax calls with IIS7 cache disabled, meta tags disabling cache, and ajax cache disabled (as you suggest).

Another source….

http://www.isurinder.com/blog/post/2012/09/24/iOS-Safari-Browser-Has-A-Massive-Caching-Issue!.aspx#.USBY-Credyw

From: LamboJay [mailto:notifications@github.com]
Sent: Tuesday, February 19, 2013 6:32 AM
To: hikalkan/jtable
Cc: truittjl
Subject: Re: [jtable] actions on IOS6 (#265)

Instead of adding a phantom timestamp, try adding the following line in your document.ready function or before your $('#tableContainer').jtable() call.

$.ajaxSetup({ cache: false });


Reply to this email directly or view it on GitHub #265 (comment) .

https://github.com/notifications/beacon/qwgGyPoAMTprMHwAqUDGjuX1fTHdrZzuXrXTSqTEoWK6VoktmRiXs-HIf08TEeQz.gif

@LamboJay
Copy link

Interesting read, Thanks for the link.

@hikalkan
Copy link
Member

It's very interesting. In next versions, I'll add a feature to jTable that allows to dynamically create action URLs. Thus, you will be able to add timestamp easily. That's what I can say for now.

@truittjl
Copy link
Author

Sounds good.

From: hikalkan [mailto:notifications@github.com]
Sent: Wednesday, February 20, 2013 12:51 PM
To: hikalkan/jtable
Cc: truittjl
Subject: Re: [jtable] actions on IOS6 (#265)

It's very interesting. In next versions, I'll add a feature to jTable that allows to dynamically create action URLs. Thus, you will be able to add timestamp easily. That's what I can say for now.


Reply to this email directly or view it on GitHub #265 (comment) .

https://github.com/notifications/beacon/qwgGyPoAMTprMHwAqUDGjuX1fTHdrZzuXrXTSqTEoWK6VoktmRiXs-HIf08TEeQz.gif

hikalkan added a commit that referenced this issue Mar 10, 2013
jQueryUI theme support with jqueryuiTheme option. [#135]
New field option: inputTitle. [#265]
Fixed some issues. [#134, #270, #371]
Updated some localization files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants