• jquery-1.4.5.min.js referred in the template site is missing

    Hi Where can the file jquery-1.4.5.min.js be obtained? It is not available here: http://code.jquery.com/jquery-1.4.5.min.js
  • What is the purpose of styles() method in jquery ?

    i was just going through the source of jquery css() method and came across the following lines of code :  function (name, value) {     return access(this, function (elem, name, value) {         var styles, len, map = {},             i = 0;         if (jQuery.isArray(name)) {             styles = getStyles(elem);             len = name.length;             for (; i < len; i++) {                 map[name[i]] = jQuery.css(elem, name[i], false, styles);             }             return map;         }
  • CharacterSet Problem

    I am using jQuery .load() to load some html files into my "master" page. The users who are creating the html files are using MS Word. I've noticed that MS Word inserts this meta tag: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> Because I am loading the pages using .load(), there are some characters that do not get encoded correctly and little boxes show in their place. Can I override that meta tag inside the html files created in MS Word? If not that, what would be
  • Using Jquery Mobile without data-role="page"

    Hello everybody, I know, it is not a good idea to combine Bootstrap and Jquery Mobil. But I like the responsive layout features of bootstrap and its navbar and I also like the possibilities of jQuery mobile (style, including swipe events, listviews etc.) and transitions. But Jquery Mobile always needs the data-role="page"- container which doesnt allow me to use just the listview-widget of Jquery mobile. And I didn´t find a simple way to use the widgets without this page-Container. Can anyone help
  • Assign json respone to variable & access out side ajax function

    $.ajax({       type: "POST",    async: false,   dataType: "json",   url: "get_data.php",   success: function(data){         charts = data;        }            }); //ajax fucntion end; in above code i assign  json response to variable i am getting  {"two":[[20,22,30,40],[2,20,24,34]]} as json response. but i assigned this response to charts variable. but how to access that variable  in out side ajax fucntion alert(charts.two[0]); it is giving error
  • jQuery UI Position to set “right” and “bottom” instead of “left” and “top”

    Is there any way to make position of element calculated using “right” and “bottom” instead of “left” and “top” css style?
  • jQuery/JSON processing order

    I hope I've got enough code here. From what I can tell with my console logs, I am executing my javascript in the order I want. The problem arises that at console log 3, there is no data to process. I hope this is clear, as I am at my wits end trying to figure this out. My html page calls retrieveData, passing in a path for the selected page. From there, I parse the data and most of the time it works, but sometimes No data gets appended to my page. I need someone to show me how to structure my code
  • get span text in each li

    Hi All, I am having some html rendering I would like to get text with comma sparted of span who is having class green  for each span in li. The whole html is under dropdown who is having class mipartrel Please find the image Thanks in advance
  • Carousel for switchung iFrames or Web Applications?

    Hello, I am a developer of business web applications, experienced in Javascript, HTML5, jQuery (itself) but haven't developed own jQuery plugins yet. I now need the expertise of experienced plugin developers, about feasability of the following scenario: I am evaluating possibilities to develop a "Windows-like" app switcher, in carousel style, which shall allow business users to switch between several web apps, loaded at the same time, but only have one visible in the foreground at a point of time.
  • Unable to make imports to work

    Hello all.  I am creating a small form based in a given json, but my dynamic imports are not working properly, it add only after the function is called causing a function to not be found. In order to make this import I did this small function: function include(scriptName){     var head = document.getElementsByTagName('head')[0];         script = document.createElement('script');     script.src = scriptName;     script.type = 'text/javascript';         head.appendChild(script); } It works as it should,
  • using backstretch for a background....but wanting it to fade out.

    Hi people,  This is my code :  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="refresh" content="4; URL=home.html"> <title>Untitled</title> <!--[if gte IE 6]>     <script type="text/javascript">     $.backstretch("rotate/intro_with_logo01.jpg", {speed: 550}); </script>   <![endif]-->    
  • open page from link

    hy. I have a site with index.html where it's a div content where i change contents with ajax calling to files that are into a folder called contents. All is right, but when I link the url the browser open the page in the folder but not the structure of index page. Anyone could help me?
  • Geo Location

    Hi, I'm trying to retrive visitor latitude and longitude to pass like a parameter in a php script. this is my code:    function getPosition(){     if (navigator.geolocation) {          navigator.geolocation.getCurrentPosition(getLatLong);     } else {          x.innerHTML = "Geolocation is not supported by this browser.";     } }                function getLatLang(position) {                         var lat = position.coords.latitude;                          var long = position.coords.longitude;
  • blockUI - changing message for specific ajax when set for all?

    I am using the jquery blockUI plugin and have set it to block/unblock on all ajax starts and stops : $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI); What I have found is there are certain parts of my site where while I still want to use the blockui functionality I do not want to display the message.  For instance, in a form I am doing ajax call on a username input field to check if the username is available or not... well, as of now my message shows on every keystroke input in the field. 
  • The Mask Pluging does not work in my code

    Hello, I have controls in my code : required : true, messages, control email, and Mask. Only Mask does not work, I don't know why, I am lost. I precise that my function Mask works normally in once page, but I have two pages that are linked by the function AjaxRequest. And it is because that, the Mask doesn't work. Please help me. Thanks
  • How to link from webpage.php to jQuery function

    Hi all, I'm trying to check if user is logged in or not. So I'm using sessions for it. Now my doubt is, if I had user name in the session I want to hide the Login button. I'm validating session using php so I want to invoke a jQuery(). 
  • Check whether .toggle() or .hide() has hidden an element

    I'm working on some code that shows and hides elements in response to filtering options and I'm trying to determine whether an element's visibility needs to be toggled or not. I know whether the element should be visible or hidden. If it should be visible, I want to first check if it is already visible. If it's not, then add it to an array of elements to call toggle on later. I tried using .is(":visible"). The problem is, this tells me whether the element is actually visible, not whether it was specifically
  • accordion loading data fromn database not working

    I have an accordion and a sql database, below is my html My problem is it does ALWAYS bring out data into the accordion when I click on the Link. Sometimes it can be two clicks. Any ideas how to fix my problem? <script> $("accordion").accordion({ autoHeight:false, heightStyle: "content",cache:false }); $("h2,"#accordion").click(function(e) { var contentDiv = (this).next("div"); contentDiv.load($(this).find("a").attr("href"); }); </script> <div id="accordion"> <h2 id="<%=lnkPid%>"> <a href="load.asp?pid=lnkPid"><%=strPerson%></a>
  • Autocomplete - search form does not submit.

    Hello, I added the 'autocomplete' function to my search engine. Well working as to be seen at http://test1.sphider-plus.eu to place any suggestion into the input field of the search form. But I am unable to trigger my search engine without pressing the 'submit' button of the search form, after the suggested keyword is placed into the input field. I searched the forums for solutions and found http://forum.jquery.com/topic/autocomplete-enabled-field-not-submitting-when-pressing-enter Unfortunately
  • Jquery finding and concat option value

    I am new to jquery, hard time finding solution for this. Could someone help me on this. I have a form as shown below. <form id="a" name="fn" > <section ....> <div ....> <select id="sid" name="sname"....> <option data-attribute-value="1"  value="1" > 1</option> <option data-attribute-value="2"  value="2" > 2</option> <option data-attribute-value="3"  value="3" > 3</option> <option data-attribute-value="4"  value="4" > 4</option> </select > </div> </section> </form> I would like to append values of
  • JQuery combogrid for autocomplete

    JQuery combogrid for autocomplete is not working in IE11. It works fine in lower version of IE.We are using the below version of JQuery and JQueryUI. Let me know if there is any quick work around to make this working with same version of js.   Also help me which version of js is best suited for IE11.   jQuery UI - v1.8.20 jQuery v1.7.1      
  • jQuery lightbox chaining

    Hi,  I have the code below and I want to programmatically reproduce it with jQuery so that it can handle a variable number of photos from Flickr. I want to use jQuery.wrap() to wrap each tag in a link back to the original image on Flickr using method chaining. I want to set a unique ID attribute on each image.  Its value is to be based on a loop counter in the for-each block ( using “ attr() ”). Then I want to refactor the code to pop open a lightbox style dialog when clicked, i.e. reuse the wrap()
  • Wordpress theme and Superfish

    I am building a site using the Revoke theme from Tesla. In that theme I have 2 different header.php files and have enabled in the functions to have 3 menus.. The primary one calls 2 instances of Superfish menus (WP menus 1 & 2) on one page and both of them work. The secondary header calls for a different (and only) menu (WP menu 3) using the same settings as the primary header. However, and this is the tricky part, the "sf-js-enabled" class (which works in the primary header) is interpreted as "sf-arrows"
  • Error in jquery paging

    Hi , I want to make clientside paging in my application. following is working fine in my application var cnt=4; var $pagenumbers = $('<div id="pages"></div>');                             for (i = 0; i < cnt; i++) {                                 $(' <a href=\"#\" id=' + (i + 1) + ' class="page">' + (i + 1) + '</a>').appendTo($pagenumbers);                             }                            $pagenumbers.insertAfter('#st'); this will display 1 2 3 4. my requirement is add anchor with << and
  • DOM7011: Error on Dialog Close button. Please help

    First of all jQuery Mobile is so amazing. Thanks jQuery Mobile Development. Im facing only one bug in IE 9 - I test it by IE Debug tool. When i try to close dialog. It display the following error: DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337 Im searching everywhere and not able to find the solution. But otherside i test jQuery Mobile Documentation example dialog page. Its working perfectly fine in IE. Its
  • ERR_CONTENT_DECODING_FAILED when using .ajax

    I have a log file at http://www.pokersoftwareanalysis.com/tail/log.log that looks like:     2015-05-20 14:19:52.306655 hello     2015-05-20 14:19:55.406846 hello     2015-05-20 14:19:57.292777 hello The log file was generated on a Godaddy shared linux hosting account using this code:     with open( log_path, 'a' ) as f:         f.write( '%s hello\n'%datetime.now() ) I have an html file at http://www.pokersoftwareanalysis.com/tail/problem.htm that attempts to load the log file. The content of the
  • Is there an .add() that adds to the existing jQuery object?

    I'm writing some code that responds to a set of filters. The way I'm trying to tackle it is first determine which elements should be hidden and which elements should be shown, and then hide or show those elements. That way the elements are all hidden or shown more instantaneously without having to evaluate criteria in between each one. After I identify an element that should be shown, I need to store it in a group of elements to be shown. I was thinking of doing something like this: var $elementsToShow
  • How to load a script to another DIV and resize target DIV and an iframe as well?

    Hi, I have the following page that contains 2 DIVs. <div id="div1" style="width: 50%">  include my script one here </div> <div id="div2"  style="width: 50%">  include my script two here. <input type="button" id="load3" value="load script three to div1"> </div> // script three, which contains an iframe Question: When the button with id of "load3" is clicked how to load the script three to div1, then resize div1 to 100% and make the iframe inside the script three using 90% of window width and height?
  • Popups flickering on multi-page template

    Hi,    I have a jQM multi-page template in a single html where each page has one or two divs as popup as per this example: http://demos.jquerymobile.com/1.4.5/popup-image-scaling/ . It works just fine on Android and also on desktop but somehow only on iOS, while popup shows okay, when closing the popup it flashes intermittently. I have tried various things: such as move popup div just after the link that opens the popup, make popup div sibling of the page header, popup with animation disabled, disable
  • Newbie: Duplicate clicks on Android?

    Hi,   I'm seeing a weird issue on some pages. I use http://x1024.github.io/jquery-fastbutton/ to eliminate click delays. On some HTML pages (that have multiple jquery mobile pages and so are "multipage" templates") loaded without Ajax, somehow the first page is navigated automatically as soon as the HTML page is loaded. It is intermittent and it happens only on Android. On iOS it works fine. I'm using jQuery mobile 1.4.0 still. Has somebody seen this? Any pointers appreciated. (I tried to use FastClick.js
  • Showing any page as a dialog?

    Hi,   Is there a way to show a JQM page (that is part of a jQM multipage template in a html and each jQM page has a id) file as a dialog using data-rel="dialog"? The idea is to use the destination html file as is and also popped up as a dialog to avoid defining a separate popup.  Thanks in advance and regards
  • No bleeding out when using a JQM control on a page

    Hi all, I have the following scenario: - a static index.html page that looks like this: <html>  <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">   </head>  <body>   <script src="myscript.js"/>  </body> </html> - at runtime I create a container <div id="container-uniqueid"></div> as a direct child of the body element - I dynamically load a jquery mobile control (e.g. slider) at the press of a button and place the jquery mobile control inside
  • $.post problem

    Hi, I insert a record into DB with this code: $.post("assets/addspot.php",                  {                     title: vtitle,                     longitude :vlongitude,                     latitude :vlatitude,                     email:vemail,                     stato : vstato,                      user : vuser,                     phone:vphone,                     web : vweb,                     mobile : vmobile,                     image :vimage,                     description : vdescription
  • jQuery validates all required fields except file upload.

    I am definitely doing something wrong and I would greatly appreciate someone pointing me in the right direction. Many thanks in advance.  I am trying to validate file upload along with a few other form fields. All the form fields listed in the script below are being validate except the single file upload called BidIDFile. Any ideas what I am doing wrong?   <script type=' text/javascript' src=" http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.js"></script> script type=' text/javascript'>//
  • This is a good workaround for disabled button at mouseenter?

    I have to show tooltip message on (enabled or disabled) button and I know about this ticket , but I didn't see the following solution nowhere: Tooltip message is not shown Tooltip is working in way I want (the difference between the codes is just in "init()" function) Does this solution have any unwanted side effects? Thx
  • Can I get Ajax html response and pop a part of the result into a javascript variable?

    I want to populate Ajax response and set a part of it into a new variable.     $ . ajax ({     type : "POST" ,     url : " ajax.php" ,     data : "id=" + id ,     success : function ( data ){         $ ( "#response" ). html ( data );         var new_var = $new_result;     } }); ========== [[ ajax.php]]        $new_result = 'hahahha';        echo $all_names;        echo $all_address;
  • Best way to go with multiple inserts

    Hi all. Though only a home-taught novice in all, I am OK when it comes to using PHP and jQuery to insert records in a database. However, i am considering trying something that I am not sure is even possible (but assume it is) and hope someone can give me a pointer of which way to go. Basically, I have written a script that generates scenario's to run through Selenium IDE and IBM's RFT. At the moment it just returns the info to screen but I want to save the runs into a MySQL database to be retrieved
  • Mobile Navigation Menu with JQuery [SOLVED]

    Hello! I'm working on a website with mobile-first responsive design (just like everyone and their mother) and I have been struggling with the navigation bar. I tried following this tutorial but I've been having some problems. The navigation menu does indeed hide the normal menu, and display the menu a element, but the menu image does not display, and when clicking on the a element, the menu does not appear; no Jquery seems to be loaded. I've triple checked all my image and script srcs, and they all
  • Problem using Event when slider is changed

    Hi! I am currently using the following jquery Mobile together with jquery. <link rel="stylesheet" href="themes/klaus-theme.min.css" /> <link rel="stylesheet" href="jquery.mobile-1.4.5.min.css" /> <script src="jquery-1.10.1.min.js"></script> <script src="jquery.mobile-1.4.5.min.js"> I am trying to use the exakt same fiddle at this url, and no event is triggered after changing the slider in my code... Are there any problems with jquery mobile 1.4.5 with jquery 1.10.1 ?  thanks, jsfiddle for my problem
  • Sync audio with text

    Has anyone used the popcorn.js plugin for syncing audio with text, does it working on older IE browser. Thanks Mathie
  • 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