• how to eleminate the duplicate values and get the distinct values using jquery

    iam developing web aplication,   product      no                                                                                              product        no.       x             1                                                                                                   x              1,4,5     y             2                                                                                                   y               2,6     z             3          --------------------------------------------------------->                             
  • Problem with not()

    Hi This is a part of my script which will close a popup:     $("body:not(#popup)").click(function() {          if(popup_zustand == true) {             $("#popup").fadeOut("normal");             $("#hintergrund").fadeOut("normal");             popup_zustand = false;         }     });  You will find the problem on the first line. I want the popup to get closed whenever I click anywhere but not on the popup itself (that means #popup). The way I did, it closes the popup everytime, even when I click on
  • Opening multiple dialogs from a select box

    I can open a dialog when I click on an option in my select box but when i try to open a second one the first one closes. Can't figure out why it is closing. Any help would be appeiciated. Thanks  // Builds list of tests in the update dialog     function loadTests(testList) { // Ctrates dropdown with list of active reports $(testList).find('test').each(function(index, element) { var id = $(this).find('id').text(); var name = $(this).find('name').text(); console.log(id + ':' + name);             <!--
  • offset question

    var p = $( "p:last" ); var offset = p.offset(); p.html( "left: " + offset.left + ", top: " + offset.top ); the above code works just fine , but why is it that when i change the last line to  p.html("left: " + offset.right + ", top: " + offset.top ); i get the following output  left: undefined, top: 52 WHY UNDEFINED , can somebody explain ? Thank u :D 
  • Accept header not working

    I have to call for an web service which requires a Accept header and then it returns a json result. I test the service with "Postman" and got the response succesfully.but its not working when trying to do programatically  $(document).ready(function () {             var xhr = new XMLHttpRequest();             $.ajax({                 url: 'http://102.22.169.113:9763/services/charaka_DataService/select_all_configs_operation?config_key=MAX',                 type: 'GET',                 dataType: 'json',
  • Undefined

    Hey all, I have a very strange problem that I never encountered and which I cannot solve in any way. I have been using JQuery a lot in the past years and I never encountered the issue which I will be describing. Basically I am seeing that when the page does not load completely (because I would be loading everything asynchronously) and I try to refresh a Page or click an HREF link I get an undefined error. Sometimes I the undefined dialog box is shown once, sometimes more than once. However when I
  • Failing miserably to read radio value despite previous examples

    Folks, I have used the example listed on the api page: http://api.jquery.com/val/ // Get the value from a set of radio buttons $( "input:radio[name=bar]:checked" ).val(); but I don't get a value (I get nothing, not "undefined", not 0, nothing). My html is as follows: Yes<input type="radio" name="ProductExtraActive" id="ProductExtraActiveY" value="Y" checked> No<input type="radio" name="ProductExtraActive" id="ProductExtraActiveN" value="N"> Some of my attempts that have returned empty: $( "input:checked"
  • jquery 1.9.1 ajax memory leak on ios7.1.2

    The following code i run on iPhone5 UIWebView and test by Instruments. The imageData.js contains 1.5M image encoded by base64. $.ajax({ url: "js/imageData.js", dataType: "script", cache:false, success: function(){ $("#tryImg").attr("src","data:"+imageBase64); } }); Finding: 1. When calling the data without cache. The WebCore purgeable data cannot release and memory keep expend while ajax repeat call. 2. When ajax is cached. There is only one WebCore purgeable data copy and no memory expend.
  • Jquery file input field change

    Hi, When i click Input file field if field hold a value then dynamically add extra one file input field in jquery with easy example.! let me know for my doubt.! Thanks again, Regards, Laxmanvel
  • Showing & Hiding Stacked Divs on Click

    Hi,    First time poster here…   Have a single page app with a section that has 5 divs stacked on top of each other. It basically looks like this: <div container>       <div 1>       <div 2>       <div 3>       <div 4>       <div 5> </container> Below the divs are a left and right arrow that cycle through the divs infinitely in each direction. I'm trying to to do something like this: var objects = [ '#div1', '#div2', '#rdiv3', '#div4', '#div5']; function moveRight () {                   cycle right
  • Is it possible develop a tracking bus system app?

    Hello, I've seen some Tracking Bus System apps like NextBus, Transit, RocketMan etc I am wondering if it is possible to develop one app like this using jQM?
  • jQuery UI on Linux

    I can get it working on my Windows machine, but the same code just won't run on Linux. My Firefox on both machines are of the latest version. I'm really confused and it's driving me nuts after a couple of hours. I'm also using a custom plugin for checkboxes Full code for it here: http://tutorialzine.com/2011/03/better-check-boxes-jquery-css/ They use different versions of Javascript, I think. I'm not sure if it's a conflict issue or whatever. Could someone please write out a sample of how to properly
  • How to ignore validating Text and Select in jQuery

    Hi, I have been searching the net for the past 5 days trying to find a way to ignore validating hidden fields that are both, select and text, but I was not able to find any supporting form. By Default, jQuery ignores the hidden fields as long as they are text fields, but when I use ignore: "select:visible" the whole validation stops working. What I am trying to do is: when choosing a gender, 5 fields appear depending if the gender is male/female or Company. For some reason the text fields are working
  • jquery onclick drop down menu with text color change - Need Help!

    Hello.  I am a beginner with jscript and jquery.  I need your help to find the error in jquery.  I would greatly appreciate if you could validate and tell me what is wrong with my jquery.  Please find the following pasted codes. I am working on this site(it is in Japanese): http://w01.tp1.jp/~sr09184221/BEST/test2.html My objective is to make the text color of the top navigational bar gets changed when user click on it(the 2nd one from the left).  Now my jquery is successfully changed the color when
  • AJAX Question

    Hi, newbie here. I have developed a website for my company. Each page has a scrolling image gallery at the top that automatically scrolls a series of images, no clicking arrows or buttons. The JavaScript for this gallery was originally developed by Dynamicdrive.com. I have created a similar script using jQuery in a stand alone HTML file and it works great. Now the fun stuff. As I mentioned, this scrolling gallery is at the top of every page for the website. Rather than write the working code to EVERY
  • Load when visible

    I am going to use this bar chart  and need it to load only when visible. As of now I can only have delayed. Any suggestions? 
  • net::ERR_FAILED.. cant cache js files with chrome extensions

    chrome(Version 36.0.1985.125 m)  all of my js files i do call as xhr. if i add my .js files under the cache header of cache manifest..  than my adBlocke and adBlockPlus chrome extensions are blocking all that xhr calls and as results the website look very bad! the only way i've managed to get around this.. is if i adds all that .JS files under NETWORK: header..., but than i lose the cachability. as far as i know, i have no resource name path that contains "ad, banner, .." but i do have a google analytics
  • Get jQuery value into PHP Code

    I have some data assigned in jQuery code that I need to send over to my PHP script and I m not quite sure how to do it. I have a main page "benefit.htm" which calls a JavaScript function "getApplicantInfo()" defined in the source file "applicant_info.js". The get Applicant function then calls "selectBenefit.js" and tries to pass the value "$(#ss_id_other").val()" to the "selectBenefit.js" file as the vaaribale "ss_num" within that file. How can this be accomplished? Source code snippets are included
  • serializeArray() only getting first value

    Hi all - I have some dynamically created HTML that looks like this: <div class="medium-12 columns section center">        <h1> What are the options? </h1>        <textarea name="choice1" class="multioption" placeholder="Type in a choice" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 66px; opacity: 1;"></textarea>&nbsp;   <textarea name="choice2" class="hidden" placeholder="Add another answer..." style="overflow: hidden; word-wrap: break-word; resize: horizontal; height:
  • jquery mobile custom 1.3.1 - button icons not showing

    Hello I'm trying to use jquery mobile custom to remove all the things I don't need (sliders, panels, etc.). I've downloaded jquery mobile custom 1.3.1 with all the options selected and when I look at the result on a browser, everything works (transition, arrow buttons on listviews) but the back, refresh and home buttons don't show up. I used firebug to check if I was missing something but everything seems OK. here is a sample of my code : <link rel='stylesheet' href='./extnew/jquery.mobile.custom.structure.min.css'/> 
  • How can I obtain the width of all the columns in a table

    Hello, Im trying to create an array of all the column widths in a table. I have this but it appears to be only returning the first column.                                                     var $wid = $("#hbdetail td").outerWidth(true);                                   
  • How to call a function in another js file?

    Hi,  It a basic stuff. I have a function test() in a.js and want to call it inside another function in the file b.js, how do I do it? I am not managing to make it working. Message in Eclipse when trying to open the Declaration is that "Current text selection does not resolve to a JavaScript element".
  • Novice

    Hello there,  I am sorry I am French and my English is bad, but I need help.  I do not understand why when widgets are combined, they do not work normal.  thank you very much
  • Passing URL Parameter VIA popup

    Hello. I have a page (test.php) with a  jquery button which opens a dialogue popup box and submits to another page (tast2.php).  For the life of me I cannot retrieve the data in test2.php. I siply want to view the sent data in a form. Can anyone please show me the error of my ways?! test.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  • How to execute function after 2 seconds after the page loads?

    Hello friends, I am again. I need your help please.  My function: <?php  echo recaptcha_get_html($publickey); ?> Idea: Execute function after 2 seconds after the page loads, maybe with ajax or setTimeout ()
  • parent/child selector issues

    Gentlemen, I'm back with a conundrum for you. I've been happily coding away, adding more and more features to my little project, and finding that things are smoother and smoother as I learn more and more. But parent/child selectors aren't working for me and it's causing me grief. Here's the code that I want to work: $("#target > .thick").empty().append('Adding Child Question'); It does nothing! $("#target").children('.thick').empty().append('Adding Child Question'); Also does nothing! However: $(".thick").empty().append('Adding
  • Jquery customized combobox is not working in IE11-DocumentType=7 or 8

    Hi, Please find below link code im using the same in my application. http://www.learningjquery.com/2010/06/a-jquery-ui-combobox-under-the-hood/ Thanks, Shankar
  • jQuerymobile not styling

    Hi all..   this is my first post here, so go easy please :)   I have recently update to IE10 and since them my webpage which uses jquerymobile 1.2.1 stopped working (getting spinning circle all the time).. so I've updated the code to use jquerymobile 1.4.3 and here is where my question come..   the html file is save on an internal company drive (address starts with \\driveName\folder\ ..) if I open the page directly from the drive it works and looks perfectly fine.. BUT   If I link to the html from
  • Listview, changing icon background.

    Hi, using JQM is it possible to change the background colour of the data-icon in a list? So if I have it set to data-theme="a" on the listview I can then change only the background of the data-icon to data-theme="b"? Thanks in advance.
  • Adding content with jQuery

    Hi I've been given the following code (from a book on jQuery) that should add content to the page: $('<div>', {     id: 'specialButton',     text: 'Click Me!',     click: function(){         alert("Advanced jQuery!")     } }).insertBefore('#disclaimer'); The problem is that is doesn't seem to work - I don't see any text and when I check the DOM or when I inspect the page using Chrome's tools for doing this I don't see any error messages in the console but neither do I see the div added to the page.
  • Return data from iframetransport

    I am using the jquery file jquery-iframe-transport to send blobs to a database via an iframe. It works fine except it doesn't seem to be clear on how to get data back (yes it does have a section if you DONT know what kind of data you are getting back, but i know I am getting JSON). http://cmlenz.github.io/jquery-iframe-transport/ This is how data can be received after the post     $("#myform").submit(function() {     $.ajax(this.action, {         data: $(":text", this).serializeArray(),         files:
  • Tailing HTTP output to display in dialog

    I have built an application which allows the user to upload a zip of csv files to insert into a database schema. the files can be big. it can take some time to run, and there could be loads of integrity issues to report, duplicate fields, bad values etc etc.. while ti may be best to just shunt this all off to some back end process which sticks the output of everything into some log in a db which can then be viewed later (a solution I've seen),  it would be nice to read the output as it dribbles out
  • Change height of second portlet whenever the first portlet is toggled

    Hi, Please kindly advise, I want the second portlet to change height to be the same as the first portlet whenever I did a toggle on the first portlet. I used the standard jquery ui portlet, the code below is what I have tried but nothing happens when I toggle the first portlet... Script:     $( ".portlet-toggle" ).click(function() {       var icon = $( this );       icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );       icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();  
  • Why file inputs refresh doesn't work?

    <?php print "<div data-role='fieldset' id='upload'>"; print "<input type='hidden' name='MAX_FILE_SIZE' value='500000'/>"; // print "<div data-role='fieldcontain'>"; // print "<label for='upload[]'>add one img:</label>"; // print "<input type='file' name='upload[]' id='upload1'>"; // print "</div>"; print "<button type='button' id='addUp' name='addUp' data-inline='true'>add a file upload</button>"; print "<button type='button' id='delUp' name='delUp' data-inline='true'>del</button>"; print "</div>";
  • converting xml to json

    Hi how do i convert the following xml to json format //xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response>  <node label='root1' data='first|second|' type='template' id='1' checked="0">     <node label='parent_root1' type='module' id='0' data='parent_data_root1|' checked="0">             <node label='child1_root1' id='1' data='child_root1_1|' checked="0"/>             <node label='child2_root1' id='2' data='child_root1_2|' checked="0"/>              </node>     <node label='parent_root2'
  • how to define Regex to find Each repeating string in a link till the closest preceding character?

    I have the link, http://www.mainlink.com/subcategory/?q=Type%x32|Size%undefined|yollo Aundefined For the link, how to get each "undefined" from the link and for every instance of "undefined" get all the characters from "undefined" to the closest "|"(separator) preceding that undefined and replace with "". Is this even possible?  
  • passing parameter

    I have a table that has a 'edit' image to allow the user to edit that row <img src=Graphics/edit.gif alt='Edit' onClick="NoteEdit(13427) currently using javascript I call the function NoteEdit() passing to it the Reference # of the row I want to edit I am trying to do this in jquery but have no clue at this point the js function is function NoteEdit( iRef ) { frm.NoteRef.value = iRef ; frm.cmd.value = "NOTEEDIT" ; frm.submit() ; }
  • Detect if two rotated divs collide using JQuery

    I would like to detect if two rotated divs are colliding. I know how to do it if they're not rotated, but I don't know how to do it when they actually are. I have tried some collision plugins such as jQuery Collision (http://sourceforge.net/projects/jquerycollision/), but they have not worked when the div is rotated. I have made the rotation of the divs using CSS's transform property.
  • Limit 20 mb phonegap build. Any advice?

    Hi, I have looked at all the threads on the forum but I have not managed to solve my doubt. I am new to this programming for android. I started with jQuery mobile in Dreamwever and everything is going perfect. Choose a template and am changing my will. I've been reading in this forum that if I finish my application with jQuery and compress the folder with all the files in my application when this is over and climb directly to the Adobe website phonegap build from there theoretically could compile. 
  • JQuery Mobile Submission Form Questions

    First let me preface this by saying I'm new to JQuery Mobile and still trying to figure it out. My issue is I have created a submission form and I have a few questions: 1. How do I make certain fields mandatory? 2. I have it set up so that the user selects who they want to send the form to from a drop down menu using the following example of code.  Is this correct? <label for="select-choice-0" class="select">Select:</label> <select name="select-choice-0" id="select-choice-1">     <option value="none"></option>
  • 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