ratchet-2

How do I trigger Ratchet's push manually?

放肆的年华 提交于 2020-01-16 21:57:14
问题 I have a link which makes a search. So far, it's working. The issue is when I want the search to be done through hiting the 'enter' button. So: $('#searchedText').on('keypress', function(e) { console.log("writed"); if ($(this).val().trim().length > 2) { if (e.which == 13) { console.log("Passed condition"); app.search = $('#searchedText').val(); // HERE'S WHERE I NEED TO TRIGGER RATCHET's PUSH } } }); I tried to change window.location - Doesn't work I tried to trigger tap & click event - Doesn

How do I trigger Ratchet's push manually?

感情迁移 提交于 2020-01-16 21:56:09
问题 I have a link which makes a search. So far, it's working. The issue is when I want the search to be done through hiting the 'enter' button. So: $('#searchedText').on('keypress', function(e) { console.log("writed"); if ($(this).val().trim().length > 2) { if (e.which == 13) { console.log("Passed condition"); app.search = $('#searchedText').val(); // HERE'S WHERE I NEED TO TRIGGER RATCHET's PUSH } } }); I tried to change window.location - Doesn't work I tried to trigger tap & click event - Doesn

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

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

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