• Jquery hide not working in my asp.net 4.0 app

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JQexp2.aspx.cs" Inherits="JQexp2" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title></title>     <script src="Scripts/jquery-1.7.2.js"></script>     <script src="Scripts/jquery-1.7.2.min.js"></script>     <script>         $(document).ready(function () {             $("#hide").click(function () {                                 $("p").hide();                             });                     }); </script> </head>
  • How to add a row to an html table between two rows

    Hi, i have an html table with n rows. Each row has an + icon. When the user klıcks on the + icon i need to add new rows to the table after the current one where the user has clicks on the icon. Is it possible to do this via jquery and if yes how can i achieve this? Regards Yavuz
  • how can i add a different calls to each row ?

    hello. i am trying to add a different class to each row so that i can set a different equal height for each row. for example row1 row1 row1 row2 row2 row2 row3 row3 row3 i have tried the following but its not working how i want it to. i would rather it so that the first 3 have a class of row1 then the next 3 have a class of row 2 etc... this is my list of 12 divs <div class="box-grid">       <div class="item"></div>       <div class="item"></div>       <div class="item"></div>       <div class="item"></div>
  • Creating a jquery slider

    Hi Does anyone know of a good  tutorial that's easy to understand that will allow me to create a slider and the be able to go on a phone or tablet and swipe the image to go to the next one
  • Show checkbox on hover over

    I have a table which has rows that has one column in which data is displayed as link and in another column of that row,i have a checkbox .I am looking for a jquery in which on hover over link,the check box is displayed and then i can check the checkbox to perform action. <td> <span id="hoverspan"><s:a href="#" onclick="DisplaySelectedPart('%{#stat.index+1}')" ><s:label id="internalNumber" value="%{internalNumber}"  /></s:a></span> <span id="chkdel"><s:checkbox  name="selectBox" value="checked"  onclick="DeleteSelectedPart('%{#stat.index+1}')" 
  • Text color change in Jquery

    Hi, i have a text need to change text color as red it should be there upto 4 seconds and it should go to black color for 10 sec again it should come red etc. Let me know how to proceed with this in Jquery.
  • Listview List-Divider Icon

    Anyone know the best way to add an icon to a list-divider? Taking a look at the code, icons are only added to links automatically. However, they are wrapped and classes assign that relate to links specifically. So I didn't know if someone had already figured out the CSS needed to mimic icons in a list-divider. Thanks!
  • Cycle plugin: how to add content on top of the image slides?

    I need to add a link to T&C on each image (as images in the slider are special offers). My images are already wrapped in <a> I tried using maps (by incorporating the "Terms and Cond apply" text in the image itself), but they do not work in IE (usemap element cannot be used inside <a> elements. So alternative idea might be to add a small <div> using Javascript on each image, kind of the same way Cycle plugin adds the bullets for navigating between images? Not sure how to do that, any help would be
  • Mixitup + Select Dropdown Menu

    Hey All, I've been searching high and low all day and night and cannot get this simple feature to work as I'm a bit rusty at this javascript, Here is what I'm trying to accomplish below:  http://jsfiddle.net/dimerbox/5aQJQ/1/ I would like to link the Option Select Dropdown to sort instead of just Li's, if this isn't possible should I just get an li dropdown menu to complete this effect? I assume it's something to do with the this function  $(function(){ $('#Grid').mixitup(); }); Thanks all for your
  • JQuery popup iframe with cookies problem

    I am making a popup system with bPopup with an iFrame loaded and I would like to load the popup only if it hasn't been loaded yet. Here is the part of the code that, in my opinion, should do it, but somehow it doesn't work. <script> // Semicolon (;) to ensure closing of earlier scripting // Encapsulation // $ is assigned to jQuery ; var cvalue = $.cookie('xVisited'); if (cvalue != true) { $.cookie('xVisited', 'true'); (function($) { $(window).bind('load', function (e) { // DOM Ready $(function()
  • Autocomplete Issue

    Greetings people, i'm giving my best to create proper autocomplete function. But guess what, i'm stuck. I've managed to create JSON array which gives output like this: [{"label":"$name","id":"$id","name":"$name"} Now i need jquery function that will fill these fields after i search for name in <input name="name"> so id will be hidden field and it should be filled with $id when i select $name in name. guess html should look like: <input type="hidden" name="id"><input name="name"> Hope you understood
  • Problem passing Jquery to Jquery Mobile with a map

    Hi, I am making an application Js, JQ and JQM, to show a route on a map loaded from a GPX file.   Testing without JQM I load the map with the route without problems, with this code:   [js]<script>      function initialize() {           var route1Latlng = new google.maps.LatLng(-33.7610590,18.9616790);           var mapOptions = {                center: route1Latlng,                zoom: 11,                //mapTypeId: google.maps.MapTypeId.ROADMAP                mapTypeId: google.maps.MapTypeId.TERRAIN
  • open appropriate accordion from external page link

    Hi, I am confident that  I am in the right  forum for my question to be resolved. Thanks in advance I have implemented jquery accordion in my HTML page. My requirement is that i have a external page in which the accordion heading are given as links, and if i click any link in the external page, it should open the appropriate accordion in the accordion page. My JS code where accordion is implemented ------------------------------------------------------------------------ $('#page').on('click','ul#productdetails.accordian
  • How can i get Json data in php which pass through ajax function

    Hi, I have a ajax function like below, which will send a json data to php file, How can i get these data in php file ?             $.ajax({                 type: 'POST',                 url: 'data11.php',                 data: { json: ko.toJSON(viewModel) },                                                      success: function () {                                                        }             }); My Json data is something like below {"participants":[{"NoPrticiField":1,"empname":"gfh","designation":"fh","email":"fgh"},{"NoPrticiField":2,"empname":"fgh","designation":"fgh","email":"fgh"}]}:
  • Best Resources for Jquery

    Hi All, I wanted to learn Jquery from beginning.Can u please suggest some important urls and resources. Regards, Praveen
  • Text Color change in Jquery for gif image

    Hi, I am having below gif images below that some text is there for every image. when ever red highlighted text also should highlight as red for appropriate image.   <div class="twelve columns" id="show">       <div class="three columns">           <p id="cartton1">A train ride goes bad because of unexpected illness.</p>      </div>          <div class="three columns">           <p id="cartton2">Shouldn’t healthcare be available everywhere?</p> </div>          <div class="three columns">          
  • jQuery Mobile AJAX navigation to a page having a dialog

    JQM AJAX navigation doesn't work well when navigating to a page with an in-page dialog? page1.aspx: <div data-role="page"> <div data-role="header">Page 1</div> <div data-role="content"> <a href='page2.aspx'>Click here</a> </div> </div>​ page2.aspx: <div data-role="page"> <div data-role="header">Page 2</div> <div data-role="content"> <a href='#popup' data-rel="dialog">Popup</a> </div> </div>​ <div data-role="dialog" id='popup'> <!-- This is not loaded on AJAX navigation --> <div data-role="header">Page
  • how to wait for tracking request to finish

    I have 2 links on my page link1 - displays an video player overlay when clicked but for SEO support Search engines would follow the link to a video detail page (video1.htm). <a href="video1.htm" onclick="watchVideo(1);return false;">watch video</a> link 2 - redirects the browser to the home page <a href="home.htm">return home</a> I'm attaching a click event for tracking to every link $(document).on("click", "a", track); in the track() function I'm making an asynchronous request to an image for tracking
  • Lightbox2 - images display on new page but not in lightbox dialog box

    Hi, I'm trying to get lightbox2 working on my web site but when I click on my thumbnail image which should then expand into a larger image within the lightbox dialog box what I get is a new page opening containing only the image. I'm not sure if my directory structure has something to do with it. The page that contains my lightbox calling code is in: gallery\2014\jam050214.html My lightbox js, css, directories are in: lightbox\ My code to include lightbox is:   <script src="../../lightboxs/js/jquery-1.10.2.min.js"></script>
  • jquery form plugin define charset on multipart

    Hello all. I'm  using the jquery plugin form provided by malsup (http://malsup.com/jquery/) and I have some problems on the encoding of some special character (e.g. àòì). I need to set the charset on the ajaxsubmit for a multipart form. I tried to set the correct contenType on the object passed to the ajaxSubmit function as described below: ajaxSubmit({dataType:"json",type:"POST",contentType: "multipart/form-data;charset=UTF-8"...}) But sniffing on the chrome network console I don't see the charset
  • Disable buttons and navbar buttons on pageinit

    Hi I would like to enable/disable buttons (including navbar buttons) on pageinit based on result from ajax call. Is there away to handle button like this? Here is my code <body> <div data-role="page" data-theme="b"> <div data-role="header" data-theme="b"> <a href="../Portal.aspx" rel="external" data-icon="home">Portal</a> <h1>Edit Custom Request</h1> <a data-icon="bars" href='#popHeadMenu' data-inline='true'> <div id="popHeadMenu" style='visibility: hidden; height: 20px; background-color: #336699;
  • Save content of div for paging back without loading the content again

    Hi together, I’m trying to save the content from a div to a javascript variable before loading new content to the div. The goal is that I get the whole content of a previous page with all user entries and several jquery UI Widgets to the div without loading the data from the server again. I’m trying to solve the problem with jQuery clone, but I have several problems with the jquery UI Widgets und jqGrid. Here is my first try: test.html <script type="text/javascript"> var currentPage = 0; var url
  • Keith Wood Countdown Timer

    Hi all, I am completely new to jQuery so I don't know how to read the codes. I got this countdown timer from Keith Wood. And I would like to change the end date. Not sure how to go about doing it. I had searched in other forums such as stackoverflow and within this forum but I cannot find the exact code to change. I found these links thus far: http://stackoverflow.com/questions/7887516/how-to-target-certain-time-using-jquery-countdown-http-keith-wood-name-count https://forum.jquery.com/topic/need-help-to-change-keith-wood-countdown-timer
  • jquery plugin invoke callback not properly

    I write a simple jq plugin, it main function is : popup a window, on the window I have a button, suppose this button's name is btn. click that button btn, then hide window and invoke the callback function.   My code is here : jquery plugin callback function invoke error Here, I found the callBack function can not be invoked properly. For example, if I click #show first, the callback function show me 111111. then, I click #more, the callback function still show me 111111 if I click #more first, got
  • toggle side menu

    hi! I want to toggle 5 side menus with the same class, but this code doesn't work really good. If I open and close each one after the next, its fine, but if I want to open the next during one is open, i have to click two times. (i know it's because of the variable-counter) The problem is, that i have no clue if there is a better solution. Thanks for your support! $(document).ready(function() { var number = 0;     $('.side_lash').click(function(){     if(number == 0){       $(this).parent('.side_menu').animate({
  • jQuery code does not execute when page runs

    Hi all, I am working on a responsive CMS site and partly utilizing jQuery to re-position elements depending on the browser size. I am using media queries to detect the browser size and add a class to the body depending on that result. I then use jQuery to move elements depending on what class is on the body tag. The below code is my attempt at doing so, but it will not work. I do get "ready" in the console, so I know it is entering the .ready function. Also, I tried to add an else statement at the
  • Adding div to Panel

    I have a panel that I would like to contain some buttons and links. The buttons will act like links taking the user to anchors on the page. The links will act as a tag cloud: click a tag and that text will be highlighted on the page. So I have this code: <div id="pagediv" data-role="page" data-theme="a">          <div id="panel1" data-role="panel" data-position="left" data-display="reveal" data-theme="a">                     <div data-role="controlgroup" data-mini="true">          <a href="#1" class="ui-btn
  • what's wrong with this js?

    Hello, I have a js function that loops through and resolves selected cases.  I'm trying to allocate 3 seconds for each case to resolve before attempting to resolve the next case.  Here's the function I'm using: function ResolveCases(statusCode) {     var caseIds = SelectedControlSelectedItemIds;     alert('About to Resolve/Close ' + caseIds.length + ' case(s)');     for(var i=0; i<caseIds.length; i++)      {          var isLast = (i === (caseIds.length - 1));          setTimeout(function() { debugger;
  • Menu UL LI how to separate opacity from background image and text

    Hi, I am working with a menu using background images and ul li. The idea is to build the menu with text in li and a little image in background. For the image I put opacity 0.4 but the problem is that at the same time the opacity of the text becomes 0.4 Can someone tell me how to separate the opacity of the text (1) and of the background-image (0.4) please? I don't know if I must use a jquery function or if I can do that only with CSS you can check the page to http://www.davidinlove.com/ here is the
  • mastercard.us template

    hey guyz . can someone help me i need a template that looks just like this . mastercard.us
  • JQuery datepicker browser compatibility issue

     In IE, Datepicker is accepting dd/mm/yyyy format, but in Chrome is not accepting. How to fix this issue for all browser?
  • Question about cross-domain ajax

    Hello, Im calling an ajax program through the $.ajax method. The ajax program is within the the same domain, but attempts communication with the paypal server. A cross-domain call. Would this be considered a cross-domain call? Should I be calling the same-domain program with the jsonp data-type? Im getting a apache 500 error but cant determine why. Both program are terminating normally. And I can prove it ... 
  • refresh page on button click in child page without closing child page

    Dear all, I have a.aspx page which has a tab container (tab container has 6 tabs, and each tab is associated to different user controls  which means a.aspx has references of pages 1.ascx,2.ascx,3.ascx, 4.ascx,5.ascx and 6.ascx) 5th tab (i.e 5.ascx) has a grid view and on the grid view I have a link button. On click of the link button, I am opening another .aspx page (i.e b.aspx) as a  JQuery Modal popup page b.aspx has a tab container ( this tab container has 3 tabs, and each tab is associated to
  • jquery ui slider how to set handle color ?

    with code below i can set the the color of the slider handle after a document event . but it doesnt set the color at pageload.  How to set the color of the slider handle at pageload. $(document).ready(function () { $(function () { $("#slider").slider({ orientation: "horizontal", min: 0, max: 256, value: 127, //slide: refreshSwatch, //change: refreshSwatch }); }); $(".ui-slider-handle ui-state-default ui-corner-all").css("background-color", "#FF0000") });
  • animate text in a image using jquery

    Hi, I have a windows 8 tile like image and in that image iam displaying some title.But i want to animate that title when i mouse hover on that image.Can u please send me the code sample how to do this using jquery. regards, praveen 
  • Can we get the MAC Address of a PC using jQuery or javascript

    I'm working on a php application and i need to take the MAC Adress of the client PC. Is there any way to find the MAC Adress of a PC using jQuery or javascript??
  • Creating an html from jquery

    Is it possible for someone to help me create an html from a jquery. I have a jquery script and I would like to incorporate it into an html file. But I'm not sure how to go about it. here is my jquery script var directionVAR = "left"; var timeout = 0; function rotateBanners(eqval){     eqval = Number(eqval);     var bannercount = $(".portfolio-single").length;     var active_banner = $(".portfolio-active");         if(active_banner.css("left") != "0px") return false;         if(eqval > bannercount-1){
  • Post Back possabilities

    My form asks the user to check "I agree: terms and conditions", where t & c links to a page with the full text. At the bottom of the text is a button that says "Agree". I want the user to click "Agree" and be returned to the login page with "I agree" checked. How do I do that in my php environment using jQuery?
  • Dynamic Contextmenu using JQGRID

    Hi Friends, I am working on a task, where I have to create a dynamic contextmenu and dynamic subcontext menu. all I am getting from the back end is a JSON response. I was successful with creating a dynamic context menu, but having troubles with creating dynamic context menu. any one can help me here? I am using JqGrid. here is the  JS part function loadDxGrid() { $(gridId.dx).jqGrid({ data : jqGridJsonResponse.dx, colNames : diagnosisColNames, colModel : diagnosisColModel, jsonReader : { id : 'rowId',
  • Long keypress errors in input text fields

    Hello, im working on a mobile app with jquery mobile 1.4.0 and phonegap. The application itself works, but i have a problem with text input fields: Normally you can press a key on the keypad longer, to get the special-letter or number above of the same key. E.g.: - Longpress "q" to get "1" - Longpress "w" to get "2" - Longpress "e" to get "3" ... But on my mobile device such a longpress fires allways both signs, like - "q" AND a few milliseconds later "1" so i get "q1" - "w" AND a few milliseconds
  • 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