• 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);                                   
  • Cannot change cursor position for Inputs in Iframe

    In iOS, tapping to change the cursor position stops working when the Jquery Mobile plugin is present for any inputs inside an iframe (e.g. standard input fields and contenteditables) I've created a couple of example jsbins to demonstrate the issue,  Without JQuery Mobile, input in Iframe  http://jsbin.com/xonijuse/4/edit With JQuery Mobile http://jsbin.com/qudeniwo/1/edit For example, an input with multiple words and cursor at the very end of the last word: "hello world|" Expected behavior for tapping
  • 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.
  • asp.net textbox validation

    Hallo everyone, I am trying to validate an ASP.NET Textbox but the validate plugnin doesn't work. As far as I understand, the validate method works with the name parameter of html tag. Unfortunately ASP.NET server control do not have this property, just ID , that is perfectly working as reference for normal Jquery. Any idea how to validate ASP.NET Textbox? Luca
  • 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'
  • Survey Cross Mobile Development

    Hello, for my exam I'm doing a survey about cross mobile development. I would really appreciate if you could help me by answering these questions: https://docs.google.com/forms/d/1-7g73imPL8aWq7YZEreOYnA0Bm7e8UTMOzZTm73ynDM/viewform Thanks alot!
  • 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>
  • jQuery Cycle slideshow not executed properly with server side returned output

    Hi, I have already posted the problem here: http://stackoverflow.com/questions/24972393/cycle-plugin-slideshow-not-executed-but-images-shown-above-each-other Does anyone know how to deal with the server side returned output such that the Plugin executes it properly? Thanks!
  • Please explain this IIFE?

    hi Have a look at this code : <script> (function ( $ ) { var shade = "#556b2f"; $.fn.greenify = function() { this.css( "color", shade ); return this; }; }( jQuery ));  </script> <body> <span id ="id1">Enter Your name</span> <br /> <p id = "x">BYE</a>  </body> IIFE return in red does not have any effect on any element in <body> tag.So what is the use of IIFE here? Can't we make "this function" instead of IIFE? What exactly "this" in IIFE refers to? Waiting for your response!!!!! Regards  Varun
  • Add Cookie Function to jQuery Color Changer

    Hello Friends, I have been trying to make a simplified colorswitcher with jQuery, for my site. I have managed to swicth the colors of links and background. Here is the fiddle : Fiddle Here is the code i have used : HTML <div class="colormenu"> <ul class="colchange"> <li class='red'><a href='#' class='click' data-color='#e74c3c'></a></li> <li class='green'><a href='#' class='click' data-color='#2ecc71'></a></li> <li class='blue'><a href='#' class='click' data-color='#3498db'></a></li> <li class='yellow'><a
  • controlling movie sequence and combining with sprite sheets

    hi all, having a real nightmare trying to make something work out... trying to explain it may be a task in itself!!!! so i want to use the "sprites.zip" method to create a navigation/menu that will play the sprite sheets either when the link is rolledover/clicked or if the sprite itself is rolledover/clicked... the attached files seem to work okay for this part of things... when i duplicate the link/sprite it works fine. sooo.... what i am trying to do and struggling to get to grips with is this...
  • $.text() feature request

    I think it is nice to have wrapper for document.createTextNode('text'). It can be  $.text('text') or even $('"text"') My current use case: var label = image.after(document.createTextNode('text')); will be var label = image.after($.text('text'));
  • 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