Errors 502 and 504 JQUERY UI WEBSITE
Hello What Happens with JQUERY UI WebSite ??? At least 1 week it does not work : Error 502 or 504 !! I cannot access to the documentation about Widget Factory !! Will come back it soon ??? Who can I contact ?? Greetings
cannot get data from ajax
hello i was creating live username check for learning here my code login.php $.ajax({ url: "cek_username.php", type: "post", data: "username="+username, success: function(data){ if(data == 0) { $("#idErr").html("username tersedia"); $("#id_daftar").css("outline-color","green"); } else {
what is the precedence of datatype while comparison.
hi when i compair in javascript like so , then it converts one type to another type. which is based on precedence. can i get link of that precedence. if ("2"<3) { }
ContextMenu how to build menu conditionally
I'm new to contextMenu. I'm trying to build a simple example using the example code below. My question is: how can I use JS code to conditionally allow or disallow a menu item? For example, if I didn't want the Delete menu item based on a JS variable, how would I code that? I tried adding an if statement in the menu but items: {} didn't like that. Thank you... $(function(){ $.contextMenu({ selector: '.context-menu-one', trigger: 'left', callback: function(key, options) { var m = "clicked: " + key;
how can i pause video when switch tab or minimized the browser?
how can i pause video when switch tab or minimized the browser?
Loaded Click Event
I am using ajax to load html code snippet containing links (id = "edit") into a main class = "container". The problem is that I can't fire the loaded link event, here's the example: code : html + html loaded : <main class="container"> <div class="profile row"> ... <table> ... <a id="edit">...</a> code : jquery : $ (document) .ready (function () { $ ("# edit"). click (function () { alerta ("Johnny"); }); });
change the background color of class
How to make that when you click on class fon of box1, the background color of class sun of box1 must to changes, and when you click on class fon of box2, the background color of class sun of box 2 must to changes. At the moment, the background color of boxes 1 and 2 is changing, although only click on one of the boxes. <style> .container { display: flex; } .sun{ margin-top: -6rem; margin-left: auto; margin-right: auto; width: 10rem; height: 14rem;
is it possible to disable allcontrols of the form except the one has focus.
hi, i want to disable all the elements except the text box whose entry is wrong. ,the problem is, when ever some one enters wrong txt in textbox , i set the focus to the element , i do not want the user to click any other control unless her corrects the entry which is mandatory.
is there any comman event or function which can detect error of the page at one place.
hi, in asp.net i noticed that there is an event which can capture all errors at one place. u do not have to put try catch at all the places. similarly if i am using jquery , is there any event or functionality which can give me this facility.
how to find the funciton of jquery are cross browser compitable or not.
hi, i have used this line $(selector).parent().parent(); I want to know that how many browsers support it. note: the html properties used by java scripts browser compatibility is at MDN. but my question is about the function of j query.
Which version of jQueryUI compatbile with jQuery 3.5.1
Which version of jQueryUI compatbile with jQuery 3.5.1? I am current using jQueryUI v1.11.4
Ideas how to ROTATE (2) images Simultaneously from one slider?
Hi everyone, I'm trying to work with Jquery to have (2) images, the same image actually, side by side abutting each other with a slider control for rotate and scale where changing the value of either slider will cause both images to respond simultaneously. I'm working from a project called ImageEditor, with the code I've modified already from it below. From what I can tell being totally new to JQuery, I need to get this line of code: oninput="editor.rotateImage(this.value);" to not just control "editor"
hide banner from screen
Hi please help, I am trying to hide a banner on my page see line 6 below my code is getting into the else but it's not hiding the banner var covidId = $(".covid-popup").attr('id'); //POPUP ONLY ONCE if(localStorage.getItem('popState') != 'shown'){ $('#'+ covidId +'').show(); } else { $('#'+ covidId +'').hide(); }
is there any website or library which checks runtime errors or cross browser errors.
hi, is there any website or library exists which can tel me that this property or function would not run on particular browser. and at least if it could tel the runtime errors ?
jQuery ajax - best practice
I've been using jQuery ajax to load contents onto my website via events for a while. Is this still the best approach or should I be using something like fetch to do this? fetch appears to only use json and my content pages are html pages.
how to cancle click event of a button, which executes after lostfocus of textbox element.
hi, I have a textbox and a button, with this I have written a focusout event of textbox which calls a function which returns true or false. and I have written one click event of the button. now I want to cancel the click event of the button if the function which is called in focusout returns false else it should follow the natural chain of events. and the problem is worse because I have many buttons and checkboxes which have got click events or other events too. so I want to find the next event
html(response) not working
I have success: function (response) { jQuery("#message_" + Update_Parts[1]).html(response).fadeOut('slow'); }, As part of an Ajax call jQuery("#message_" + Update_Parts[1]).html(response).fadeOut('slow'); Works the first time but not if I click the button again without refreshing the page The ajax works but I don't get a message showing. It is as thought "#message_" + Update_Parts[1] doesn't exist after the first time. What am I doing
Using ajax to retrieve http response codes from list of urls
Hi, I am looking for a script (or help with a script) that would allow me to test whether or not a list of urls are valid (Status code 200 etc). Preferably I would like to use a php script to make a number of ajax calls from within a loop passing the url to be checked to an ajax function which in turn returns the status code back to the php script. I don't have a problem with the php side of things, but I am at a loss with the ajax functions. Everything I have managed to find either doesn't work
Merge JS files into one
Hi We use a lot of Jquery plugins and own JS scripts on out website. I am serching simple solution for merging all files into one file. What can you recommend? Thanks a lot
Best way for creating html pages with Jquery?
Hi I am thinking about the best solution for filling рtml template with Data from API(json). For example, my API returns 100 rows of comments. how its better to insert in template? One-by-one groing through each row of json array add insert in html? Or create entire HTML element in Jquery and insert in HTML entire HTML code? Maybe there is some best practice on how to work with Html templates + API(json) Thanks a lot!
Download problem
Hi, I have a problem downloading jQuery slider.I use windows 10 Despite many attempts at different times I get message 502 https://download.jqueryui.com/download Restarting computer, changed server still get the same page. Help please.
documentation of order of event of dom
i used change event of textbox and found the change , then blur and then focusout fires in an order, so i wanted to know all set of orders of events which exist and fires in Dom. so pls send me link of that domcumentaiton.
I need to save my selected option in localstorage
I need to save my selected option in localstorage. When i refresh my page, the last selected option will be marked.
jquery validation plugin - required = false NOT stopping validation of field
Hi Team, I have a complex form and mostly everything works as I intend (and understand). The final little problem occurs when I change the value of a pulldown menu and then expect the validation to behave differently for one field. the rule: evidence_uc: { required: function(element) { var ret = (catVal != 8 && catVal != 9); console.log(ret); return ret; }, min: 1 }, and the
which method is fast and safe to get data- attribtes value
hi i can get the data attribute using following pls tel me which one is fast and safe . specally i want to know that the jquery method the third one will tervers the whole dom to find the element or it will just convert the element's object into jquery and would get the data- attributes vlaue? the obj is a variable where i have passed the this key word onclick="fun(this.getAttribute('data-uid') and inside function fun i have used all three ways to get the value of data-uid 1) var uid= obj.getAttribute('data-uid')
jQuery Conflict With Fancybox 2.1.7 Script?
Hi all. I know that this is not really a jQuery issue but this is causing me some grief as I don't know how resolve this. Hopefully someone might know the answer. I am using Bootstrap 4 modal to launch a modal dialog using the following code: $("#myModalContent").modal('show'); Everything was working fine until I had to use another JS script called Fancybox 2.1.7. Now, everytime I try to launch the modal, I am getting the following error in the console. Uncaught TypeError: elem.setAttribute is not
image preloading -- advice neeed
Hi, I have a page which features fifty small ( < 10KB) images. They need to all be available to a script which makes them visible according to class. Any recommendations about jQ plugins, or the best way?... maybe this, in the head of the page? $(window).load( function(){ $.preloadImages = function() { for (var i = 0; i < arguments.length; i++) { $("<img />").attr("src", arguments[i]); } $.preloadImages("folder1/img1.jpg",// "folder1/img50.jpg"); }; });
Hello, new to jqueryMobile
Hello, i try to learn this cool thing, but i have strange problems.For example, the navigation bar is not aligned correct, also a popup.Maybe i do it something wrong. I try to put some screenshots.Thank you !!
jquery datepicker vertical scroll bar for month and year dropdown
Hi All, I am using Jquery Datepicker which i have to show also in responsive design. When i verified the date calendar in mobile layout and expand the month dropdown. It does not have the scroll bar and showing a long month name dropdown like in below screen shot. As you can see in above image month name is going in down and there is no scroll. Same issue is present for Year dropdown also.. Below is the piece of code used to initialize above calendar $(document).ready(function () {
how to add input fields and dropdown and sub drop down by click on button using javascript or jquery
I am trying to add input fields and one dropdown by click on button,one more thing is if I select dropdown value another sub dropdown should show based on the selected value of first dropdown. https://jsfiddle.net/xbf2vryc/ I was trying to add fields it has done and remove also happening and sub dropdown is not happening. in that case if select test1 sub drop down is coming like test11,test12, then when select second row field test2 it is coming test21,test22 sub dropdown but first row test11,test12 sub
I used code listview from ^^^ but Do Not align OK... have to call : .listview('refresh');
https://demos.jquerymobile.com/1.4.5/listview/ I load data from API to appear in jQmobile 1.4.5 listview I used code listview from ^^^ but Do Not align OK... have to call : $('ul#listAttractions').listview('refresh'); how call this??? fails this ^^^ , well ??? <ul id="listAttractions" data-role="listview" data-inset="true" class="ui-listview ui-listview-inset ui-corner-all ui-shadow"><li><a href="get-details.html?location_id=527731"> <img
Disable or enabled dialog button when a checkbox is selected
Hi, I'm having problem trying to disable or enable dialog button when checkbox is selected. this is my fiddle: http://jsfiddle.net/tegatti/jnxoydfg/8/ Thanks in advance. Tegatti
event handling
Hi @all, im new to jquery - fourth day - n searching for a function which allows me to start different actions by multiple clicks. Code until yet is this: <script> $(document).ready(function(){ $("#button_toggle").click(function(){ $("div").toggleClass("toggle_black"); if (document.getElementById('eins').innerHTML === "Dies ist ein Paragraph") $("#eins").text($("#eins").text() + " im dark-mode"); if (document.getElementById('zwei').innerHTML
jQuery get json with nested arrays
Hi, I'm trying to access the following json data: The script that I'm attempting to use: var chart = new ApexCharts(document.querySelector("#chart2"), options); chart.render(); $.getJSON('url', function(data) { jQuery.each(data.results.events.dataUpdates, function (i, result) { chartdata[i] = []; chartdata[i]['text'] = result['date']; chartdata[i]['text'] = result['old']; chart.updateSeries([{ name: 'Sales',
jQuery scrollTo goess beyond target section
I am using the jQuery scrollTo function to scroll to sections on my website. However, the first click after the page loads, always scrolls beyond the target section but subsequent clicks behaves normal. Any ideas how I can fix this. My code looks like below. $("body").on('click', "#links li", function () { var scrollHash = $(this).attr("class"); $('html, body').animate({ scrollTop: $("#" + scrollHash + " " + "h2").offset().top - 10, }, 1000); window.location.hash =
how to hide submit button unlit all the input,select,textarea is field after filling the value the submit button should be shown . how to do it using jquery???
how to hide submit button until all the input,select are field and after filling the value the submit button should be shown . how to do it using jquery???
Redirect page if not in frame using JQuery
Hello and thank you for reading my topic. I'd like to detect whether or not the current page that isn't the index page is in a frame, and if not, redirect to the index page and then replace a frame with the document originally trying to be accessed. Using JQuery I can detect whether or not the page is in a frame and whether or not the page is the index page just fine: Frameset of index.html: <frameset rows="100%, 0%" frameborder="0"> <frame src="content.html" name="content" noresize> <frame src="audio.html"
windows.location is copying the old path with new one
I have a page login.aspx, it has a link <a href= "webfolder/abc.aspx" on click it opens properly but when i open another link which is on abc.aspx, link <a href = "webfolder/abc1.aspx"> this one does not opens instead. it copies webfolder/webfoldertwoice. i wanted to understand the process, because i tried windows.location and equivalent but they all behaved in then same way.
cannot call methods on dialog prior to initialization
I'm receiving this error in the console log. jquery-1.12.1.min.js:2 Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'destroy' at Function.error (jquery-1.12.1.min.js:2) at HTMLDivElement.<anonymous> (jquery-ui-1.12.1.min.js:6) at Function.each (jquery-1.12.1.min.js:2) at n.fn.init.each (jquery-1.12.1.min.js:2) at n.fn.init.t.fn.<computed> [as dialog] (jquery-ui-1.12.1.min.js:6) at HTMLDivElement.OK (new_appointment.php:901)
How do I get the latest built min.js version with npm or a link?
I'm writing our build script and I want to be able to get the latest stable version. Npm package does not seem to have a dist/ directory with the min.js, is there a direct link perhaps?
Next Page