.css() and url hashtags
Hi guys! I am building a mobile app with jquery mobile - this is the first time I'm doing it, so pardon my noobness in any way. :P The problem is: I have a code that changes a css attribute in a div. It is inside a function that executes inside a 'pagebeforecreate' statement. The problem is that the code executes perfectly in chrome and firefox, where the url is output without /#/page. However, in ie9 the hashtag is placed in the url and as soon as I enter the page my code is not executed. All the
Need help to optimise site for mobile jquery
hi i need help to make my site optimised for smartphones(windows and android) with using cdn like service but not the api's offered by google or microsoft is it any such api provided by any developer.. <script type="text/javascript" 2 src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> 3 </script> this is a google cdn api is there any way that i can make use of this as my site api or any any individual developer's api.... i am doing this as i am trying to make offline mobile
Jquery.mobile $.ajax complete gets called repeatedly
I'm using jquery.mobile-1.1.0.min.js and cordova-2.0.0.js (phonegap). In my setup for my $.ajax call I set my params like this: success: onFetchOK, // saves everything to the database complete: function(jqXHR, textStatus) { // show everything in the database showAllHeaders(); }, error: function(xhr, textStatus, errorThrown) { alert("onFetchFailure: There was an error retrieving messages: \n" +"xhr: " + xhr.statusText
Where is Change Log?
I note that JQ 1.8.1 has just been released. I looked on the main page but except for the statement that the current release is 1.8.1 (with download links) there does not seem to be any link to a Change Log to see what was added to 1.8.0 to make 1.8.1 (or for that matter what was changed from 1.7.2/prior-releases.). I am used to seeing a change log (ie: Change History) with each new release of my software (so I know if I want to upgrade) but can not find it for JQ. Where does it exist (assuming that
Flash of content unstyled JQuery Mobile
Am using JQuery mobile and my own custom style sheet and just before the JQM stylesheet and my stylesheet kick in I see the page unstyled, I have a number of checkboxes and radio buttons across various JQM 'pages' on one html file, tried numerous of ways to try and wait until CSS has loaded before showing page but cant seem to get any to work with JQM. Maybe I need a separate style sheet for to hide.html ? Dont quite know why this .ui-mobile-rendering > * { visibility: hidden; } is not doing its
Image Selector with Lightbox zoom?
Hello all, I'm still pretty new to jquery and javascript, but I'm trying to learn it! I was wondering if it is possible to utilize both lightbox and image selector jquery plugins in the same page? Basically, I'm trying to build a tiny image gallery that if you click a thumbnail, it shows up in the largePath box. Underneath the largePath box, there will be a zoom button that would launch the full-size image with lightbox (or one of its spawns). I was wondering if anyone out there knows if this is
Is there a Callback for .tablesorter() for jquery tablesorter?
Hi, Just wondering if there is a callback for: $('table.tablesorter').tablesorter({sortList: [[0,0]]}); The sort works fine, however, i have each of the table rows an alternating color. I have a bind function for the sort start and end that re-alternates the row colors(which works fine - when the header is clicked), but it does not get called on this initial sort. Is there a work-around for this? Thanks!
Animate marginTop and marginBottom not working
Hi guys, I have a very basic jquery script, The marginLeft and marginRight are working fine, but the top and bottom margin do nothing. Any Ideias why? $('#fire').click(function(){ $('#fire').animate({ marginTop: +700 },'slow','swing'); });
asp.net listview + asp.net datapager on JQuery Mobile ?
Greetings... and thank you for using your time reading my post.. I'm developing in asp.net (c#) using latest stable JQuery Mobile version. I have a need for a datapager on a listview, and naturally enough.. i'm using the asp.net version one "Datapager", but... since the datapager does a postback each time.. it causes issues with JQuery Mobile. I guess... i need a easier more compatible way of using a pager to this.. Any ideas ? here is the code : <table> <tr> <td style="vertical-align:top">
clone on load...
I am trying to make this work: $("#content").on("load", "#prev_next", function() { alert('ahoy!'); //$("#prev_next").children('a').clone().prependTo("#top_prev_next"); }); And obviously I am doing something wrong so if someone would love to point me in the right direction that would be awesome. Pretty much #content is loaded into a div and I need to wait for the #prev_next id in #content to load and then clone it into #top_prev_next which is outside of #content. Any help or
Can you sort with an invisible value with tablesorter?
Hi, This is in reference to the Jquery plugin tablesorter I am wondering if it is possible to create a sort value that is invisible? For example, sorting by titles and would like to sort by the first word except if it is 'The'. So, would like to create an invisible numerical or alpabetical value to sort by instead Thanks! **edit looking into the textExtraction option ***edit not really understanding how to implement this ****edit So, i have a table with 2 columns. I would like to be able to sort
Add dynamic vertical timeline to jquery jqplot
Is there any way add dynamic vertical timeline to jquery jqplot? So far I can draw just a static vertical line. But in order to see that it's moving, I need to redraw the whole jqplot, which results in blinking visual effect. What I need is just to add a moving second-by-second timeline. Thanks. var d = new Date(); curr_time = d.getFullYear() + '-' + (d.getMonth()+1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes(); loc.push([[curr_time, 0] , [curr_time, 4]]); seriesCnf.push( line
struts2 jquery watermark
Hi, Clearing the watermark on Struts2Jquery plugin submit page.
Issue with using jquery tablesorterPager
I am using jquery 1.7.2 and primefaces 3.3.1. The pagination is not getting displayed. Here is my code, <h:head> <script type="text/javascript" src="#{lookupBean.themePath}/js/jquery.tablesorter.min.js" /> <script type="text/javascript" src="#{lookupBean.themePath}/js/jquery.tablesorter.pager.js" /> <script type="text/javascript" src="#{lookupBean.themePath}/js/jquery.simplemodal.1.4.2.min.js" /> <script type="text/javascript" src="#{lookupBean.themePath}/js/javascript.js"
distribute my application over the air(OTA)
Hi , I have developed an iphone application using jquerymobile. I want to distribute my application over the air(OTA). can anyone help me to distribute my application OTA. I am tried to distribute my apps on my server.I download apps from my url but after few seconds it return an error , that is "Unable to Download Application <apps Name> at this time". Please help me . -Kamalakannan.M
Help replacing Mouseenter event
Hello all. If anyone can help me, I'd very much appreciate it! Basically I'd like the "menu" to animate up upon loading the entire page and remain as such. With the code below, it only pops up when the mouseenter event is triggered. $et_main_header.live( { mouseenter: function(){ $main_menu.css({'display':'none','opacity':'1'}).stop(true,false).slideDown(menu_slide_speed); }, mouseleave: function(){
Extra action on a "callto" link
I got a normal link href="callto:+4670XXXXX" used for calling throug a VoiceIP-software (similar like Skype) and I want to add the function so when I click on the link first the browser opens the phone-software and then the link forward/redirect me to a new page/url. Is it possible to make a normal link "two" way/action options..?
Jquerymobile and firefox 3.6
Hi Link navigation on firefox 3.6 fails on my jquerymobile website and I don't undesrtand why. it works on the jquerymobile site. Can someone give me a hint ? The website I am coding is www.guappy.com. If you click the link "Les equipes" on the menu, nothing happens on ff 3.6 !
Error in JSON parsing using jQuery.parseJSON
My input JSON string to the jQuery.parseJSON() function is : { "items": [ { "contentTitle": "Ask an Expert : Neha Test Expert : <script>" } ] } I feel that the parser parses "<script>" as the HTML script tag. Hence, the doublequote(") after <script> in the JSON is considered as start of string and hence, while rendering the text, there are Javascript errors. Can somebody please clarify and suggest what needs to be done? Thanks, Gaurav
How to dislay a dialog not in full screen?
How can I modify the code here, http://jsfiddle.net/BScLu/, to display the dialog not taking the full screen. I expect a smaller dialog pop up on the center.
Hiding the Element after doing some comparison
Hi All, For a long time I am struck badly dealing with Pagination issue in J2EE application.The way I need I paginate the records is something for which I am not able to think of correct logic other then using collections list.So I wanted to check if there exists anyway I can use Jquery to hide the elements based on some comparison. Below is what I required, Date10 Title 100 Title 99 Title98 Title97 Date09 Title96 Title95 Date08 Title94 Title93 ... Title00 Now for each date I want to display
$.ajax().always() or $.ajax().complete()
So i'm starting to migrate from the prototype library to jquery. the ajax commands are pretty similar, but i'm struggling with jquery's callbacks. I know i either want to use the .complete() or .always(). The .success() and .error() callbacks aren't for me since order of operations is important and i generally want to perform the same set of functions whether or not it was successful. Basically I use ajax in 2 ways. 1) to send a command to the server and get back a JSON object with the result
Can jQuery mobile be used to build a complex mobile app/site ?
Hi, I'm a complete novice to jQuery mobile. I'm interested in building mobile websites and mobile web apps. I'm not really sure if jQuery mobile is the right choice.Some examples I've seen of jQuery mobile sites, it seems like the sites are relatively simple with static pages. I've a complex PHP site (social network) and I was wondering if jquery mobile would suffice to mobilize it ? Also there somes to be a generic looking button/font style...is it possible to change that ? Also, I've just purchased
Problems with Image Sprites and jQuery Mobile Ajax navigation
I've created an image Sprite for all the images on my jQuery mobile website(e.g. #page1, #page2), I thought I could download the image Sprite on #page1 of my site and then I wouldn't need to download it on #page2, But this isn't the case, Should this work? Thanks, I'm doing nothing complex with theses Sprites e.g. .help-photo { width:100px; height:112px; background:url(help.png) 0px -440px; }
To chain or not to chain methods of the Callbacks Object?
Because it is tempting to use "undocumented internals that some people have cleverly reverse engineered", here is an observation. In jQuery 1.7 and 1.8, you can call in a chain 7 methods of the Callbacks Object which return this. http://jsfiddle.net/mpedrotti/uW82R/ Noticing this (pardon the pun ;-) I chained methods to set up callbacks for symmetric observers: publish = callbacks.add(subscribe).fire; // simplified example When I reviewed the API documentation this week, I noticed: * The pages for
Replace same css classes with difference class names
Hi Guys, I have some span classes like this <span class="field-label"> Producent: </span> <dd class="field field-name-field-producent field-type-text field-label-inline inline"> 121 </dd> <span class="field-label"> Land: </span> <div class="field field-name-field-wine-land field-type-taxonomy-term-reference field-label-inline inline"> <span class="field-label"> Omrade: </span> <div class="field field-name-field-omrade field-type-taxonomy-term-reference field-label-inline inline"> <span class="field-label">
Select Menu with images
Hello everyone, I have problem..... I followed different tutorials on the web in order to obtain a select menu with images inside the different options of the menu....but every way I tried dosn't work. I need a select menu in which every single text option is accompanied by an image.... How can I obtain this? Thank you a lot Luca P.S: this is one of the "tutorial" I followed http://stackoverflow.com/questions/5512685/how-can-i-add-images-to-jquery-mobile-select-menu-items
Error Loading Page on log out
Hi, I am using ASP.NET Forms Authentication for my mobile app site. The login process works fine, but I am having a slight issue with the logout. The logout method is a server side method in a .asmx file in the project. To call it, I'm using the following code: function SignUserOut() { $.ajax({ type: "POST", url: "Services/LogOutService.asmx/LogUserOut", data: "", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) {
How find by attributte like ends with
Hi, i'm Maximiliano, currently i'm developing a validate function based on some attributes names like numeric-validator. I find the elements with $('[numeric-validator]') but i need to find with attribute name ends with numeric-validator, because some elements needs a prefix before attribute name. Is this possible? Best Regards.
showPageLoading() never works for me.
What´s the deal with $.mobile.showPageLoadingMsg()? I have never got it to work and now i am using 1.1.1 version. In order to get anything like that working i use: $('body').addClass('ui-loading'); and $('body').removeClass('ui-loading'); Then it works. Why is that? Is anyone else having problem with the showPageLoadingMsg()?
auto trigger nav links
Hi all, I have created a page slider and obviously each page has got a navigation link. How can I trigger each nav link individually so it changes that slider pages with a time delay (e.g. 2 secs)? Thanks in advance :) D
popup without history
Hello, I'm experimenting popup in 1.2.1-alpha1 and would like to completely disable history so that there is no hash change when opened and no changePage call when closed... Is it currently possible? otherwise could this be implemented for the final release? Best Regards, Stéphane.
semi revealed accordian
I dont know what to call it, but this guy has an accordian function on his site that i want to replicate, can anyone help by explaining to me the concept of it or at least point me in the right direction? this is the website. <http://www.tylerbuilds.co/> i have a basic style of one at <http://brentdeacon.manapool.net>
If the user disables Java-Script then I need to disable the submit button.
How would I disable the submit button on a form if the user disables Java-Script in his browser. Any ideas or recommendations? Sample code will be helpful. Thanks
Hibernate and Wakeup Page
Is there a way I can capture the entire state of the webpage and its controls, then show a progress bar till some ajax call completes. After completing it, restore the same onto the state it was in before the progress bar started? A kind of hibernate/wake-up?
Not able to disable text autocomplete
Hi All, - I need to disable text autocomplete in an application which I am developing for windows phone 7.5 using Cordova/Phone Gap and jQuery Mobile also. - I tried setting the autocomplete property equal to off inside html area which was not working,so I tried setting autocomplete property using Java Script and later on jQuery but to no avail. - Can anyone suggest a turnaround to me in this regards. - Thanks in advance. Regards, Nitin
jQuery easing twice in html
Hi, I have the following problem - Iam including 2 javascript files into my html file: <script type="text/javascript" src="./menu/menu.js"></script> and <script type="text/javascript" src="./scripts/runningcategories/jquery.fancybox.js?v=2.1.0"></script> Both contain jQuery.easing . in the menu.js JavaScript it looks like this: jQuery.easing={ easein:function(x,t,b,c,d) ... My menu looks like this <div id="menu"> <ul class="menu"> ... My question now would be whether it is possible to relate
jquery plugin on click check element is visible
Hi, I'm creating a plugin that opens a popup/tooltip on click a Icon. The problem i'm having is that on click i want to check if the element is visible or hidden. If visible close the tooltip else if hidden open the tool tip. What the issue is that the .is(':visible') always returns false even though the element is visible and i can't work out why. A code review would be good to. I have create a jsFiddle link so you can try it out. http://jsfiddle.net/emjaksa/ExvYj/8/ This is the code that i have
Struggling with checkboxes...
Right now I have this code running to actively count how many check boxes are checked actively on a page. They're are about 20 check boxes, but I want to be able to say after 8 are checked, don't allow anymore to be checked. (Restrict them) BUT... still be able to uncheck them incase you want to change one. Say like: [x] 1 [x] 2 [x] 3 [x] 4 [x] 5 [ ] 6 [x] 7 [x] 8 [x] 9 [ ] 10 [ ] 11 [ ] 12 Ok, that's 8 checked, so I can't check number 11.... But if I uncheck any of the ones that are checked,
Not working for IE 9?
This code block works fine on firefox and chrome but not on IE 9. I have this code on jsFiddle at this url http://jsfiddle.net/ELUGc/125/. Can anyone help in finding out what could be the issue.
Next Page