I would like to onload add an eventlistener that do action on the class and do get the id for that element, doing an action.
$(".clickimage").click(function(){ var idName = $(this).attr("id"); //Call a function to do something with the name of the ID.... aFunction(idName) });
Labbing around with jQuery mobile now for 2 weeks beside my extra deliveries for my clients, and wow, impressed but still some things unclear.
I had issues in the beginning with the ajax loader, just not stable I think for now. But, as always things improve :)
Today I lab with issues like adding paypal donate for a web device previewer online for mobile devices to see your mobile pages looks like on iphone, android etc...
So my question is, how do I over ride the styling for any object I want, is there something like theming = false or something? I would like to over ride any element when wanted from being manipulated by jquery mobile...
I am going nuts with jQuery mobile, I had to disable the ajax to even be able to link to video file, and then when I want to embed a video then it just breaks up....
In safari desktop the video shows up and play, but in iphone, it is just black dead. The fun thing that it works in iphone when i remove "jQuery mobile" and then just use jQuery.
Note! If I dont put $.mobile.ajaxEnabled=false, then you can't even link to a video file.
Here is the code:
<script type="text/javascript"> $(document).bind("mobileinit", function(){ //apply overrides here $.mobile.ajaxEnabled=false; }); </script>
<video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Your browser does not support the video tag. </video>