Registering if functions have happened
Please help me! I am super frustrated right now. I have been online for hours looking through forums but nothing works. I have checked my code 50 times and I have no faults except for some variables not yet used. I am trying to make a multimedia story where I want to make a path through the story using jquery. I have set up functions stating where divs should be on the page when that function is called. The problem is that I have to check which parts of the story have been visited and stupid code
Not displaying all the items
I have an area (fly-out) which is closed by default, when the use clicks the menu icon there is a fly-out and the accordion should show all items and take up the div space, but it seems to be missing one, when I click the third item, it replaces it and shows the missing one, I have tried lots of suggestions with regards to refresh but none have worked - here is the code and the CSS <asp:Content ID="dashboardcontent" ContentPlaceHolderID="sitecontent" runat="server">
<div>
<div id="mastersidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
Can I Pass a Resource through Function? OR Can I Send Various Variables to Another Function as a Resource?
I am not an experienced developer with JQuery/Javascript. Currently I am having an issue maintaining same contents through out various processes without querying database again and again. With JQuery/Javascript, I am sure this is easy although I do not know the best way of doing it. Below is an example of what I want: //SCRIPT 1 //......Get some data from database eg: var fname = "Donald"; var lname = "Trump"; var user_id = 1; var address = "White House"; resource = fname, lname, user_id, address;
Need help start contributing!
Hlo everyone! i am Vaibhav Gupta, new to jQuery openSource contribution. i have cloned the source code and build it successfully But i am stuck where to start from. Can you please direct me from where can i start contributing. Though i am not sure if its the right platform to ask this, still any help will really be appreciated.
Triggering Click event in .aspx page
New to JQuery and trying to create some functionality. I have a Visual Studio 2008 project. I have two buttons. I need the click event to fire one of two buttons based on whether either of them is visible when the enter key is pressed. The buttons are not visible by default. I have code that shows or hides them based on user options. I need to add an if statement that will account for whether one or the other is visible. I do have a text box so maybe attach this to the focus of the text box so if
cookies
I have a JSON.parse(Cookies.get and a Cookies.set within an onclick function. I also have a JSON.parse(Cookies.get for the same cookie in a different onclick function. If I do the first onclick then the second onclick on the same page the second one isn't picking up the new version of the cookie unless the page is refreshed. Is there a way of forcing the second JSON.parse(Cookies.get to pick up the new version of the cookie without a page refresh? Thanks
How add a jQuery that makes an AJAX call to https://www.google.com?
Hi. I want to add a jQuery in my html page that makes an AJAX call to pages like https://www.google.com and it shows the content on my html page? How can I do that? I tried it myself to write a code but it didn't work
Hot to properly use cache in jQuery
Hello. I'm trying to understand how to properly use caching in jQuery. I have a few cases. Case A: $('.element').fadeIn(); $('.element.active').fadeOut(); I'm assigning element to a variable. How to add class 'active' to this variable? Case B: $('.element').fadeIn(); $('.element > .child').fadeIn(); How to use .find() method to select direct child of the element? Case C: $('.element').fadeIn(); $('.element, .other-element').fadeIn(); How to add other element separated by comas to a variable?
add commas to number without typing in field
I have five text fields on a page. Numbers are entered into the first four and the fifth displays the total. Is there any way using jquery to format the number in this fifth textfield with commas? The first four fields are formatted fine using the code below. Of course this is not work on my jsfiddle. I hate it when that happens but am not worries about that. My main question is, is there a way to use jquery to format a textfield with numbers using commas, where the number is dynamically generated
Jquery Ajax Post Limits
I am trying to post a html page which has a content length of 1842451, not sure if this in bytes. I get a 504 error. I set the maxAllowedContentLength to 1572864000 bytes and the maxRequestLenght to 1572864. I even set this in my webconfig <add key="aspnet:MaxJsonDeserializerMembers" value="10000000" /> But still I am getting the 504 error. Is there a limit that JQuery Ajax can post, as my request never hits my webservices. I am using NancyFX. How do I get this to work?
Ideas for a demo JQuery application?
Can somebody give me some ideas for application which I could develop on my own and demonstrate it when I apply for a job? Of course I should be using JQuery. I could also use server side PHP with Openshift set up.
Problem sing jquery bootgrid on a html table with rowspan
Hi everybody, I have a html table with many rospans but when I try to page this table with the Jquery function bootgrid, the reported table loses all the rowspans option. Here is the code I used on my jsp: <div id="content" class="pure-form"> <s:if test="%{listaDelegati.size()>0}"> <table id="grid" class="table table-condensed table-hover table-striped"> <thead> <tr> <th data-column-id="nome" ><fmt:message key="label.form.ricerca.delegati.nome.title"/></th> <th data-column-id="cognome"
validation
Dear Sir I did validation for first name in my project, But in the same form if I am validating to last name the validation is not performing well it is only focussing to that last name field. Any one can guess me how to do this and the following code is here " <script> $(document).ready(function(){ $("button").click(function(e){ //validating firstname var firstname = $("#fname").val(); var regfname = /^[a-zA-Z]+$/; if(!firstname.match(regfname) || firstname.length==0){ $("#fname_validation").show();
Translate to jQuery ?
I was wondering if it's possible to translate this to jQuery ?
upload photo using $.ajax
my target is upload an image on server directly without submit button and in the same time show the preview. my html: <form id='userPhoto' name='userPhoto' method="post" enctype="multipart/form-data"> <div class="profile-info"> <div class="profile-photo"> <div class="image-upload"> <div class="image-upload"> <label for="fileToUpload"> <img id='image' src="{{url('assets/globals/img/faces/9.jpg')}}"
Sending post data and file data in the same ajax request
Hello, everyone! I'm currently experiencing a problem where I don't know how to send text data via post and files. Here is my code: $(".form").submit(function(e) { e.preventDefault(); // avoid to execute the actual submit of the form. var url = $(this).attr("action"); // the script where you handle the form input. $.ajax({ type: "POST", url: url, data: $("#form").serialize(), // serializes the form's elements. success: function(data)
Select2 - Getting select2.full.min.js?ver=1.0.0:2 Uncaught TypeError: Cannot read property 'length' of undefined error
I think I'm almost there! I am getting expected result from my php script for the following code; but for some reason, I'm getting following error: select2.full.min.js?ver=1.0.0:2 Uncaught TypeError: Cannot read property 'length' of undefined at d (select2.full.min.js?ver=1.0.0:2) ----- $("#jobSkills").select2({ ajax: { url: ajax_object.ajax_url + "?action=autoSkills", dataType: 'json', delay: 250, type: 'POST', data: function (params) {
Jquery.filer
Can someone show me how to save the file to the database when Choose file button is chosen and have it displayed as link after it is saved using the jquery.filer? This is what my co-worker has just lets you select and it saves it to memory attached the code.
Error in documentation for jQuery.map
In the callback passed to the .map function the first parameter is the index not the element.
JQuery documentation offline?
I would like to have JQuery documentation off-line. Could I download it from somewhere?
Changing a select option with jquery
I'm changing a select element from another select element with jquery, the code works perfectly once but doesn't after that. Basically it's a simple, change a select option, if one particular value is selected change a different select option (to select one particular option and disable that field). From the second time onwards the field still disables, but it doesn't select the desired option. What am I missing here? $("#<portlet:namespace />orderType").change(function() { var orderVar = $( "#<portlet:namespace
Regarding about the folowing CSS file
Dear All I am newbie in j query and my question is about , I have added date-picker plugin in my project and Now I got jqueryui.js file it is working fine but I am unable to get the css file in order to display it in correct format and in correct UI , Please anyone can help me how to get tha css file. and the link is here "http://jqueryui.com/datepicker/". That file link is here. "<link rel="stylesheet" href="/resources/demos/style.css">"
bxSlider Multiple Sliders - Prev / Next Fails
Hello, When I used one slider all works perfectly. However, introducing the second slider causes all prev / next buttons to fail to work. I have created a video which makes it more obvious. I should say, when using only one slider, it works perfectly. I have verified the Slider ID's are unique https://youtu.be/3qfkBsbod9I Thank you. Jay CompuMatter
I want to cancel or remove http://code.jquery.com/jquery-migrate-1.1.1.js in HTML
Help me. This is annoying, I always got an error when I access my site. There always show a warning in the console about Jquery Migrate and I really want to remove this. When I take a look at my HTML code, there was no jquery migrate so I confused of how to remove this. Please help. JQMIGRATE: Logging is active (index):588 Uncaught TypeError: $(...).tabs is not a function
Retrieve record to be edited
Hello: So I had a function which builds a table in HTML for display on my html document. I wanted to take advantage of jQuery ListView, so I changed it from table to listview. This is the function: function fnShowClassesTable(data) { var str = "<ul data-role='listview' data-inset='true'>"; str += "<li data-role='list-divider' role='heading'>My Active Programs</li>" for(var i = 0; i < data.length; i++) { str += "<li class='btnEditProg'><a href='#' data-transition='slide'><h3>" + data[i].doc._id
jQuery Autocomplete, how do I populate the dropdown list?
Okay, for the life of me, I can't figure out how to populate the drop-down list with {logo}{name} using the response I'm getting: - $("#jobCompanyName").autocomplete({ source: function(request,response) { $.getJSON("https://autocomplete.clearbit.com/v1/companies/suggest?query=" + request.term, function(data) { response(data); }) }, minLength: 2, dataType: 'json', autoFocus: true, select: function(event, ui) { var selectedObj = ui.content["0"].name;
Help with on click on mobile <select> tag
https://youtu.be/0eTAQTmgTC0 This is my problem with the website I am working on for inventory of Magic cards. I don't want mobile users to have to click on the option they want twice to get the data to load. If you watch the video you can see what I mean. Here is my code below. <!doctype html> <html lang="en"> <head> <title> Magic Inventory </title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="css/table.css"> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
draggable/sortable position problem over iframe
Hi. I have a annoying problem with some draggable element witch is connected to an sortable list in an iframe. The draggable items are located on the right side, when i drag one and move it to the sortable it suddenly jumps about 300px to the right side. This happens when it's connected and moved to the other list in the dom. In this moment css left jumps from (for example) -1000px (because i moved it from the right side to the left) to 300px oriented on the left side of the iframe. I have no idea
How to show/hide an image when value of an object changes between 1 and 0
I have been learning jQuery from this forum and from Jake Cigar... Thanks a lot to Jake and this forum administrators.... And have been trying to design web-page to connect with PLC (which has a web-server in it), and control and monitor industrial processes... I need a little help... So i have been trying this method of showing a green image when motor is on, and showing a red image when motor is off... motor on and off are bool value, that is 1 and 0. So ProcessStatus is 1 when motor is on, and
How to display a value using id multiple times in a html document
If I am using an id to display a value in a HTML document, and if i use the same id to display the same value in another part of the screen, its not working... see below <label id="batchwt">NA</label> ----------------- I am using this to show the batch weight and now if i use this same ID = ("#bathwt") to display the same value in another part of the same HTML document, say in a table.. it doesn't work... <td class="d5" id="batchwt"> LB</td> -------------- I used this same id to display the
controlgroup events
I have a select with several options. The onchange event doesn't work for this. Is there a way around this? Any select I have that is not in a controlgroup works fine. The events for the radio buttons that are in a control group work as expected also. <fieldset> <legend>Certificate of Service</legend> <div id="controlgroup1"> <select id="servicextype"> <option value='none'>None</option> <option value='hand'>Hand</option> <option value='usps'>USPS</option>
cycle2: quick question...
hi, for automatic slideshows, I don't see an "autostop" option... what's the equiv of "autostop" option in cycle2? thank you...
How to substract ammount of characters from twitter fetcher
I have a twitter fetcher script and simply want to cut ammount of characters from tweets. I need to get output of Twitter fetcher, cut it and replace in HTML. So here is my code, but the problem is that it returns text without links. I'm using this pen to modify - https://codepen.io/DeoThemes/pen/jyGPgr $("#tweets .tweet").each(function() { $(this).html($(this).text().substring(0, 50)); });
Issue with JSON & Ajax request
Hi! I try to get some data from one of those APIs out there.. What I can see in the documentation, this should be written something like the code below. I got the data back in Postman, using the URL (with my own api Key), but in google chrome I just 'error ' got Unexpected token : and {"StatusCode":0," - btw, not sure what I should place in the headers..? Any one that could guide me here? Thanks in advance! $(function(){ $.ajax({ async: true, dataType: 'json', crossDomain:
can anybody help please?
i have a drop down of companies i.e (kipg-1,kipg-2,kipg-3,kipg-4) and i have used onchange event to access the id of companies. and i have a textbox which will always be opened when trademark is selected. question is if user type something in textbox it should show a list of trademark of kipg-1,kipg-2 respectively.but this can only be done when id of selected company is passed in keyup even. how to do that? thanks in advance
using "one()"
Having a problem attaching 'one' to an audio tag. Here's the structure: <div id="song"></div> Individual songs are loaded into this div, eg "song1.htm": <audio id="song1" preload controls autoplay> <source src="song1.mp3" type="audio/mp3"> your current browser does not support the new audio standard: upgrade if you can </audio> I want to attach an animation to fire once when the song starts playing: function myAnimation() { /// } In an external javascript
Adding li containing divs to an <ol> in a form
I'm creating a "document library" of sorts for my car club. The flex layout appears to be working. I've got a jQuery add function to "add"/insert several form fields in divs to a new <li> that gets added to the <ol> named #sortList using .append(). The new <li> with its divs and form fields appears to be created and added as desired. However, if I submit the form the input type file array named pic doesn't appear to get submitted. Here's my add function: function add() //--- add row <li> to
Uncaught TypeError: $(...). x is not a function
I am making my first foray into jQuery and I can't seem to solve the 'X is not a function' error. From what I've read online, -for most people the problems seems to be from not declaring jQuery first in the HTML document, but I definitely have it (CDN version and local fallback) before including any other JS files. -for others it was happening because jQuery was not getting loaded for some other reason (but for me it's definitely getting loaded, I tested for it before the line of code that causes
Bootgrid in laravel
How to use bootgrid in laravel for fitering the data on the basis of date range
how coordinates in dropdown
Hello, I have a dropdown and i want there coordinates if value. I saw on the internet that it is possible with jquery. see : https://jsfiddle.net/TroyAlford/ZZEk8/ for example coordinates: north: x 89 and y 14. my question is: how can I get coordinates in the dropdown? thanks in advance <select name="value"> <option value="NW">North-West</option> <option value="N">North</option> <option value="South">South</option> </select>
Next Page