jquery-mobile

Open External Page in Popup in jQuery Mobile

橙三吉。 提交于 2019-12-12 10:43:30
问题 I'm using jQuery Mobile. Actually i want open an externl link in a popup. I tried this. <a href="#" id="dialoglink" data-rel="dialog">Open Dialog</a> <script> $(document).delegate('#dialoglink', 'click', function() { $(this).simpledialog({ 'mode' : 'blank', 'prompt': false, 'forceInput': false, 'useModal':true, 'fullHTML' : 'http://www.google.com/' }) }); </script> It is opening a popup the content is the text http://www.google.com/. But i actually want to load the url. i.e google index page.

How to remove elements from listview JQUERY mobile

那年仲夏 提交于 2019-12-12 10:43:25
问题 There is a list view and this is loaded dynamically upon loading the page. This adds elements inside list view. The problem is i have placed backbutton.After going to previous screen and returning back to current screen it is loading the data and appending to the List View. I need to remove the <li> elements from the list view. The HTML code snippet. <ul id="mymenu" data-role="listview" > </ul> Jquery Code Snippet. $("#mypmenu").append('<li><a href='+ "#" + ' id="a" "> <img src="letterheader

How to store data in sqlite database using jQuery-mobile dreamviewer cc with phonegap in android?

北城余情 提交于 2019-12-12 10:39:23
问题 Am new in developing android app in Dreamweaver CC with Phone-gap. I designed simple form in that having 4 fields I need to store this fields in sqlite database? In eclipse import sqlite database and open database connection and then create table and store data. This is working fine, I need to do same here in Dreamweaver CC? import android.database.sqlite.SQLiteDatabase; SQLiteDatabase db; db = this.openOrCreateDatabase("QAOD", MODE_PRIVATE, null); db.execSQL("INSERT INTO TableName(Id) VALUES

jquery mobile databox plugin how to set the time

别等时光非礼了梦想. 提交于 2019-12-12 10:28:30
问题 I am using the following to set the date of the datebox plugin <input data-id="ti_datebox" type="date" data-role="datebox" data-options='{"useInline":true, "noSetButton":true}'> $ti_datebox.trigger('datebox', {'method':'set', 'value': theDateStr, 'date':theDate}) However, I can't set the time with the same code. <input data-id="ti_datebox" type="date" data-role="datebox" data-options='{"useInline":true, "noSetButton":true, "mode": "timebox"}'> $ti_datebox.trigger('datebox', {'method':'set',

Backbone + JQuery Mobile + RequireJS

删除回忆录丶 提交于 2019-12-12 10:28:16
问题 I am having a big proglem with RequireJS. This configuration works randomly. I dont know why, once it works and once it doesn't: requirejs.config({ baseUrl: 'js', urlArgs: "bust=" + (new Date()).getTime(), paths: { jquery: 'libs/jquery/jquery-1.10.2.min', underscore: 'libs/underscore/underscore-min', backbone: 'libs/backbone/backbone-min', marionette: 'libs/marionette/backbone.marionette', cordova: 'libs/cordova/cordova-1.9.0', jquerym: 'libs/jquery-mobile/jquery.mobile-1.4.0' }, shim: {

How to create folder in directory in iphone and android

断了今生、忘了曾经 提交于 2019-12-12 10:23:41
问题 can you please tell me how to create folder in directory in android (SDCard) and in IOS.?I also need to count number of folder in same directory. I have directory File://SDCard/test . here one by one create folder .During application launch i need to count number of folder in dame directory . What is directory of IPhone ? 回答1: Take a look at the Cordova File API which is based on the W3C File API. It is used to read, write and navigate file system hierarchies. List Files and Folders In order

jQuery mobile: Dynamically updating collapsible heading causes loss of styling

天涯浪子 提交于 2019-12-12 10:02:27
问题 After dynamically updating a header tags text for an existing collapsible element, the styling disappears, even though im calling .collapsible({refresh: true}) after updating. jsFiddle: http://jsfiddle.net/RAxn5/ (click the 'Break it' link to see what i mean). HTML: <div id="set" data-role="collapsible-set"> <div data-role="collapsible" id="set1" data-collapsed="false"> <h2 class="section_title">Section 1</h2> <ul data-role="listview"> <li><a href="#"><h3>item 1</h3></a></li> <li><a href="#">

jQuery mobile: problem with submitting forms due to page transitions

烂漫一生 提交于 2019-12-12 09:57:53
问题 I'm a bit confused with something i am trying to do in jquery mobile. I have about 5 pages total in my site and every page has the same webform on it. I've written a script that processes the form using jquery ajax. All of that works on the index.html. I have a page2 div in my index.html that serves as a second page of my website, however the form doesnt appear to work. I also have a page3.html page. When i go to this page, it has the same form that i had from my homepage, but it doesn't take

Downloadable files using jQuery mobile

百般思念 提交于 2019-12-12 09:41:04
问题 I'm fairly new to jquery mobile, and am getting an error when trying to link a file in my jquery mobile project for download. I would like a user to be able to download a .zip file from the app, but get either a page loading error, or undefined displayed in a new page. I tried using an anchor tag to link the file to download, but it doesn't seem to work right. I know jquery mobile makes use of the anchor tag, so I don't know if there is something special that needs to be done. Any help? 回答1:

jquery mobile pageContainer issues

怎甘沉沦 提交于 2019-12-12 09:37:10
问题 If I am reading correctly the documentation on: http://jquerymobile.com/demos/1.1.0/docs/api/methods.html Using pageContainer and role should replace the contents of one page into my current page, for example as if it was a template where the header and footer are kept but only the contents are changed. I am trying to do a simple example to understand how this works but I am having a hell of a time. Here's my super simple example. <!DOCTYPE html> <html> <head> <title></title> <link rel=