• javascript: history.go(-1);location.reload(true);

    The below Java script work fine for IE but not in Chrome javascript: history.go(-1);     location.reload(true); Is there a script available in jquery for chrome? it looks simple but it is not. Please help me
  • servlet called

    I would appreciate someone's expertise to solve my dilemma. I have a website which uses AJAX, jQuery and MySql DB. The code populates a table upon Document.ready call (MVC used: jsp calls Servlet with ($.get controller_1() ) and servlet calls class file (queries DB), then servlet response back to main jsp page. This code dynamically creates a button/( ie to look like a hyperlink). When the button is clicked jQuery used $.get controller_2 ( a different servlet). Unfortunately, the click function sends
  • Finding out the opacity of an image?

    Hi, if I have four images in set up like this: <div id="holder"> <img src="assets/1.png" style="opacity:1"; <img src="assets/2.png" style="opacity:1"; <img src="assets/3.png" style="opacity:0.3"; <img src="assets/4.png" style="opacity:1"; </div> Is it possible to filter and return the number of images that has not got its opacity set to 1? Thanks in advance.
  • About Ajax and echo/json/ problem

    Hi: I meet a problem about the usage of Ajax when seeing the example about treetable, the code example is in http://jsfiddle.net/djlerman/bbj8k9pe/,  and the main problem is about Ajax and url: '/echo/json/', the code snippet is as following: function getNodeViaAjax(parentNodeID) {     $("#loadingImage").show();     debugger;     // ajax should be modified to only get childNode data from selected nodeID     // was created this way to work in jsFiddle     $.ajax({         type: 'POST',         url:
  • jQuery Mobile and iPhoneX

    Hi,   Has anyone tried using jQuery Mobile (inside a hybrid application) on iPhoneX? I'm trying to use the safe areas and set headers, content and body styling but it does not seem to be working. I'm using following styles following this link: Safe area constants: .ui-page .ui-header {     /* Status bar height on iOS 10 */     padding-top: 20px;       /* Status bar height on iOS 11.0 */     padding-top: constant(safe-area-inset-top);       /* Status bar height on iOS 11+ */     padding-top: env(safe-area-inset-top);
  • Using ajaxSend to capture requests from parent page within an iframe

    I have a web page that exists on my webserver (that I cannot modify) that sends ajax requests. Within that page is an iFrame which contains a page that I CAN change that exists within the same domain. From within that iFrame, I am trying to use ajaxSend to capture what the parent page is sending but it does not seem to be working. Is this possible to do from the iframe? Here is the javascript that exists in the page within the iframe. <script src="Scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript">
  • Infinite self referring loop using setTimeout() stops unintentional

    Hello Community, it's me again, cannot see the wood for the trees. I want to repeat an image fade mechanism in an infinite loop. Here is the essential code snipped:     function sliderLoadNext () {                    activeImageSliderEntry++;         if ( activeImageSliderEntry == numberOfTitleImages ) { activeImageSliderEntry = 0 };                     loadUpcomingSliderEntry();             setTimeout( sliderLoadNext , 3000 );                                 } The function sliderLoadNext () is called
  • Jquery Memory Leak

    We are using jquery 3.1.1 to develop ASP.NET mvc application after 10 mins of continous usage on IE11 we are encountring "Out of memory" issue because of various memory leaks in jquery3.1.1.js at various places. Our application heavy using jquery callback functions. Any one have any idea to fix these leaks?
  • How to append both single and double quotes in same function

    Hi, I am trying to append the single quote and double quote in the same function, but I am unsuccessful. Please help me in doing this. HTML: <input type="button" value="click" id="clickc" onclick="helloMan()"/> <div id="mainDiv"></div> JAVASCRIPT: function helloMan(){       var dialogue = "I'am Suren and I asked him a question, for which he replied, "I don't know !"";       getName(dialogue); }      function getName(name){       $("#mainDiv").append("<div>"+name+"</div>"); } Thanks in advance,  Surendar
  • Jquery UI 1.12.1 uses .unique which is deprecated in jquery 3.2.1

    I am updating a web application to the latest versions of jQuery and jQueryUI. The jQuery 3.0.0 migration tool warns that .unique( is deprecated and should be replaced with .uniqueSort(.  Message from JQMigrate console "JQMIGRATE: jQuery.unique is deprecated, use jQuery.uniqueSort"  In the unminified calling jQueryUI the function is on line 512  function processClassString( classes, checkOption ) { var current, i; for ( i = 0; i < classes.length; i++ ) { current = that.classesElementLookup[ classes[
  • How to increase the performance of assigning height (DOM manipulation)?

    I have a case which I need to manipulate the height property on the fly. For that matter, I got a solution by using this code: $('table tbody tr td:first-child').each(function(){     var height = $(this).height();     $(this).parent().find('td').height(height);   });It works fine and the calculation is precisely correct. However, for the performance, it's pretty slow because in the real situation, the table can have up to 100 rows. Therefore, I tried to ameliorate it by using native js and some other
  • jQuery datatables

    Hola qué tal comunidad busco sabiduría de su parte con esta duda que tengo... Tengo un datatable dinámico con dos campos <Tr> <Th>Nombre</Th> </Tr> <Tbody> <Tr> <Td class="edición">Juan</td> </Tr> Bien así voy llenando mi datatable de manera dinámica...mi datatable tiene más columnas okey y en este caso la clase sigue siendo edición.. Ahora fijence yo quiero que cuando haga clic en cualquier fila del datatable automáticamente aparezca un input de tipo texto, pueda escribir sobre el input y al precionar
  • change @keyframe CSS dynamically

    Then! I am new here.  First topic and i need you help. Thank you to who can help-me. I am trying create a slideShow plugin for praticate same and stopped in a trouble. I have the below code:  var arrayJson =  {    '0%' : { 'margin-left':'-0%'},  '33%' : { 'margin-left':'-0%'},  '38%' : { 'margin-left':'-100%'},  '66%' :{ 'margin-left':'-100%'},  '71%' : { 'margin-left':'-200%'},  100%' : { 'margin-left':'-200%'}, } And i need change a keyframe css called slide: <styles>   .......   @keyframe slide
  • put slide show in sequence

    Good morning people! I have a difficult question to solve. Actually, I do not even want a solution, but I teach: So imagine an ul with, say, 5 li's. These li's are inline-block. I'll apply a slideShow effect on them so they run from right to left. So far without mysteries: It works well. My question is this: For each li that runs, a smooth running effect is applied from -0% to -100% in its (normal) position. This, of course, added 100 to 100 to each passing li. No surprise. The doubt: When the li's
  • File upload >4GB failing on IE using ajaxForm

    Hi,       I am trying to upload the file >4GB by submitting the formdata using .ajaxForm but getting an arithmetic exception as "Arithmetic result exceeded 32 bits" in jquery.form.js on IE, no issues on chrome.
  • Finding number of images that are not hidden on the second page on document ready.

    Hi, I have created two pages, one has a link to the second that has some images on.  I want to be able to hide images on the second page when the document is first shown and then when the button on the first page is pressed return the number of images that are not hidden - in this case two? https://jsfiddle.net/a4poster/j8w5qwta/178/ Can I do this as I am stumped.
  • jQuery HTML parser corrupts script content that looks like HTML tags

    Hi, my plugin below is suffering from the following known issue in jQuery: jQuery HTML parser corrupts script content that looks like HTML tags My first question is: Has there been a fix in the meantime? Thanks in advance! jQuery Ajaxify Plugin: https://4nf.org/
  • Những ưu điểm vượt trội của truyền hình FPT

    Những ưu điểm vượt trội của truyền hình FPT Chương trình truyền hình internet FPT hiện nay đã phổ biến khắp mọi nơi và nhiều người đã biết đến vai trò vô cùng quan trọng của nó. Chương trình truyền hình FPT sẽ giúp bạn mang đến cho người dùng một hệ thống thông tin, dịch vụ giải trí rất đa dạng và phong phú. Đây là sản phẩm tích hợp được giữa truyền hình với công nghệ giải trí hiện đại, thông minh nhất giúp người dùng thoải mái giải trí cùng gia đình và bạn bè. Ngoài ra, bạn cũng có thể lựa chọn
  • BlockUI form problem in Safari

    I have BlockUI implemented in a credit card form... it works great in every browser, except for Safari. The BlockUI doesn't pop up at all in Safari, and there are no errors in the console. I've researched this, and I've seen suggestions about setting a time out... that works half way... it seems to be walking a thin line by setting a random time on it... and then, it somehow is interfering with error messaging that appears on page reload if the credit card form was not filled out correctly... and
  • Problem since updating to iOS11

    Hi I've been a gallery script on my website to create a touch swipe gallery and everything has worked ok until the iOS 11 update. I am now finding I have images opening at different sizes and not scaling as before. everything worked ok on earlier iOS versions. Any ideas on what might be causing this? Thanks
  • Can't target thumbnails

    Here is my site: http://yardenharel.triplebit.com/product/%D7%97%D7%95%D7%9C%D7%A6%D7%94-8/ I need to alert when any of the thumbnails gallery images(right to the main image) is clicked like so: $('ul.slides li').each(function() {     $(this).on("click", function(){      alert('thumbnail clicked');  }); But this doesn't happen.. Can someone advise please? Thx
  • unblock or unblockUI will not work outside of a setTimeout block

    I am trying to use either block/unblock or blockUI/unblockUI to display a "In progress, please wait ..." message while columns are being reordered in a jqGrid with lots of rows (1500) and about 15 columns. I started out using a setTimeout block like the blockUI demos use - it was easier as it showed the progress box a bit longer when I would work with small tables with only a few rows. Got everything looking great. Then I removed the setTimeout and even when things take quite a while for the columns
  • Higlight days on a datepicker from database

    Hi all i see this sample(and others) https://www.codexworld.com/jquery-ui-datepicker-highlight-specific-dates/ but not understand how to get dates form a database, in the example have static Dates: var eventDates = {}; eventDates[ new Date( '08/07/2016' )] = new Date( '08/07/2016' ); eventDates[ new Date( '08/12/2016' )] = new Date( '08/12/2016' ); eventDates[ new Date( '08/18/2016' )] = new Date( '08/18/2016' ); eventDates[ new Date( '08/23/2016' )] = new Date( '08/23/2016' ); as i understand initially
  • Return the index when two data-attributes match.

    Hi, is it possible to do the following: https://jsfiddle.net/vs2jfqaa/151/ I want to return the index when the filter matches the criteria of two data-attributes: I tried with something like this but it doesn't work: var a1 = $("#page2").find(".resultsBox img[data-ba*='smith'],[data-cd*='london'").filter(... So if the data-ba="jones" & data-cd="london" it will return the index? Thanks.
  • Target Element After Added to DOM Inside Window Resize

    I can't seem to target an element created by ajax and then added to the DOM.  The targeting is done when a window resize is done. My code: $(window).resize(function() {   var mythis = $('#wrapperdiv #newdiv');   console.log('Mythis: ' , mythis); // Returns - n []  ie. not in dom }); Is there an easy way to target mythis  ?
  • Nested Menu Height problem noticed in Chrome....

    Using Chrome (v61.0.3163.100 (Official Build) (32-bit). http://jqueryui.com/menu/ Notice the extra space above Electronics and Music in the menu. If you remove:  list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") from the styling of .ui-menu .ui-menu-item it gets rid of the extra space at the top. Is that a Chrome bug?  Don't see the issue in IE 11 or Firefox 56.
  • Editable and resizable

    I have completed drag and drop but not finding anything to resolve this "I want to make my button resizable and after it drops on canvas nd want to change name of it " Example : <Button>click</button> User can change the value what he wants and make it of any size
  • Accordion no longer has CSS applied

    Yesterday, my accordion's CSS stopped working. There is no longer any formatting being displayed. Also, the H3 header for the panel that follows the active panel no longer wraps, but displays next to the last item in the active panel rather than below it. I went to the url for the CSS, and it no longer showed any CSS for an active panel (content-active). Can anyone explain to me what has happened? No one edited the code of the accordion before this occurred.
  • Popup problem with Chrome 62

    Hello, Popups are no longer displayed since Chrome 62 update :  http://api.jquerymobile.com/popup/ I'm on Ubuntu 17.10 with Chrome  62.0.3202.75 (Official Build) (64-bit) Did you have this problem ? Arnaud
  • attr | value

    trying to understand the following var val = $(this).attr('colspan') | x)  if there is no col span and x is 5 then val will be 5?  if there is a colspan of say 2 and x is 5 then val will be 7? Is there a way to say val = colspan if colspan exists else val = x? not add them together if both exist?
  • Get value of multiple simple slider jquery ui

    Hi, I have 2 simple sliders and I would like when I move one of them display the value of each slider into the <span id="result"></span> but my code below doesn't work.  I have a numeric and a text slider. Please find my code: http://jsfiddle.net/NetRS/136/ What is it wrong into my code? Thank you for your help. Paul
  • About Ajax and function closure problem

    Hi: I have a problem about the ajax and function closure. The following is my code snippets.  var Handler = function (size, cur) {                     return $.ajax({                         type: 'POST',                         dataType: "json", //for post method                         url: './Demo.aspx/Demo',                         contentType: 'application/json; charset=utf-8',                         data: JSON.stringify({ p1: size, p2: cur }),                         error: function (error)
  • api fire

    Hi, How would you get an api to fire not when the page loads but when the dropdown form element (including its little downward arrow) is clicked on? My current working script is Thanks in advance     <script>         var blah= $('#BlahID');         var blah_api_url = 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';         jQuery.get(blah_api_url, function (data) {             $(data).each(function (key, val) {                 console.log(key);                 blah($("<option>").attr('value',
  • I am getting a odd bug and I wanted to see if jQuery can solve it for me

    In summery.  When you play a video and go to the next page then push back the audio from the video is still playing. Can jQuery refresh this or suppress it somehow without breaking anything else =D. https://bydesigndental.com/ Here is how to recreate the issue: Follow these steps to recreate the problem:  1) On the home page, click Watch the Video. Let it play a few seconds.  2) Close the video (click the X in the top right corner).  3) Navigate to another page -- any page is fine.  4) Click the
  • Can't click link button to trigger popup after return to page

    I have a link button that, when entering my Manage Job page for the first time (and in most cases) works fine and triggers the popup as expected: <a href="#dialogCompletion" data-rel="popup" data-position-to="window" data-transition="pop" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-icon-calendar ui-btn-icon-left ui-btn-b" aria-haspopup="true" aria-owns="dialogCompletion" aria-expanded="false">Job Complete</a> When clicked, my popup launches, presents a date and a button, I can change the
  • jquery ui resizable do not work after droppable with ie

    hi, i get a problem when with ie, it is ok with chrome and firefox. when i drag the div#drag from div#hellotest to div#hellotest2, then with ie  the div#drag can not resizable, and i found something, when  i add a div with  style="height: 700px"  when div#hellotest is out off the browser screen it is being ok.  anyone can help me to solve it? thanks <div style="height: 700px">   if i delete this div  it can not resizable   </div> <div id="hellotest">   <div id="drag" style="width: 30px; height: 30px">
  • Searching element BEFORE another element

    Assume I have the following code <div class="top"> <div>.aaa...</div> <div class="foobar">.bbb..</div> <div>.ccc..</div> </div> How can I address with jQuery the <div> element BEFORE the <div> element with class="foobar"? With pure CSS this isn't possible AFAIK. But in Javascript it should be possible by a function like previousElementSibling(). Maybe there is a shorter, better way in jQuery?  Peter
  • DatePicker - Using minDate and maxDate

    I'm fairly new to jQuery. I'm trying to use Datepicker to create two date boxes on my form and to allow the user to easily enter a date range. Here is my current code: <td class="invisible input-daterange input-group" id="datepicker" data-date-format='d-M-yy' data-date-start-date="23-Oct-17" data-date-end-date="22-Feb-18" data-date-min-date="5-Apr-16" data-date-max-date="31-Dec-17"> <input type="text" class="input-sm form-control datepick inline" style="display: inline-block; margin-left: 50px;"
  • ASP.NET page with update panel, fade a div

    For the life of me I can't get this to work. I have a form with a textbox, which has autopostback. When the postback occurs I want the div to fade. (eventually I want it to fade in, pause and then fade out, but for now lets just get the fade out working) My script (put in document.ready so it will work with partial postback): $(document).ready(function () {             function FadeMessage() {                 $('#MessageContainer').fadeOut("slow"); };             }); The div: <div class="message"
  • Set value in nested div

    Hi All, Below is criteria of nested div. Using jquery code I need to replace highlighted "JOSEPH MARY JACINTHA" with "Test" Any help will be highly appreciable Regards
  • 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