- Screen name: black_mage
black_mage's Profile
4 Posts
7 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Does anyone ever get this when using JQuery Mobile or JQuery Mobile in an iframe?It appears to happen in this function and only happens in firefox:
function cssPointerEventsTest() {
var element = document.createElement( 'x' ),
documentElement = document.documentElement,
getComputedStyle = window.getComputedStyle,
supports;
if ( !( 'pointerEvents' in element.style ) ) {
return false;
}
element.style.pointerEvents = 'auto';
element.style.pointerEvents = 'x';
documentElement.appendChild( element );
//Problem is here
supports = getComputedStyle &&
getComputedStyle( element, '' ).pointerEvents === 'auto';
documentElement.removeChild( element );
return !!supports;
}
- I've posted this question here and before but seem to get no real reply. The problem entails creating ul list dynamically but constantly getting a JQuery undefined error. More info here:Can anyone help me with this problem or know a workaround?
So I'm creating this sample application using JQuery Mobile on Facebook. The problem I am running into is with the back button on chrome.
http://www.facebook.com/pages/ProdigyView/214942945205059?sk=app_397015110360498
Using firefox or safari, I can use the back button and go the 'page' I was previously on after clicking a link.
Using Chrome, when I click the back button, it
A) First Click doesn't go anywhere B) Second click takes you back to the page you were on, if you came from another site
Doing some research, this is very similar to this problem last year: http://blog.duc.as/2011/07/13/back-button-broken-for-url-hashes-in-ie-on-wp7-mango/
Anyone know what the problem is and a possible fix?
- 19-May-2012 09:08 PM
- Forum: jQuery Mobile
I'm working on creating a mobile application with JQuery Mobile and Mustache Templating. But I'm runninng into a problem creating ul list.
A really simple example is this.
var html = '';
html += '<ul data-role="listview" data-theme="g"><li><a href="acura.html">Acura</a></li><li><a href="audi.html">Audi</a></li><li><a href="bmw.html">BMW</a></li></ul>
$('#listpage #test_view').html(html).trigger('create');The problem I am running into time and time again is an error that looks like this:
Uncaught TypeError: Cannot read property 'jQuery171025502100912854075' of undefinedThis only happens when I try to dynamically create a page. Does anyone know why this is happening?
- «Prev
- Next »
Moderate user : black_mage
© 2012 jQuery Foundation
Sponsored by
and others.


