• how to send huge parameters information using $("#id").attr("href", url)

    Hi All, Hope all are doing good. I'm facing issue with the usage of $("#download").attr("href", url); when sending large no.of input parameters from js to next level. could you please suggest here how can i send the large amount of parameters or data to my application ?
  • Can anyone help me please... i'm trying to use class instead of Id but class is not working.

    <td> <?php $academics=mysql_query("SELECT * FROM tb_academic");                                         ?>                     <select onChange="showsub(this.value)" class="required search" id="" name="level"><option>--Select a level--</option>                                                                          <?php                    while($row=mysql_fetch_array($academics))                    {                    ?>             <option id="<?php echo $row['id']; ?>" value="<?php echo $row['academiclevel'];
  • jquery mobile javascript calculator for phonegap

    I am very new to javascript, and I am trying to build a mobile app with Jquery Mobile. I would like the user to input one value on each page and then on the last page they will click submit and it will display the calculated value on the last page. I have been working on this for like 4 hours and I can get the calculation to work on the same page as the submit button but not on the next page. <script> function sum() { var item1num = document.getElementById('item1num').value; var item2num = document.getElementById('item2num').value;
  • non editable jquery plugin

    Hello, i have created a plugin which consist of a logo, i want that the person who is using that plugin should not be able to remove it. Is it possible?
  • switching e.preventDefault() on and off so swipe works on android

    Here's a snippet of code that triggers events on swipe left and swipe right. the problem is with androids then need e.preventDefault() to be called to ensure this can happen according to  http://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=4549 Here is my code     var maxTime = 1000,     // allow movement if < 1000 ms (1 sec)     maxDistance = 50,     // swipe movement of 50 pixels triggers the swipe     target
  • Upvote & DownVote

    Can someonepoint me in the right direction on how one would do this.  Basically you vote on something. The ones with the highest votes go on the top. Ones with the least. on the bottom. thanks
  • Usage for Attr

    I am trying to this on a input tag that is a type password and changing it to text, but the below line crashes my script but it work when i use prop instead anyone know why? does not work $(selector).attr('type','text'); works $(selector).prop('type','text');
  • Run script every time the page is shown

    jQuery 1.9.1 jQuery Mobile 1.3.0 I want a script to run EVERY SINGLE time a page is shown, including the homepage and every other page on the site.  Please tell me exactly what code I need and where to put it on the page. I have been trying to figure this out for a week, and I'm getting sick of jQuery mobile and it's quirks. Thanks.
  • buttonMarkup - Theme feature won't refresh after data-theme is modified

    Regarding to a problem like the one here: https://forum.jquery.com/topic/best-way-to-change-widget-theme-after-the-page-is-first-loaded In the jQuery Mobile 1.3.0 version, I went with that problem and I solved it like I wrote in my answer in that question. My actual question is: don't the css classes for the data-role=button element should be updated when doing buttonMarkup('refresh') ? Otherwise, after the attr('data-teme') change and when doing the refresh action, nothing happens, because the theme
  • buttonMarkup - Theme feature won't refresh after data-theme is modified

    Regarding to a problem like the one here: https://forum.jquery.com/topic/best-way-to-change-widget-theme-after-the-page-is-first-loaded In the jQuery Mobile 1.3.0 version, I went with that problem and I solved it like I wrote in my answer in that question. My actual question is: don't the css classes for the data-role=button element should be updated when doing buttonMarkup('refresh') ? Otherwise, after the attr('data-teme') change and when doing the refresh action, nothing happens, because the theme
  • Tabs example not working - all tab content shown

    Hi there, just tried the example of jquery.com with tabs. I've set up jquery tabs with the ui. Included js and css is there aswell as jquery is. But as soon as I load the page the tabs are properly shown but in every content is the full content of each tab content on top of each other. The code is exactly the same as shown in the jquery-ui documentation but not working. Here my includes <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  • Navigation may not work if viewed locally

    Hi., I need page silde transition effects in offline..... It's not working in offline.... its showing like this.... Note: Navigation may not work if viewed locally The AJAX-based navigation used throughout the jQuery Mobile docs may need to be viewed on a web server to work in certain browsers. If you see an error message when you click a link, try a different browser or view help.
  • Sortables in Between Multiple Dialogs Connection/Floating Issues

    Issue: http://jsfiddle.net/Drath/Y9k3P/ I've been having this issue connecting two jQueryUI sortable lists in between two dialogs. The issue comes down to floating. If you move the sortable around it's own dialog, it works perfectly. If you try to move it to the other dialog, it will fail to register as the element that "accepts" the sortable has no height, because all of it's elements are floated. What I've tried: Tried using display:inline-block instead of float. This does work, but makes drag/drop
  • after load() styles are lost

    hi, i am loading some content and placing it in a div. the content contains several different form elements, unfortunately jquery mobile doesn't update the styles. i have seen tons of articles and posts about that issues and none of them seem to help my case. what to do? this is some of my html <!DOCTYPE html> <html> <head> <title>test</title> <link rel="stylesheet"  href="jquery.mobile-1.3.0/jquery.mobile-1.3.0.css"> <script src="http://code.jquery.com/jquery-1.8.2.js"></script> <script src="jquery.mobile-1.3.0/jquery.mobile-1.3.0.js"></script>
  • Tooltip : how to position the tooltip in relation to the mouse without tracking

    I would like to position the tooltip in relation to the mouse position, without using the track option. The same behavior than windows system tooltips. $(document).tooltip({   position: { my: "left top+5", at: "left bottom", of: ??? } }); Thanx
  • problem with jquery ui tabs reload

    I am using jquery-ui tabs for my commercial site.The problem with the tabs is, each contains some form elements.we need to enter data into form feilds,upon clicking submit button control goes to a php page where the data is inserted into the data base and also I need to see the content which i entered once it is inserted. I am using ajax call to this, in call back function if I use load ($('.selector').tabs('load',index);). It is not working. If I use  $('.selector').tabs({active:index}); it is working
  • Found uncompatibility with jQuery 1.9.*

    If you want to fire a function after a page was loaded, jQuery Mobile recommends using jQuery's "live" function instead of jQuery's "ready" function - in order to make sure that the function is triggered both when loading a page via or without Ajax. E.g. $( '#aboutPage' ).live( 'pageinit',function(event){ alert( 'This page was just enhanced by jQuery Mobile!' ); }); See jQuery Mobile API: http://api.jquerymobile.com/pageinit/ http://api.jquerymobile.com/pagecreate/ The bug: jQuery 1.9.* does not
  • Tooltip - different options for different elements

    Hello, is possible to have different tooltip options for different elements? For exaple .quick-tooltip class will have delay 0 but default tooltip has this option set to 250? It is ajax application so $(".quick-tooltip").tooltip() will not work. I know I can create tooltips live with $(document).on() function but I am wondering if there is simpler way to achieve this behavior. Thanks
  • jquery validator show message based on validator outcome

    I want to show error message based on outcome of validate. Like in my case, I am validating feed url. There couls be case where url is not reachable, or feed is valid. I want to show message accordingly.  jQuery.validator.addMethod("feed", function(value, element) { var retVal = true; //Ajax call here which returns var retMsg = ajax() if(retMsg == "one") { //Show error as "not valid url" } else if(retMsg == "2") { //Show error as "not reachable url" } return retVal; }, << CUSTOMIZE MESSAGE HERE BASED
  • Drag n drop, clone, rotate on one object

    Hello  I have a problem. I am new in jquery. I neet do following things. I have 10 square puzzles (unlimited quantity) wich i have put on a grid and then on mouse click rotate right 90 angle (unlimited times) I found in the net this: http://www.placona.co.uk/166/javascript/a-more-elaborated-jquery-drag-drop-cloning/  and this http://jqueryui.com/draggable/#snap-to (I base on this script - last square) and this http://code.google.com/p/jqueryrotate/wiki/Examples        (Example 5) But i have no idea
  • upgrading jquery ui 1.8.5 to 1.10

    i am using autocomplete in one of my project. I want to upgrade from ui 1.8.5 to 1.10.1 . i simple include the new new libraries of jquery and jquery ui and autocomplete is not showing the result menu, it just displays the text "2 results are available" and i can navigate among the result but menu for selection is not displayed. here is the code for autocomplete.  function initLoc() {     $(".location").each(function (index) {         $(this)         .bind("keydown", function (event) {          
  • Bug 6198 (Datepicker Dropdowns in ie) still happening

    We have upgraded to jquery 1.9.1 and jqueryui 1.10.1. The bug described here: http://bugs.jqueryui.com/ticket/6198 is still happening for us even though it was supposedly fixed in 1.8.15. How can we stop this bug from happening? The bug requires that you click the month and year dropdowns twice - basically doubleclick -  in ie or the dropdown will "flash" and close.
  • Jquerymobile uncaught type error

    All, Bit of a problem with the following error message using jquery 1.6.4 and jquerymobile version 1.2.0: Uncaught TypeError: Cannot call method 'format' of null The above error does not occur when navigating to a specific page on first load. It only seems to happen once I navigate from my main menu to another page then back to my main menu and then on to a different page. Any ideas? I have added in: <div data-role="page" id="makeclaim" data-url="@Url.Action("MakeClaim", "AllowanceClaims")"> Just
  • The time of reaction rate is for 5 second or longer on opening or closing popups

    The time of reaction rate is for 5 second or longer on opening or closing popups 
  • A question about display of persistent toolbars in changing screen orientation

    Using the defualt browser of android mobile opens the example of 'jquery.mobile-1.2.0\demos\docs\toolbars/footer-persist-a.html' and changing screen orientation from vertical to horizontal then from horizontal to vertical,The results are as follows:
  • I am trying to populate dropdownlist based on the selection of another dropdown list.

    Hi sir, I am trying to populate dropdownlist based on the selection of another dropdown list. But it is not showing the mapping values. Please check it where  i am doing the mistake and this is my code. <script type="text/javascript"> $(document).ready(function () { $('#drpCategory').change(function () { var drpCategory = $(this).val(); //$.getJSON('<%= ResolveUrl("~/Recommendation/GetCategoryId/")%>' + $("#drpCategory > option:selected").attr("value"), function (data) { $.getJSON('<%= ResolveUrl("~/Recommendation/GetCategoryId/")%>'
  • feature req: .until()

    I was wondering if it's feasible to add an "until()" method that is identical to the existing "prevUntil" and "nextUntil", except it will determine the direction to traverse for you based on the index of the supplied parameter.  I realize this may get a little complicated when passing a jquery object or selector that has multiple matches, in which case I'd imagine it would use the first result.  Furthermore, an "untilAfter()" that the same as the proposed "until()" but also includes the parameter
  • JQM 1.3 RC1 - Images in Buttons

    Hello There is a slight issue in the CSS for JQM 1.3 RC1 some of the icons for the buttons are not properly aligned. and some are not showing when viewing on mobile device. I am not sure if its just for Android, but on Desktop, it looks normal but on Android, the icons are not centered is there anyway to fix it?
  • dialogue.('close') and $('dialogue1').remove not working

    Hi Friends, In my situation I have to create dialogue when somebody clicks on the link  as these links are dynamic.When I try the dialogue.('close') then it closes for the first time and then doesn't close the dialogue and when we see html we can see multiple dialogue are there but display:none but one with  display: Block. I tried with $('#Dialogue1').remove it runs fine on Chrome but error out on IE 9. Object not supported error.  $('a#Dialogue1').live('click', function (e) {                 
  • code not working without alert in JQuery and asp.net mvc

    Hello All, I am working on JQuery but am getting problem while running the code . If I add alert in code then only below code works but I don't want this. I want to work this code without alert. Please help me for the same Below is my code: /* Add a select menu for each TH element in the table footer */         $("#dvddl div").each(function (i) {             alert("test");                 this.innerHTML = fnCreateSelect(oTable.fnGetColumnData(i));                 $('select', this).change(function
  • how to use jquery that display the record from the database?

    Great day! Kindly help me sir/madam..  heres my code: $('form').validate({     rules: {  order_numbr:{             required: true,             ordrNum:true                      }, jQuery.validator.addMethod("ordrNum",function(value,element){     var isExist=false;         $.ajax({             type : "POST",             async: false,             data : "action=checkOrdrNum&id=0&orderno=" + value,             url  : ajaxurl,             dataType:"json",             success: function (data) {      
  • Telerik RadGrid cant able to get the id on client side

    hi,   i need to get the RadGrid id on client side,but i cant able to get the selected row value   i am using this code for get the id but its not working,returns the null value    function GetSelectedNames() {             alert('hello');             var grid = $('#<%# RadGrid1.ClientID %>');             alert(grid);       var MasterTable = grid.get_masterTableView();       var selectedRows = MasterTable.get_selectedItems();       for (var i = 0; i < selectedRows.length; i++) {           var row =
  • Linking to external link (can't scale content)

    Failr new to Jquery mobile and I'm building an app which is compiled on phonegap. One of my links is loading an external page.  It shows up fine within the app but I can't scale the content on the mobile device. Any suggestions how I can view/scale the page or does it have to open in an external browser? ...if so, how do I open the phone's default browser? Thanks!
  • How can i Make this Math function work

    I am trying to create this math function that I seen online but I am getting it wrong. When i try to submit it does nothing.   it is supposed to be ... rate + rate/((1+rate)^months)-1) * principal   In my code below I have interest as rate,years as months and amount as principal .   My code is         $('#loan_payment').click(function () {     $("#years") * 12; var mat = parseInt($('#interest').val(), 10) + parseInt($('#interest').val(), 10) / (Math.pow("#years"(1 + "#interest") - 1)) * $('#amount');
  • jquery tabs and search form in one tab

    I am a middle school geography teacher learning web programming.   For my school, I am creating a single-page multi-tab portal with four jquery tabs.  I'd like the fourth tab to contain a form and also search & display MySQL query results.   My problem is, on the fourth tab, once I enter the search term and hit the "Search" button, the results are not loading in the fourth tab.  They are loading on a separate page: http://localhost/notes_search.php   How could I get the results to appear in the fourth
  • Tooltip help

    I'm new to jQuery and I'm trying to create a tooltip. I made a very simplified version of what I've done so far below that you can run. I get the tooltip to fade in when the mouse is over the span and when the mouse leaves the span the tooltip fades out. Now if the user wants to, say, copy the contents of the tooltip or click on a link inside the tooltip then the tooltip has to fade back in as the mouse leaves the span and goes over the tooltip. Therefore the tooltip can't fade out too fast because
  • What is the Name of the Plugin to Change the Document Style Online

    Can you please take a look at following image and let me know what is the name of this adds-on which let user change the page background color or style on line? Can you please let me know where can I find jquery plugin like this? Thanks
  • convert jquery object to javascripb string variable

    Is there a means to convert a jquery variable to a javascript variable? for example:     i have a jquery variable that I am attempting to assign to a javascript variable so I can use standard javascript methods on.        var b = $(b1).text();       b = b.replace(.....)     this is not permitted.  The text object in jQuery is not the same as a string variable in javascript. Thanks in advance
  • Change

    Hi everyone I'm trying to combine two codes. 1.) Code for append parameter to every href: $(function() {    $("a").attr('href', function(i, h) {            return h + (h.indexOf('?') != -1 ? "&ajax=1" : "?ajax=1");          }); }); Source (http://stackoverflow.com/questions/2667551/add-parameter-to-links-on-page-using-jquery) 2) Code to make selection within a iframe $("iframe").contents().find("textarea").keydown(...) Source (http://stackoverflow.com/questions/2893280/jquery-select-iframe-children)
  • Why do we wrap plugin source code with function($)??

    The document on jQuery official site documentation metion nothing about it but yet everyone wrap it like that. (function($) { //plugin code })(jQuery); I make my own plugin without wrapping it, it still works. So what is this about?
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of