push.js

Push doesn't work (Error: Could not get)

我与影子孤独终老i 提交于 2019-12-23 05:38:16
问题 Trying to use Ratchet's push.js, but doesn't work. What I have in console: [Error] Error: Could not get: file:///var/mobile/Applications/337585D8-89E1-4810-AB37-0A6DD2DA3A34/Gustav.app/www/booking.html failure (ratchet.js, line 446) onreadystatechange (ratchet.js, line 371) If you will tap link like ten times you start to receive this: [Error] TypeError: 'undefined' is not an object (evaluating 'cacheMapping[PUSH.id].url') cachePush (ratchet.js, line 202) PUSH (ratchet.js, line 392) touchend

Knockout JS plays nicely with Ratchet and push.js until I add a data-transition

孤人 提交于 2019-12-21 20:10:08
问题 I am using the Ratchet.js/push.js library to create the UI for a mobile web app. In this library, links are handled by "pushing" the to-be-loaded file into the ".content" DOM element rather than loading the entire page. However, push.js does not load any scripts it finds when loading a page - which disables my Knockout.js code. I found a solution here on StackOverflow that works pretty well - just add an event listener for the push event. I modified it so that it can load any script across

how to enable push.js ajax content loader with ratchet

亡梦爱人 提交于 2019-12-09 09:23:30
问题 i am trying to implement the push.js engine from ratchet: http://maker.github.com/ratchet/#push i downloaded the ratchet files from here: http://maker.github.com/ratchet/ratchet.zip and am using apache to serve all js, css and html. all files are in the same directory. here is my one.html file: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ratchet template page</title> <!-- Sets initial viewport load and disables zooming --> <meta name="viewport" content="initial-scale=1,

Execute custom script after page loaded with Ratchet\Push.js

痴心易碎 提交于 2019-12-07 01:55:16
问题 So on the GitHub documentation for Ratchet 2.0.2 I found the following statement. Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution. Can someone please spell out exactly how to get a custom <script> to execute after being loaded by Push.js ? On my first page, I have a Table view, with several links to other pages, one of them

Execute custom script after page loaded with Ratchet\\Push.js

杀马特。学长 韩版系。学妹 提交于 2019-12-05 05:00:48
So on the GitHub documentation for Ratchet 2.0.2 I found the following statement. Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution. Can someone please spell out exactly how to get a custom <script> to execute after being loaded by Push.js ? On my first page, I have a Table view, with several links to other pages, one of them being a link to a second page with a Twitter Feed widget on it. <li class="table-view-cell media"> <a

how to enable push.js ajax content loader with ratchet

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 12:15:06
i am trying to implement the push.js engine from ratchet: http://maker.github.com/ratchet/#push i downloaded the ratchet files from here: http://maker.github.com/ratchet/ratchet.zip and am using apache to serve all js, css and html. all files are in the same directory. here is my one.html file: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ratchet template page</title> <!-- Sets initial viewport load and disables zooming --> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <!-- Include the compiled Ratchet CSS --> <link rel="stylesheet" href=

Executing several JS files with Ratchet push.js library

╄→尐↘猪︶ㄣ 提交于 2019-11-28 10:26:30
I´m developing a Phonegap app with Ratchet 2.0.2 using push.js for transition between pages. Everything is working smoothly but a couple of hours ago I stumble upon this: Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution. After doing more research I found out this: Execute custom script after page loaded with Ratchet\Push.js Which is almost the same problem I have, however I need to go further because I need to load not only one

Executing several JS files with Ratchet push.js library

强颜欢笑 提交于 2019-11-27 03:39:24
问题 I´m developing a Phonegap app with Ratchet 2.0.2 using push.js for transition between pages. Everything is working smoothly but a couple of hours ago I stumble upon this: Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution. After doing more research I found out this: Execute custom script after page loaded with Ratchet\Push.js