• what is the meaning of following code ?

    can any one explain me meaning of this code please..........  protected void btnSubmit_Click(object sender, EventArgs e)     {         string strSelectedItems = string.Empty;         foreach (var ctrl in Panel1.Controls)         {              if (ctrl is CheckBox)             {                 CheckBox chk = (CheckBox)ctrl;                 if (chk.Checked == true)                 {                     strSelectedItems += chk.Text + ",";                 }             }         }         strSelectedItems
  • Scrolling up and down in Chrome Browser in Android popup disappear for few seconds

    I am using jquery mobile popup in my site. When popup opens with chrome in android device popup behavior slightly changed. Scrolling up and down with popup open, popup disappear for few seconds and comes again. In other browsers it work great only chrome have this problem. It work fine with iOS too. I am working on this problem with long time but not getting any solution. I am using jquery.mobile-1.4.2.js file. Here is the demo page. http://demos.jquerymobile.com/1.4.2/popup/ Steps to reproduce Open
  • how to write a very refined selector

    I am trying to write a selector that selects all <tr> that contain "<code>name</code>" Ive tried : $("tr:contains(<code>"+value+"</code>)"); It only returns only 1 <tr> when in fact there are multiple <tr> that contain these values.
  • get the count of results from a selector

    how would you get the number results from the code below? $("tr:has(<td><code>"+value+"</code></td>)").each(function(index, element){});
  • How to trigger an automatically created button after page load?

    Hi i wanted to make a script which always pushes a certain dynamic created button on IMDB. i'm speaking of the "add to XY list..." button which can be found under each movie page on imdb (for example: http://www.imdb.com/title/tt0106519/?ref_=hm_rec_tti). The button can be found in the dropdown list next to the button "+ Watchlist". (only of course one is logged in and has at least one additional list next to the default watchlist) So what i want is that when i open such a movie page it should automatically
  • Slider Lines up text before fading into next content.

    How can I get my slider to only show one piece of content at time.  It seems to line up my content and fade out to the next content.  I don't want to see my content on my slider all bunched together.http://clarissagriffin.com/test1
  • Toggle and show hide menus in responsive design

    Hello, I have a responsive webpage (template) needs to have three sections (search bar, main menu and sub menu) become toggle menus when page re-size smaller than 768px (or the devise screen size is smaller than 768px). Similar to this page:  I inserted the following code in the bottom of the page - it works but is there a better way or best practice to organize such functions? Many thanks! <script> $(function() { //search bar show hide $(".searchIcon").on("click touchstart", function(e){ e.stopPropagation();
  • Can I detect if a menu option/element dropsdown over another div/element/field

    Hello, I have a menu that when I hover over a link it dropsdown exposing other menu options. On certain screens it drops down over input field. Making them inaccessible. Is there a way I can detect if my dropdown menu option is displaying over another field/div?  
  • jQuery Mobile Selectmenu Widget

    Hi there. I'm currently trying to get the Selectmenu widget running on a project of mine. I want to be able to use the native menu on mobile devices but a custom styled one on Desktops. I tried building a custom build of jquery mobile just for that functionality cause I don't need anything else, so I selected "Selects" and "Selects: Custom menus" in the Mobile Download Builder. However something seems to be missing in the dependencies, because I only get the native menu to function properly. The
  • protractor with JQuery

    Hi, I would like to have a very simple protractor to users, to help to measure angle on a photo. I am apparently very JS beginner but maybe somebody can help? Let's have an image with television and imaginative blue axis x which will not be visible in the JS tool, but it helps me to explain how the tool should work. I would like to measure some angle for example in the profile view, and I will draw the red line and blue angle to show you which angle I want to measure.       Now as the description
  • How can I save a jpg image of a canvas on my server

    Hi, Going on with canvas now I want to save my canvas that I've created on the server in an image. Here is the code that enables me to have the data of the canvas Does some one know how to convert this in a png or jpeg image and save it in a directory please? Thanks! var canvas = document.getElementById("myCanvas_OUT0"); var context = canvas.getContext("2d"); var pixout0 = context.getImageData(0, 0, 75, 100).data; David  ( @webtecgeek   www.thecacaocafe.com )
  • thoubleshooting to applying css.

    here I am making 10 divs and applying amit class, that's working fine showing required output but when I am applying top left position random and random color it's not showing correct output. here my code.     var randval=Math.round(Math.random()*100);     for(i=0;i<10;i++){         mythumb=new thumbnail();         var r=Math.round(Math.random()*99);         var g=Math.round(Math.random()*99);         var b=Math.round(Math.random()*99);         var color=('#'+r+''+g+''+b);         var left=Math.round(Math.random()*300);
  • Get and Set Language for Text Block

    Hi all, I need to get the current users browser language and use it as a variable so that I can translate a block of text. Any clues? Thanks, Kelly
  • How to Show div on multiple class "active"

    Hi,  can anyone help me in this. i need to show $("#content") when 2 checkbox are checked and one span get (active) class on page load or user action. default $("#content") will be hide. if user checked 2 checkbox and span get active class on it. then $("#content") will be shown. ---HTML--- <input type="radio"checked> <input type="radio"> <span>Text</span> <div id="content">content</div>
  • Possible problem with library

    Dear Dir/Madam I am writing to you in concern of my problem with jquery script, that I use in my website. I would be very grateful to you if you could help me.  Подскажите пожалуйста, как решить мою проблему. When I load the page on my website there is the following code: <img id="image_1043" title="Готовые шторы " Дикий Лён" красный" src="http://shop.shtorgrad.ru/components/com_jshopping/files/img_products/00131003700_2_.jpg" alt="Готовые шторы &quot;Дикий Лён&quot; красный" class="zoom" data-zoom-image="http://shop.shtorgrad.ru/components/com_jshopping/files/img_products/full_00131003700_2_.jpg"
  • how to get the pixel data from a canvas filter it and create a 2 canvas.

    Hello, My question is how can I get the values of the pixels in a canvas stored in a 1 dimension array. I have been able to know the values of the pixel of a photo and transform them in canvas. It seems stupid but I cannot find on the web how to get the data of a canvas. In the example here I load a first canvas from images=> OK Now I want to get the data from the first canvas to filter it and create a second canvas. Can some one help me please? <!DOCTYPE html> <html> <head> <title> EE Q_28383720
  • adding click-event to self on click-event

    See the example: http://jsfiddle.net/2DpBG/1/ I would like to have the alert fired on the second click. Any ideas?
  • animation sequences within divs

    hi all, just wondering if anyone can shed some light on how to animate elements within divs on a page - so that when the animation is triggered it plays and then reverses/plays back to the beginning? sorry that my description is a little vague - a good example of what i mean can be found here i particularly like the way that the books on the right hand side react to a mouse over... ...and... before anyone points out the obvious - i appreciate that it 'is' done using flash - but i was wondering if
  • fixed lines of paragraph tag

    Hi All, I have a requirement where i have some text in the <p> tag... Now i want to show only two lines of the p tag and truncate the remaining content in the <p> tag . This can be achieved by fixing the height p tag but i have a anchor tag at the end which also should fit into the two lines.... <p>lorem ipsum lorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum<a href="#">anchor link</a></p> This is
  • what is the need of CHANGE() event in jQuery ?

    Can anyone help in this ? How to use change() event in jQuery . Explain me what is the need of it by giving an example. Thanks
  • Append <a href> with some string and "alt" of the child image

    I have been trying to accomplish something. For every a tag enclosing an images, I am trying to append some strings along with the 'alt' attribute of the image to the end of <a> tag's href attribute based on the condition that,  if a:contains('?') then it will appended with "&text"  else , append with "?text" my script goes like this, <script> $(document).ready(function() { $(document).ready(function() { $('a').each(function() { var baoBao = $('a').children('img').attr('alt');                     
  • Jquery email validaiton not working

    Hi; I want this to validate if this is valid email AND it is not empty but it doesn't work! What am I doing wrong? Thanks $( "#txt_email" ).focusout(function() {       var pattern = new RegExp(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/);      if(pattern.test($('#txt_email').val()) || $("#txt_email").val().length == 0 )         {           $("#txt_email").css("background-color", "white");         }       else         {           $("#txt_email").css("background-color", "pink");         }         });
  • How to transfer draggables between sortable lists

    Hi all, I am trying to transfer an item that is in a sortable list (shopping cart), into another sortable list (shopping cart) but i am not sure on how to do this. Code: JSFiddle Any help is greatly appreciated and thank you in advance!
  • Jquery validation plug in issue with if/else. Jake help

    Hi; I use Jquery validation class . Since I generate text boxes based on user's choice, I need to make the validation only happen when the user has checked a box. So I change the origial code to what I thought should work but it doesn't. This is the part I added:     if ($('input.txt_firstname').is(':checked')) Please advice. Thanks This is the orignal code: $().ready(function () {     // validate signup form on keyup and submit     $("#template_form").validate(     {         rules:         {    
  • anchor tag is not working when trying load html in to div

      Hi          I have some html which I saved in .html file. I am trying to load this using below jquery function       $('#portfolio').load('Grocery.html'); .      When I am using above code my anchor tag is not working. Please help me on resolving this issue.               <table style="border-collapse: separate; border-spacing:70px 5px;" >          <tr>              <th>                  Flour&Grains              </th>               <th>                  Rice&Poha              </th>              
  • autoComplete Source

    I am using the following code to implement my autoComplete...     $('.autoDate').autocomplete({         minLength: 1,         autofocus: true,         source: function(request, response) {             $.getJSON("files_json/auto_Timesheets_Date.php", { tsEmpNum: $('#ts_EmpNum').val() }, response);           },         //source: 'files_json/auto_Timesheets_Date.php?tsEmpNum=' + $('#ts_EmpNum').val();         select:function(evt, ui)             {                 form_edit.ts_Date.value = ui.item.tsDate;
  • Cycle: Start the slideshow from the thumbnail image clicked on

    I' have a masonry thumbnail gallery, and the thumbnails link to a jQuery Cycle slideshow. Originally, whatever thumbnail you click on the slideshow starts with the first slide. I'd like to make it so when you click on a thumbnail, it goes to the slideshow starting with that thumbnail image. I'm trying "startingSlide" option of Cycle. Also, the site is built with Wordpress.  This is in my thumbnail gallery template:  <div class="m_item"> <a href="http://paraboladesignstudio.ipage.com/yahaira/fashion/fashion-slideshow/?thumb=1">
  • spritely question

    hi folks, does anyone knows if there is a possibility to change the size (shrink) of the object with the jquery plugin spritely? stephan
  • jValidate and custom errorClass

    jValidate is a great plugin, but unfortunately is lacking some decent documentation. So may be this is a trivial question, but could not find an answer on the official docs. I have the following code $("#dettaglio-articolo").validate({ errorElement: "div",     wrapper: "div",  // a wrapper around the error message     errorClass: 'red-border', errorPlacement: function(error, element) { }, rules: {     price: "price-validator",       ...       } }); When the element does not validate the 'errorClass'
  • simple image manager

    Dears All, Hello; I'm looking for simple image manager "preview - validate - rotate -cancel" (client-side without uploading) Jquery cross-browsing something like new flicker uploader, So please advice me...  Regards,
  • Datepicker move to bot

    Hi, im need help, is necessary that the datepicker always opens down. Where im need to change to do this? Thanks.
  • Issue with the document.getElementById('editor') in JQuery

    All, I have a JQuery script as follow: <script>          $(document).ready(function() {                   var buttonSelected = '${docEditorReviewCaseData.buttonSelected}';          console.log(buttonSelected);                    if(buttonSelected == 'Save'){                         console.log(document.getElementById('editor'));             document.getElementById('editor').SaveURL('${docEditorReviewCaseData.saveReviewCaseXMLURL}');      }      }); </script> When I run this jsp page in IE 8 with
  • How to show ajax loader until all the images are load

    HI, I am doing a image gallery using the jquery mobile. I am fetching the images from a remote database. Some how i managed to show the ajax loader, but it not working fine. I need to show the loader until all my images are completely loaded. Looking forward for a solution. Thanks
  • view information from div slideup and slidedown

    I'm working on pagination using table called pagination.php, pagination have 10 rows per page, each row have a link called "Edit" to allow me to view more information by redirect to info.php page. And now instead of redirect to info.php, i want to show in same page pagination.php, meaning to show information inside of div slide up and slide down using jquery slidetoggle, see the code ..... $(document).ready(function(){ $("#edit").click(function(){ $(".edit-page").slideToggle("slow"); });}); and
  • is it possible to change JQM's default icon? ( locally hosted files)

    I locally hosted jQuery's CSS files. In the images folder, I changed the icons-18-white.png, and altered the default shape: it works fine in Chrome environment when I refresh my browser. But when I build my application on devices ( iPhone or Android), it's still pick up the old default icon. First, I thought it is cache issue, but I've tried to clean the project, but does't work. any suggestions?
  • <source> tag...how to change src?

    Do jquery support <source> tag? How do update the src attribute? <video autoplay> <source src="myvid.mp4"> <source src="myvid.ogg"> </video>
  • Tooltip not working the latest jQuery

    Please see my Fiddle example when I change the jQuery version to the newest one the Tooltip does not work. http://jsfiddle.net/mahmoudjava/yjL5P/ My development I have jQuery v1.11.0 and jQuery UI v1.10.4. Thanks,
  • Use of getPreventDefault() is deprecated. Use defaultPrevented instead

    On my html page , on click of a checkbox i am getting error Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. @ https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js:3 due to this error, the checkbox is not getting checked.I am using firefox browser. my html code for this checkbox is <input type="checkbox" name="recipient.Subsidiary" value="true" id="recipient.Subsidiary" /> <input type="hidden" id="__checkbox_recipient.Subsidiary" name="__checkbox_recipient.Subsidiary"
  • Jqplot & JSON data from Ajax Request

    Hi, I wolud like to have jqplot graph with actual data beside on user choose in select (html element- alias comobobx). I found this working example (from this thread), but still can not understand, why my code doesn't work: http://jsfiddle.net/A24cm/ edit: problem is, that data must be vartype array, not string... but how to build array on returning string? data.split(';').each(function(){ ... new Array(left, right) }); ¯\_(ツ)_/¯
  • Datepicker - user access

    Hi there, I've created some pages using the excellent DatePicker and everything works fine on my development PC where I have both the code and web server (IIS 5.1).   However, when I set up the site on a server (Win Server 2003/IIS 6) there appears to be a permissions issue.  When I sign in to the site, I have to enter my credential again when I first encounter a page with a datepicker on it for the button and calendar to be available.  Other users don't even get that option and have to type the
  • 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