Help - Changing object using a class identifier not working
Here is my code: <div id="GroupMenu"> <div id="navPremium2"> <ul id="ulList" > <li id="liHome" class="GSTab" onclick="GSToggle(this)"> </li> <li id="liAbout" class="GSTab" onclick="GSToggle(this)"> </li> </ul> </div> </div> <script type="text/javascript"> $(document).ready(function () { }); function GSToggle(CurrentTab, Opt) { $(".GSTab").removeClass("selected"); $('#liHome')[0].className = "GSTab";
Problem in calling cross domain service using Jquery
I am trying to call web service (cross domain service) using Jquery. the below working fine in IE8 , but not in chrome and firefox. Please help me to resolve this issue. Thanks in advance Test 1: ================= <script language ="javascript" type="text/javascript"> function Do() { $.support.cors = true; $.ajax({ type: "Get", url: "url", // Location of the service data: '{"parameter"="value"}', //Data
Changing markup dinamically
I don't know if this is possible but if it's don't know how to do this. See I have this markup <ul class="error_list"> <li>Required</li> </ul> But I'll like to change using jQuery if is possible to this: <div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Required. </div> It's possible? Any help?
Breaking change in IE9 re: each() and "this"
Hello. I've discovered some unexpected behavior to do accessing element attributes within an each() loop. In IE8 the following code works: jQuery.each(aPeople, function(idx) { var aDays = $('TD[PersonId=' + this.PersonId + ']'); } I can read the PersonId attribute from the TD element using "this.PersonId". However, the code does not work in IE9. It returns "undefined". I've changed the code to this: jQuery.each(aPeople, function(idx) { var aDays = $('TD[PersonId=' + $(this).attr('PersonId')
Implement Jquery autocomplete with multiple values and images - AUTOCOMPLETE
Hello Guys, I am facing a problem while trying to implement the jQuery autocomplete with a return images (made by a member of the Stack) but with the possibility of choosing various values (Multiple Values). When I implement the source, he can only select one value only. Follow the jsfiddle: http://jsfiddle.net/Igaojsfiddle/85SAF/ I'm beginning to study the background now the jQuery library, please have patience and hope someone can help me with this problem. Already very grateful.
Problem with checking the checkbox in jQuery
Hello, I'm facing a problem while checking a checkbox in dynamically created table. I'm using wicket framework in frontend which creates a dynamic table to hold the files. Each file has provided checkbox for selection and deselection. I have requirement to check a file say 111001A.CR up on checking of 111001A.CN (Name of files are same, just extension varies). For selection and deselection of files, i'm using following jQuery Code: function selectDeselectMatchingFiles(){ $(".dataview
Advanced Accordion Menu with Jquery
Hi Guys, This is my code // On cache les sous-menus : $(".menu ul.sub-menu").hide(); $('.menu ul.sub-menu li.current-menu-item').closest('ul').show(); $(".menu ul.sub-menu li").addClass("sub-menu-item").removeClass("menu-item"); $(".menu li.advanced > a").css("cursor","pointer"); $(".menu li.advanced > a").click( function () { if ($(this).next("ul.sub-menu:visible").length != 0) { $(this).next("ul.sub-menu").slideUp("normal"); } else { $(".menu ul.sub-menu").slideUp("normal");
PHP +Ajax+jquery.
hi!.I want to edit html table and save in database.Inline editing.I have a code but the value is not getting updated in database..i took code from http://www.iwebux.com/inline-edit-using-ajax-in-jquery/ could some one suggest me some website or code
animated div
ihave a div in my container and i also have an other div on right side of the page to whom i want to animate on left side of the page when click on the link or button and it will also go back to its posiotion when i click again on it
expand all and collapse all feature does not function completely
I have an issue with my expand all/collapse all feature. Here is my jsfidde link: http://jsfiddle.net/pavloschris/HqXMN/13/ Lets say expand Name1 and Name2 and then hit Expand all button, What it does is it expands everything but collapses Name1 and Name2. Do I specify the css id in my javascript function? $(function () { $(document).on('click', '.expandcollapse', function (e) { $('.collapse').each(function (index) { $(this).collapse("toggle"); }); if ($(this).is('.icon.white-icon
How to troubleshoot breaking changes as a result of jQuery functionality improvements?
I have functionality that was developed many moons ago, and I don't keep track of individual jquery version upgrades. Now, when I upgrade to a never jquery version stuff stops working. How does one go about trying to find out what is not working?
long downloads indicator
I have a link whihc creates a word document and starts the download, I want to display a message or indicator that ur download is being prepared and once browser open the dialog to save or open the file I wan tto clear the messaeg is it possible is there anythin g available ?
function triggerd by div resize
I want to make something like this <div id="resizeable"> some stuff here </div> $("#resizeable").bind("resize", doSomeThing); function doSomeThing() { // some code } However, I was unable to bind resize to a html element. I tried with bind, live, on and resize functions and neither worked like this. It only worked on $(window).resize() Keep in mind that I tried these ways, that are available after my version of jQuery, but I must only use jQuery 1.4.4. Thanks.
Dynamically add component, somebody have solutions
I have "add" button when click this button will create textarea via jquery. more clicking more textareas I must send all texares value to wicket java class and save in database (and have "send" button )
Using Jquery with SP2007 for a Cascaded dropdown on a custom form
I have a need to implement a cascaded set of two dropdowns on a sharepoint 2007 custom form and was told to pursue JQuery to do so. Here is my original posted question on another forum: I have a custom sharepoint form that I want to manage two dropdowns on. Lets say one field is called SEGMENT and the second field is SUBSEGMENT. When SEGMENT dropdown "Defense" is selected then dropdown two SUBSEGMENT would have the following options: Army Air Force Navy When SEGMENT dropdown "S&L" is selected
what does mean arguments of .ajaxError(function(event,xhr,options,exc))
I have been using the error() Ajax Event in $.ajax() and $.ajaxSetup() that have three arguments: error(xhr,status,error) i know what is these arguments and don't problem with it. But cannot understand the arguments of .ajaxError(function(event,xhr,options,exc)). Can any one describe these arguments, each of the four. specially event argument. and can give me an example that to use each of the four arguments of .ajaxError(function(event,xhr,options,exc)) Regards
Slide Up Slide Down at one time
I try to make slide up and slide down divs at one time. I want the first div slide down an the hidden next div slide up I would like to make these elements overlap when animated jQuery $(document).ready(function() { $('.plus').click(function() { $('header h1').animate({ 'margin-top': '999px', opacity: 'toggle' }, 1500); $('header h2').animate({ 'margin-top': '0px', opacity: 'show' }, 1200); });
Why Are Ajax Calls Failing?
Greetings, March 5th, 2013 My situation that may appear rather simplistic still perplexes me while I am new to Ajax. I have loaded all the appropriate JQuery Libraries and the initial index loads fine and the JQuery Doc Ready statement loads all the files on the menus. However, after I use the load statement to load a contact.html, all loads great, into a iframe div statement within index the contact.html that utilizes an Ajax pass to a php fails. Initially, I had two various contact.html's
Show/Hide multiple divs and swap out text
Hi, New to jquery. Found this great script, but it only toggles one div. What do I have to change to toggle multiple ones? $(document).ready(function() { $("#setup").click(function() { $("#1").slideToggle(function() { if ($(this).is(":visible")) { $("#setup").html("Close Archives ▲"); } else { $("#setup").html("View Archives ▼"); } }); }); }); HTML <h3>Title Here<a id="setup" href="javascript:unhide('1');"
Ajax Post with data as JSON object. Unable to access data on server side
I am sending a .post request to my server attaching a json object to the data member. On the server side I can see the json data I sent in the Request.Form() member but I haven't been able to figure out how to access the individual data elements. This is my client side code: saveDetail : function(prmDesc, prmLevel, prmMax) { var lclData = { userId:'', skillId:'', desc:'', level:'', miles:'' }; lclData.userId = currUser.id; lclData.skillId = $('#selectSelectedSkills').val();
Using settimeout with progress bar
Hello, Im using a settimeout to resubmit a form. Id like to be able to use a progress bar showing the time until the next resubmit. Does anyone know of an example? Thank You
Scroll to position in horizontal div
I'm building a photo gallery function with jQuery. The thumbnails are in a fixed-with horizontal div with a scroll bar above the main image area, with "previous" and "next" links underneath. Everything is working great, but I would like the thumbnail div to scroll to the appropriate thumbnail image when the "previous" and "next" links are clicked. I've figured out a way to jump to the thumbnail image, but I'd sure love an animated scroll instead. Is this possible? Here's the page in question: http://brenahearn.com/fighters-jquery.php
jquery calcucation in email newsletter
Hi I need to develop a email newsletter which has some maths calculation, example A+B=C. Here A and B are input fields. And the result will be displayed in the mailer itself. I have develop a HTML page for it with jquery calucations. I tried to embed in the email newsletter, but the calculation is not working, How to embed this as email newsletter.
issue in iphone 4s
When i open a pdf link from my HTML page it opens the PDF and if i press browser back button blank screen appears only in iphone 4s(ios 5).When i open the console am getting the error as SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent."
bootstrap: copy/duplicate values from state/country fields
My twitter/bootstrap form has the option to copy already entered values into a billing info section. Text boxes are going in fine, but I want to duplicate the state and country values from these select boxes: <select id="countries_states1" class="input-medium bfh-countries" data-countryList="US,CA"></select> <select class="input-medium bfh-states" data-country="countries_states1"></select> I'm using this code as a guide: http://stackoverflow.com/questions/2706756/how-to-copy-the-shipping-address-to-billing-address
Scroll Horizontally Within Window
I am looking to have the window of my program follow a Mario img instead of scrolling, in essence removing the slide bar and somehow keeping the window focused on the Mario character within a range (like any 2D side-scrolling video game). Any ideas on how to do this using jQuery or HTML? You can find my program here. As seen, I have the upper and lower values I want the window to show, but I do not have a way of moving the window. It'd be best to move a coin counter, the music play/pause button,
Parse JSONP data
I've got an API that is producing JSONP output and I need take the data and read it into an unordered list. Can anyone point me in the right direction? As you can see I'm not sure what to put in the success event to show the data correctly. <scirpt type="text/javascript"> $(document).ready(function(){ $.ajax({ dataType: "jsonp", url: "https://my.site.com/", success: function(data) { }
How to know wheter DOM was already loaded or not?
I plan to provide a JS code that each website admin could decide how/when to run, so an admin may want to add my JS code to be loaded with the page, or may decide to load it later once the DOM has already been loaded. So my JS code can not rely on the $().ready method because in the later case the code placed there would not be executed. So I plan to set my logic into a "private" _run() method, and tell the website admin that he must execute the "public" run() method. Within run() method I need to
Using COM+ in jQuery
Hello. I am new to mobile apps. A lot of the examples I have seen are static pages. I have COM+ object that contains complex algorithms. It accepts a few parameters. I then goes pulls data from Oracle tables and does calculations. Ideally I know it should be some web service. Is there any ways to instantiate a COM object running in COM+ package, push some parameters, and pull some calc results from that object? Thanks Avatar
License change from dual to MIT
Hi Folks, I was browsing to see if I could understand when jquery changed from a dual (MIT or GPL) to just the MIT license. BTW, this is a really good move IMO. Also, looks like http://jquery.com/download/ still indicates a dual license under the "About the Code" section ... "jQuery is provided under the MIT or GPL license." although that link does point to the license page which indicates MIT only. -Scott Lamons SPDX Business Team, co-lead
Problems with links on loaded contents
Hi guys! I'm triying to call to a link that has been previously loaded by another link. Here is the situation: I have a "Link A" that load "Content A" (via Ajax). A "Link B" that load "Content B"... and then a Link to B in the "Content A" that has been loaded with the "Link A". I have made a sketch to explain it better: The problem is I can't use the "Link B" inside the content of A because there's no JQuery code in that page (I load the content from a different file to change between the different
How can I set the time of delay of moseover in a on()?
Hi Guys, I have a problem ... I want execute a function after 5 seconds that the user is on mouse over of a anchor ... I have an element that is dynamical loaded ... I have to work with .on() ... How can I set the time of delay? Code HTML: <a href="#" id="test">Test</a> Code jQuery: $(document).on('mouseover', '#test', function(){ alert ("hello"); }); thanks
Praise for the jQuery Team
I just visited jquery web sites, and I was so blown away by all the fabulous changes, so much so that I have to give all of you associated with the jQuery Foundation immense praise! Job well done. I truly love the new appearance and the abundance of information. Just stupendous. I just cannot find enough adjectives to describe the impact each jQuery site had on me as I visited them. The best I've seen! Congrats and keep up the great work! Kelly
How to use setting only one time and then use defaults in jQuery?
Hi I am using datepicker UI so when a user click to edit a page the selected dates are depending one a value in the database fields. So how can i initialize the options only once. After that i want to use the original settings. here is what i am doing so the first part of the code need to set the current values and setting and then the file Reservation-edit.js has the setting to use after the load. The question is how to change the first part of my code to run once when the page is loaded. <script
Event Handler Memory Cleanup
Hey Peeps, Does jQuery .on() perform any automatic memory cleanup? Example: <button> has an attached jQuery .on() 'click' event handler. I whack <button> from the DOM. Is the click event handler left in memory? Thanks!
Accordion save state
Hello everybody, i got this menu <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // Store variables var accordion_head = $('.accordion > li > a'), accordion_body = $('.accordion li > .sub-menu'); // Open the first tab on load accordion_head.first().addClass('active').next().slideDown('normal'); // Click function
Function returning false?
Link to my code: http://paste2.org/p/3053253 (easier to read/formatted nicer) In the above code, for some reason the function validate does not return true even if all the data entered into the registration form is correct (e.g: no error messages come up & the account get's created, but there's no "successful registration" message that's suppose to show up if the validate function returns true). Any ideas on where I'm going wrong? :'( Thanks!
Keep state on postback
I have a wizard in a .Net app, 3.5 framework. In my wizard, I would like to be able to go from step one to step two and not lose the state of the controls that are in step one. Example: If a textbox control is disabled with jQuery, when I go to step two and then go back to step one, I would like the same textbox control to still be disabled. Below is the markup and jquery code. <div class="row"> <label class="label required">Location of Incident</label> <asp:CheckBox ID="chkLocationUnknown" Text="Unknown"
Need help find/replace string
I have the following markup and I've been trying to use jQuery to replace the "/" that's between the two anchors with something else but I've failed horribly. Can someone help me out? <ul class="Breadcrumb"> <li class="BreadcrumbNavigation"> <a class="rsmLink" href="http://localhost:1801/Web/forums">Forums</a> / <a class="rsmLink" href="javascript:void(0);">Some Topic</a> </li> </ul>
How would Jquery affect CSS Div layout or links just by being linked to?
If i've just linked to the main jQ js file and only have CSS, no Javascript. It changes the position of some DIVs and makes certain links unclickable. Are there any HTML elements, IDs or Classes that jQ will alter from just including it?
Next Page