Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
yann.malet
yann.malet's Profile
2
Posts
4
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Best practices for populating a list with Ajax
[3Replies]
07-Nov-2010 01:31 PM
Forum:
jQuery Mobile
I used an Ajax request to populate a list dynamically. This action is triggered on the "pageshow " of the appropriate page.
var populateList = function (url, selector) {
...
var $elem = $(selector)
$elem.after('<li id="loading">loading</li>')
$.ajax({
type: "GET",
url:url,
data:{
lat: lat,
lng: lng,
timestamp: timestamp
},
success:function (data) {
console.log('loading...');
$(data).find('Placemark').each(function () {
var $placemark = $(this);
$('#loading').before(placemarkBuilder($placemark)); // This function output the appropriate output.
//console.log(placemarkBuilder($placemark));
});
$('#loading').remove();
},
datatype:'xml'
});
$('#page_id').live('pageshow',function(event, ui){
populateList(articles_kml_url, '#wikipedia');
})
The problem is that the content of the page is add after the style is applied. What is the appropriate event that I should use to trigger this action.
Is it possible to "force" jquerymobile to re-apply the style "on demand" ?
Regards,
--yml
toggle a switch via JS
[2Replies]
06-Nov-2010 07:16 AM
Forum:
jQuery Mobile
I am looking for the right incantation to toggle between 'on' and 'off' using JS. I want to be able to set this widget based on some information stored in the "localStorage".
http://jquerymobile.com/demos/1.0a1/docs/forms/forms-switch.html
I have tried all kind of variation around :
$('#slider2').val('on')
But none of them made the switch move.
Thanks
--yml
«Prev
Next »
Moderate user : yann.malet
Forum