• disable ajax

    you can disable ajax using pagechange something like this:                      function comentario(val){                         $.mobile.changePage("comentario.php", {                         type: "post",                         data: {                             value: val                         },                         transition: "turn",                         reverse: true                         });                      } <a href='javascript:comentario(2)' data-ajax='false'>comentario</a>
  • How to Set Up a Download Directory Using jQuery

    jQuery supports file select capability for uploading files (below code ) but I just wonder can we do something different to set a download directory/path to a specific folder by using the windows select folder box?    <form>     <input type="file" />     </form>Thanks
  • How can i append data at the same time getting ajax response from server.?

    Anyone can help me. I'm working in Jquery-mobile with phonegap application. How can i append data at the same time getting ajax response from server? Here more than 800 kb data is retrieved from the server as Json format This is my code:     $.ajax({         url:url,         data:'',         contentType: "application/json; charset=utf-8",         type: "POST",         dataType: "json",         crossDomain:true,         cache: false,         async:false,         //success: loadAllCars,           
  • JQM Javascript is not been used

    I have  search in the forum for the answer, found some stuff but its still not working. In the first page(index), i have inserted the javascript into the data-role="page" ... <div data-role="page" id="swipepage"> <script src="js/myjs.js"></script> ... i have included alert to check if the javascript is been used. scontent is the div id where this code will work alert("no ficheiro"); $(document).on("pageinit", "#scontent", function(){        alert("scontent");         //The code of the second page
  • Modifying the DOM in a new window

    So I'm opening a new window with the following code:     scoreboardWindow = window.open("scoreboard.html","scoreboard");          $("head *", scoreboardWindow.document).remove()     $("head", scoreboardWindow.document).append("<style>\n" +         "table {\n" +         "    font-size: 40px;\n" +         "    font-family: Candara, Verdana, Arial, sans;\n" +         "    margin-left: auto;\n" +         "    margin-right: auto;\n" +         "}\n" +         "tr td:first-child {font-weight: bold;}\n"
  • JSON object to array using each.

    I have  array of json object stored in ItemsList variable like this :  ItemsList=[ { ItemID:"1", ItemName: "abc" }, { ItemID: "2", ItemName: "dg" }, { ItemID:"3", ItemName:  "erte"} ]; how do I push them into the array variable with key and value using each function.  I tried this :  var arr= new Array(); $.each( ItemsList, function(key, obj){                     $.each(obj,function(k,value){                         arr.push(k,value)                     });                 }); Does not give me the
  • listview filter reveal min lenght?

    Hi all, I really like the JQM 1.3.1  filter reveal option and I need it to filter a php-mysql query. It works perfectly but it begins to show results as soon as I type something. That's ok with the default behaviour of the filter. But I need to enable the filter once the user has typed at least 4 characters. Is there a sample that show how to do this in a php-mysql environment? TIA tony
  • Function question

    I have the following code which works fine: var blackshFunction= function() {       var j=0;       for(var i=2;i<9;i++) {          $("#altviews a").eq(j).attr("href","/v/vspfiles/photos/SMART-HOLSTER-" + i + ".jpg");           $("#altviews a img").eq(j).attr("src","/v/vspfiles/photos/SMART-HOLSTER-" + i + "S.jpg");          j=parseInt(j)+1;       }       $("#altviews a").eq(6).show();       $("#altviews a img").eq(6).show(); } var brownshFunction= function() {       var j=0;       for(var i=9;i<15;i++)
  • designing Questionnaire UI

    Hi All, I having set of questions stored in db,i am displaying Questions to user using jquery and get response from users, on save saving responses to db. I want to display questions in attractive manner, please help me in achieving it,i am new to jQuery. Thank you, Kavitha 
  • Php echo command does not work in Highslide "html content" Can you help please?

    <?php include ("css/servis.php");?> <!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" /> <link rel="stylesheet" type="text/css" href="highslide/highslide.css" /> <script type="text/javascript" src="highslide/highslide-full.js"></script> <script type="text/javascript" src="highslide/highslide.config.js" charset="utf-8"></script>
  • jQuery Supersized Slider Plugin - How to resize slider images by click on a DOM element

    Hi, I need help referring to jQuery Supersized Slider Plugin, the problem is the following: I'm building a static website that uses a left side scrolling menu. What i want to reach is: if the menu is visible the image on the slider will have a different width instead of when the menu is "hidden". The process is the following: 1) Menu visible, #supersized li img width is 60% 2) Click on the object, menu is animated to be hidden except for the button, #supersixed li img width is 100% And so on. Now,
  • scripts does not work two together

    <link href="css/custom-theme/jquery-ui-1.10.2.custom.css" rel="stylesheet">     <script src="js/jquery-1.9.1.js"></script>     <script src="js/jquery-ui-1.10.2.custom.js"></script>     <script>     $(function() {         $( "#accordion" ).accordion({heightStyle:"content"});         $( "#accordion" ).accordion({collapsible: true});         $( "#accordion" ).accordion({active: false});         $( "#button" ).button();         $( "#radioset" ).buttonset();         });     </script> // together two scripts
  • How can I set the conditions on parsing this data I want?

    I'm parsing some jsonp from an external database which I'm able to pull in fine. However I need the data to full fill certain conditions. The data I'm pulling in is located here: http://stuartwestgate.co.uk/final_project/index.php and I've got the JavaScript pulling the data in: function datahandler(info) { var dataReturn = document.getElementById("dataReturn"); var propertySelector = new Array("uniqueIdentifier", "cameraPicture", "photoAlbum",                                  "videoData", "audioData",
  • How can this work as it does

    This code works as it should but there is one thing that I don't fully understand. In the html markup at the end I have this div   <div id="dlgInsertLots" title="Insert Lots" style="width:500px; display:none"> ... which is not displayed because we have said display:none Now to my question when I click on button with id= InsertLots this function Click_InsertLots is called. function Click_InsertLots()   {       //Create and display dialog dlgInsertLots       $("#dlgInsertLots").dialog({           width:700
  • jQuery Mobile dynamic page event

    Hi, I am created a dynamic page using jquery mobile, how to get an event after create this page and i need an alert from this button this is my code: $("#test").on('click',function(){ var newPage = $("<div data-role=page data-url=testpage><div data-role=header><h1>TEST</h1></div><div data-role=content> <input type='button' value='clic kMe' id='click_me'> </div></div>"); newPage.appendTo( $.mobile.pageContainer ); $.mobile.changePage( newPage ); });
  • How do i use Jquery Autocomplete in an Iframe?

    I am using a Jquery Autocomplete in an Iframe,I cant able to load the data in this frame.How can i load the data in an Iframe?
  • How to prevent jquery.mobile-1.3.1.js autoscroll the whole page with 4 lines

    I am experiencing auto scroll behaviour after page load when i am using jquery.mobile-1.3.1.js. If I remove the script this does not happens.     What to do?   Environment= ie 10 and in a aspx page.   Uses the flip toggle switch,http://api.jquerymobile.com/slider/  
  • Problem accessing dynamically added DOM elements in IE7

    Here's the scenario: I'm using knockout.js to add some repeated structure to a form. When working with IE7 (or even IE9 or IE10 in the IE7 browser mode), jQuery cannot find the element with normal selectors and return empty sets, undefined, or nulls, depending on what you try to access. I first discovered this problem using jquery 1.7.2 (I think), but it persists in 1.9.1. Haven't tried the 2.x branch, because it explicitly does not support IE < 9. I have a very stripped down example reproducing
  • How to learn Javascript and jquery very quickly?

    How to learn Javascript and jquery very quickly?Is any famous  book is available for that?Its urgent
  • div data-role navbar leaving space to the far right

    I added a nice navbar to my app using <div data-role="navbar" data-iconpos="right"> and then using ul,li tags to create a visually pleasing footer nav.  However, to the far right there is a small vertical line about 4px wide that I don't want to appear.  It's not a big deal and doesn't impact functionality but it has been driving me nuts... it's all I can look at now because I'm crazy.  Has anyone else run into this?  How can I get rid of it?
  • How to autohiding the header and footer bars in jquery mobile?

    can anyone tell me how to autohiding the header and footer bars for the large content in jquery mobile? And also another one how to disable the vertical scroll in iphone mobile using jquery mobile?
  • Jquery problem on Internet explorer

    Hello please I have a big issue with my site, currently have tested it on all browser, it seems to do fine on opera, safari, google, and mozilla, but it doesn't work well on internet explorer, this is giving me concern because visitors to my site from explorer is 4th on the list, please you can visit the site on an explorer to get what am saying....don't know what to do? should I redesign another site and transfer the content of this one on to it, because it seems to be having design problems, and
  • form submit on iPhone 3G won't work

    Hello all, i am really getting frustrated. The following HTML- form submit code won't work on iPhone 3G (iOS 4.2.1). For now I have no idias why. Tried also some suggestions fount with google, but it just won't work. fyi:   - The same code work fine on iOS6, Android, and desktop browsers  - js alert does work on iPhone 3G (iOS 4.2.1) (tested it with simple a href) What I already tried:  - update to newest jquery-mobile  - get form by submit  - get form by name Do anyone of you have any idea what
  • Strange bug with last versione of Jquery!

    Hi, i've this html code:          <span id="disponibilita">Disponibilità                 <input type="checkbox" id="illimitata" name="illimitata"/>                 <span id="scrittaIllimi">illimitata</span>                 <span id="oppure"> oppure <input type="number" size="2" id="numeroDisponibili"/> pezzi </span>           </span> and this JS script $('#illimitata').change(function()                         {                            alert('clicked') //<---This is always showed                
  • Jquery ui draggable with multiple drop areas.

    Hi, I used Jquery UI Draggable and Droppable plugin. I have one carousel with draggable elements and 9*18 matrix with droppable cell. Drag and drop works fine on Desktop and IPAD but creates problem for dragging on Samsung galaxy tab and Motorola XOOM due to multiple droppable cells. Please give me solution to work this fine on those device. Thanks in adavance
  • problem in carousel

          Hi I have a dynamic carousel. in which item varies from 2 to 14. Now if i have 2 items, then i want to show as soon as i load the carousel the right arrow disabled. How wud i show it on loading the carousel itself. Below is the code to handle the carousel arrows. function filterArrowButtonWasClicked(event) { var content = $('carousel_content'); var offset = parseInt(content.readAttribute('data-offset'), 10); var no_of_products = parseInt(ACProductBrowser.products.products.length, 10); var remainingProducts
  • jQuery and jQueryUI documentation is not loading on my IP

    Hi all I am wondering, If I try to see documentation of jQuery or jQueryUI in my office (offcource through brouser ) It shows message  If i ping jquery.com through consol it shows unknown host http://jquery.com/ but if I connect through my mobile or I use documentation trough cyber-cafe it works fine, How it is?
  • jquery-1.9.1.min.js is not working with

    I have a snippet <script type="text/javascript"> $(function(){     $("#selectall").click(function(){         $('.mycheckbox').attr('checked',this.checked);                               });        }); </script> <ul>     <li><label><input type="checkbox" id="selectall" /> Select All</label></li>     <li><label><input type="checkbox" name="1" class="mycheckbox" /> 1</label></li>     <li><label><input type="checkbox" name="2" class="mycheckbox" /> 2</label></li>     <li><label><input type="checkbox"
  • Theme Problem?

    How to Fix this? my data theme is gray but it has white. How to fix in css???
  • JvectorMap Region Selection

    e I am trying to reuse the region selection feature of JVectorMap. I am using a custom map (js) file. I have tested it in and it works fine for region selection. Now I need to pass the regions which are selected by the user to the back end vb code. In this case maps.getSelectedRegions() gives an array of the user selected regions. I am not clear on how to pass a javascript array to back end vb code. The window.localstorage as how it is given in the example don't seem to work out here. Can somebody
  • I need a simple example of how to use an <a> link to dis play a modal dialog box

    I have googled and googled but I can't find a simple answer to this question. The example shown on this site show how to display a dialog upon page loading but this is of no use to me. dialogs usually are used to respond to an onClick event. I have seen some that display when a button is clicked but I can't seem to modify that to clicking on a link. This is what I have: <!Doctype html> <html> <head> <title></title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css"
  • Problem on mouseenter

    Hi all,   I have an image with caption text on my website. The caption is hidden by default and only shown when the mouse enters the image. When the mouse leaves the image, the caption fades out.   This all works great except for 2 (little) problems:   1. When a user hovers the caption text (which is overlapping the image), it sees a mouseleave so the caption disappears..   2. The fadein and fadeout are queued so when I quickly move the mouse, it keeps fading in and out. I used clearQueue but it
  • Focusout not working in Safari/Chrome

    I have tried focusout into input field.It was worked fine in all browsers.But normal button focusout event not worked in safari/chrome.Please help me.
  • First Time Using Dialog and it won't show up

    I have been using JQuery for some time but have just started trying to use the dialog widget recently. I must be missing some fundamentals because I can't even get the dialog box to show up.    I have this HTML:               <div id="dialog" title="Add New Need">              This is the dialog box from which new Needs will be added             </div>   Then I have this JQuery code:         $("#dialog").dialog("open")   Is there some type of initialization that needs to be done first??   Can someone
  • Making the SE handle for the UI resizable module lock in the aspect ratio

    The standard resize module with jQuery-UI has a SE grip area for dragging east and south simultaneously, but it allows you to also just drag east or just drag south. So if your user doesn't pay attention to keep dragging at a 45 degree angle, they can easily drag east or south accidentally and destroy the aspect ratio of their object. I'd like to make the SE handle always lock in the aspectRatio  so this doesn't happen. I put together a jsfiddle at http://jsfiddle.net/f9Vwp/2/ that I thought should
  • How to test inner functon in qunit

    I just started with Qunit, and don't know much about it. The problem I'm having is that I have written this function in my code and want to test this using Qunit.      <script> function calc(firstno, secnum) { return firstno + secnum; } function main(firstno, secnum) { return calc(firstno, secnum); } </script> So, how should I test the calc function when I write a test case for  the main function.
  • Problem with Jquery and JqueryUI

    before everything, sorry for my english, i searched for brazilian forum, but i didn´t found anything. PS: I already searched trough the forum for my answer. I have a webpage in my localhost and it works very well, but taking it online, it´s does not work. See http://dhost.info/radicalmakers/Sistema/ the start page, works very well, but after logging (root and 123456) the counter does not work and the home page generate a error when accesing direct after logging (http://dhost.info/radicalmakers/Sistema/home.php).
  • How to float a Div outside an iframe

    Hello guys, okay? I wonder how I do to show a floater that within a inframe on my site but that floater appear on any website and not only within the iframe? I am sending a sample in fiddle floater (code). Remember that this code will stay within a ifram within my site, and when the person clicks on the link on the floater appear throughout the site and not only within the iframe. Is it possible? If so, how? Thank you all! Exempla floater fiddle (is not in iframe on the exemple): http://jsfiddle.net/mG9vf/1/
  • Get the ID of all child nodes from multiple treeview (skip parent node id). How?

    I have used a treeview in a user control which is used multiple times in a single page showing different data. There would be only three levels of nodes (Parent - Child - Sub Child) By default the parent node will be selected. when user click button, is it possible to get all the id of nodes (only child nodes and sub child nodes) which are selected in checkbox and validate for at least one child node to be selected from any treeview on the page ? Note: Have to skip the ID of Parent node of all the
  • DOM Exception with JQuery Disables Debugging

    I created the world's simplest HTML file (and yes, the jquery JS is there locally): <html> <head> <script type="text/javascript" src="jquery-2.0.0.min.js"/> <script type="text/javascript"> function boing() { alert("Boing!"); } </script> </head> <body> <button onclick="boing()">Boing!</button>  </body> </html> If the third line (script including JQuery.js) is removed or commented out, the file behaves as expected. With the script included there is a DOM exception and the button doesn't work.
  • 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