- Screen name: vjkumar
vjkumar's Profile
10 Posts
9 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- I would like to use the filter function with select menu like the one shown in the list view sample.When I tried the code given below the search bar does not show.Is this th correct way or is there a different way to do this?Thanks.<select id="test1" data-native-menu="false" data-filter="true">
<option value="CA"> California</option> ;
<option value="Ny"> New York</option> ;
<option value="NC"> North Carolina</option> ;
<option value="WY">Wyoming</option> ;
<option value="TX">Texas</option> ;
</select>- I have radio buttons inside popup dialog.In code I had one of them selected.When the popup comes up first time the selected radio button is highlighted.When I close the popup and open it again the selected highlight is missing.When I again select any other button it shows highlighted, but when I close the popup and open it again the selection disappears again.
- When I use the slider the up down arrows in the counter box show in Safari and Chrome and do not show in Ipad, IE9 and Firefox.
arrows show in Safari and Chrome
Does not show in Ipad, IE 9 and Firefox
code<input type="range" name="slider" id="slider-0" value="25" min="0" max="100" />using<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.js"></script>- 19-Apr-2011 11:39 PM
- Forum: jQuery Mobile
I am using JQuery mobile in a Windows Phone 7 project. The internal link pages in my app would not work in the phone browser, but will work in any other browser.To debug the issue, I tested the 2 page example given in the local internal linked pages of JQuery Mobile doc.
Then in the second page I added the code from the form elements select menus example.
Then the internal page linking does not work.
When I remove the select menu code the internal linking works.
I need these Select menus for user set options.
Can some one please help?
Thanks.VijayI have given below the code.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
</head>
<body>
<body><!-- Start of first page -->
<div data-role="page" id="foo"><div data-role="header">
<h1>Foo</h1>
</div><!-- /header --><div data-role="content">
<p>I'm first in the source order so I'm shown as the page.</p>
<p>View internal page called <a href="#bar">bar</a></p>
</div><!-- /content --><div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /header -->
</div><!-- /page -->
<!-- Start of second page -->
<div data-role="page" id="bar"><div data-role="header">
<h1>Bar</h1>
</div><!-- /header --><div data-role="content">
<p>I'm first in the source order so I'm shown as the page.</p>
<p><a href="#foo">Back to foo</a></p>
<div data-role="fieldcontain">
<label for="select-choice-1" class="select">Choose shipping method:</label>
<select name="select-choice-1" id="select-choice-1">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>- I have 3 pages, home, settings and help .
I am using anchor tags and a javascript function to switch pages.
One example is given below to switch from home page to settings page.I have the following anchor tag in the header of home page<a onclick="load_settings()" data-icon="gear" data-inline="true" >Settings</a>and a corresponding functionfunction load_settings() {
$.mobile.changePage($("#settings"));
}
This works fine in IE9. It does not work in Windows Phone 7. The home page renders. When I click on the settings button I see the button being clicked but nothing happens.- I am using the select menu example given below.How do I get the selected item?Thanks.<div data-role="fieldcontain">
<label for="select-choice-1" class="select">Choose shipping method:</label>
<select name="select-choice-1" id="select-choice-1">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>- 30-Nov-2010 01:56 PM
- Forum: jQuery Mobile
The select menus gives the sample code given below which works fine.I would like to add another item dynamically to the list and then refresh it.for example:<option value="slow">one month</option>
Can some one please give me an example.I tried append and it did not work.Thanks.<div data-role="fieldcontain">
<label for="select-choice-1" class="select">Choose shipping method:</label>
<select name="select-choice-1" id="select-choice-1">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</div>- 15-Nov-2010 08:52 PM
- Forum: jQuery Mobile
Three questions:1I had a javascriptjQT.goTo('#home', 'flip');which worked with JQtouch.What is the equivalence in JQuery Mobile?2. Where can I find icons used in the JQuery Mobil?3.How do I get the source for the demos?Thanks.Vijay- 13-Nov-2010 02:39 PM
- Forum: jQuery Mobile
I am a newbie for JQuery Mobile.I tried adding link buttons and Collapsible content dynamically with javascript. They do not render formatted.What else should I be doing?I have given below the code snippets.Any example will be useful for me.Thanks.page markup<ul id= "data_list" data-role="listview" data-inset="true" data-theme="a" data-dividertheme="b">
</ul>javascriptvar buttonstart= "<li><a href="#About">";
var buttonend = "</li>"$(result.camp_list).each(function (index, item) {
var listitem = buttonstart + item.facilityName + buttonend;
$('#data_list').append(listitem);
});-------------------------------------------------page mark up
<div id = "Collapse_list"></div>javascript
var collapsestart = '<div data-role="collapsible" data-state="collapsed">';
collapsestart += '<h3>About this app</h3>';
collapsestart += '<p>'
var collapseend = '</p></div>';$(result.camp_list).each(function (index, item) {
var collapseitem = collapsestart + item.facilityName + collapseend;
$('#data_list').append(collapseitem);
});- I used Yahoo to get a Json result back.My query
jQuery.get(
'/Ethnic/JsonData', function (result)
{
$('#JsonList').empty();
$('#JsonList').append('<li>' + result + '</li>');
$.each(result, function (index, value) {
$('#JsonList').append('<li>' + value + '</li>');
});
}
); produces each character in the result list instead of getting me the data.Can some one help?I have given below the Yahoo result.Thanks.Vijay{
"ResultSet": {
"totalResultsAvailable": "690",
"totalResultsReturned": "2",
"firstResultPosition": "1",
"ResultSetMapUrl": "http://maps.yahoo.com/broadband/?q1=Fremont,+CA+94539&tt=pizza&tp=1",
"Result": [
{
"id": "21433124",
"Title": "New York Pizza",
"Address": "41300 Fremont Blvd",
"City": "Fremont",
"State": "CA",
"Phone": "(510) 770-0123",
"Latitude": "37.529462",
"Longitude": "-121.958455",
"Rating": {
"AverageRating": "5",
"TotalRatings": "8",
"TotalReviews": "7",
"LastReviewDate": "1263606235",
"LastReviewIntro": "A friend of mine had tasted a piece of the sausage pizza that was served at a local drinking establishment during happy hour and then commented to me days later of how good it was so I had to try it. The sausage with pesto sauce is the best damn pizza I've had in years. And while we're on the subject of New York Style pizza I had a piece in Time Square about three years ago and they have a New York Style pizza here in Fremont that tastes just as good. If you're tired of the same ole pizzas then GO GET A PIZZA FROM HERE, ITS REALLY DELICIOUS!"
},
"Distance": "1.97",
"Url": "http://local.yahoo.com/info-21433124-new-york-pizza-fremont",
"ClickUrl": "http://local.yahoo.com/info-21433124-new-york-pizza-fremont",
"MapUrl": "http://maps.yahoo.com/maps_result?q1=41300+Fremont+Blvd+Fremont+CA&gid1=21433124",
"Categories": {
"Category": [
{
"id": "96926234",
"content": "Carry Out & Take Out"
},
{
"id": "96926236",
"content": "Restaurants"
},
{
"id": "96926243",
"content": "Pizza"
}
]
}
},
{
"id": "21437400",
"Title": "Mission Pizza & Pub",
"Address": "1572 Washington Blvd",
"City": "Fremont",
"State": "CA",
"Phone": "(510) 651-6858",
"Latitude": "37.53118",
"Longitude": "-121.936675",
"Rating": {
"AverageRating": "4.5",
"TotalRatings": "10",
"TotalReviews": "10",
"LastReviewDate": "1264273290",
"LastReviewIntro": "I love it.. I also go ther for the Music on the weekends! Cowboy Bill is the best!"
},
"Distance": "1.26",
"Url": "http://local.yahoo.com/info-21437400-mission-pizza-pub-fremont",
"ClickUrl": "http://local.yahoo.com/info-21437400-mission-pizza-pub-fremont",
"MapUrl": "http://maps.yahoo.com/maps_result?q1=1572+Washington+Blvd+Fremont+CA&gid1=21437400",
"BusinessUrl": "http://missionpizza.com/",
"BusinessClickUrl": "http://missionpizza.com/",
"Categories": {
"Category": [
{
"id": "96926057",
"content": "All Bars, Pubs, & Clubs"
},
{
"id": "96926063",
"content": "Bars & Pubs"
},
{
"id": "96926190",
"content": "Italian Restaurants"
},
{
"id": "96926234",
"content": "Carry Out & Take Out"
},
{
"id": "96926236",
"content": "Restaurants"
},
{
"id": "96926242",
"content": "Fast Food"
},
{
"id": "96926243",
"content": "Pizza"
}
]
}
}
]
}
}- «Prev
- Next »
Moderate user : vjkumar
© 2013 jQuery Foundation
Sponsored by and others.

