jquery selector not working
Hello This code work Fine with jquery 1.8.2. for check if input is empty. $('#form_new_elv input:text[value=""]').each(function(){ var id = $(this).attr("id"); $("label[for="+id+"]").addClass("alerte"); test=test+1; }); Test here But change the Framework with jquery-1.10.2 all inputs are considered empty even if input is not empty Can you help me to solve the problem? Thank you
jquery-ui resizable lazy call on event
Hi all, i have an element that is loaded and created on a user event. My problem is,that if i call directly into the <script> tag, it works <script> $('th').resizable(); </script> if i call : <script> function callOnEvent() { $('th').resizable(); } </script> it just doesn't want to work. The chrome console says "undefined is not a function" How can i fix this ?! ***** the same error i had with jstree trying to reload it, and in other places that right now i don't remember. Thanks AiU
Script causing 508 issues
This script wraps each image within a WordPress gallery [gallery] in its own link. I am having 508 issues (Resource limit is reached) on my site and I suspect the script is to blame. Can anyone suggest a better way to express it: jQuery(document).ready(function() { jQuery('img[alt="starting-out"]').wrap('<a href="http://www.hpartners.webignite.com.au/dummy-image-attachment-page/"></a>'); jQuery('img[alt="professionals"]').wrap('<a href="http://www.hpartners.webignite.com.au/dummy-image-attachment-page/"></a>');
File Save Dialog box not working
Hi, Am deivendran,I have one popup window with this having 'SAVE' and 'CANCEL' button. when I click save button it goes to the Generate Pdf Method for Particular Action(Controller) in MVC.but not showing the dialog box. Without using Jquery dialog box is coming. this is sample code. button click: <input type="submit" id="simpledialog" value="GenratePaySlip" /> in this button click bind webgrid <div id="dialogbox"> @grid.GetHtml(displayHeader: false, tableStyle: "grid",
Where to start build visual editor with JQuery
Hello all im jquery starter , i need to build visual editor similar to this: http://dhtmlx.com/docs/products/visualDesigner/live/# my questions are 1. can i do it with jquery ? 2. which add-ones or other lib's should i use 3. do you know about visual editors that are build using Jquery that i can check ? Thanks
Help using google maps api
Hi, I'm developping a mobile application, and I've got a problem displaying a map, even if it seems to be really easy. Here's my HTML page : <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% ; width:100%;} </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
dom manipulation during touchmove - possible?
Hi all, I have a small project that I'm working on to build a drawing tool, I'm using sketch.js but I'm running into a few issues. The basic premise of the app is to scribble onto one photo to reveal an image underneath. For this I'm using CSS masks - it only needs to work on Webkit so that's fine. You can view a demo I've knocked up here - http://www.code-mill.co.uk/clients/soraya_fatha/touch.html - if you draw on the image you will see that it 'reveals' the main image underneath. The issue I have
Droppable "over" and "drop" occassionally don't fire. - RESOLVED
I've created a simple planner where the user can Drag and drop their items into allocated time slots. They can also resize these items. When an item is resized, dragged over or dropped onto a droppable I need to check for collisions. 90% of the time everything works fine. However the other 10% of the time the droppable events 'over' and 'drop' don't fire. There is nothing special about dragging its all default jQuery stuff as is the resizing. Note that the resizing is locked so it will increment
DOM manipulation for deleting the table but not what is inside that.
Can anyone help me to re format my articles in DOM by jquery? I have articles that the image of the content is in a table row and the caption for image in another row. Now I need to change the format from this first example to the second one. For this I need take out the table but use the (img src) and the image caption. First example: ... <table style="width: 300px;" border="0" align="left"> <tbody> <tr> <td><img src="/images/image1.jpg" border="0" /></td> <td></td> </tr> <tr> <td><em>The image
validate plugin not working
Hi there, i have used the validate plugin with the metadata plugin to great effect on numerous sites (the exact same setup/code as the below in fact ) However on a new one i have an issue in that the form is simply not validating http://bit.ly/1urPZuD if you press reserve you can see the validation ( from here http://bit.ly/Q7Acke ) does not actually work can anyone see the issue please ??
Table undersection instant search
Hello, I'm new to java actually just getting started. What I'm trying to get done, is to divide a table into such sections so that my instant search pops up results for the whole section and not for 1 row only. Right now, when I'm typing a word into my search box, it hides everything apart from the row with an exact match. Picture below should give you more of an idea what I'm trying to do. Sorry misspelled "content" :) Any ideas? thank you for your effort!
Returning an object from Servlet to back JQuery
Hi, I have a JQuery client and a Servlet server side java apps. My client app looks like this: var retVal = $.ajax({ url: 'auth', type: 'POST', data: data, dataType: 'json', cache: false }).done(function(data, textStatus, jqXHR) { console.log("Login successful"); router.loggedIn = true; router.navbar.collection.push([{ id:
Disable an item of drop-down-list from another page.
Hi, I'm still here ... I would like to know, if is possible, how to disable or to enable a drop-down-list from another page. I mean: I have a drop-down-list in select.php and I would like to disable or to enable a single item, more than a item or all the items from panel control (control.php) page. Thanks in advance. Tegatti
Tabs - Duplicate Ajax Requests after selecting different tab ID
I have a user profile page that uses tabs to organize the data. Tab-1 ajax loads default social "shoutbox" tabs 2,3 loads are basic no ajax tab 4 ajax loads friend list tab 5 ajax loads photo gallery w/ fancybox plugin When tab 1 initializes, the social functions perform as expected, but if you select any of the tabs 2-5 and then go back to tab 1, it duplicates my comments() function for each click, stacking the ajax requests. I need a workaround to either clear cache or reload page (as far as I'm
Jquery HighCharts
Hi , In my Chart , I m Having X Axis With More Then 30 Dates , The Dates on the X AXis Getting Overlapped , Please let me know ? What Property should i Set For X Axis ,Where It Has Large Number Of Catogories on X Axis
Get value of a string after a slash
Hello! I need to extract the an image filename with out it's file extension. Let's say I got this: http://site/page/myimagename.jpg and what I want is to get is this result back: myimagename in other Words Everything after the last slash, but cut of 4 characters from right Would be great if someone understands how to do this? cheers
Dynamically Populated Select Control Doesn't Behave Properly Initially
In my very 1st jQM web site, I have two (2) select controls populated in bulk via ajax.responseText, using something like $( "#dir-select" ).html( ajax.responseText ). Works fine, except that the 1st item in the select box isn't displayed in the selection box at the top of the control and can't be chosen until something else has been explicitly chosen. In an option list of foo, bar, and drek, foo is in the drop down list, but the selection box is empty. Choosing foo is unresponsive, the drop-down
Is there something wrong with the bug reporting site?
I've been trying to post a bug again 1.11.1 (still exists in 1.11.2 edge), but whenever I go to http://bugs.jquery.com/newticket it tells me I don't have ticket create privileges. I am logged in when I go that URL. Anyway, the bug is that the simple selector... var $a = $('a[name=]'); ...used to return a jQuery object with length of 0 (up to jQuery 1.11.0). As of 1.11.1, it throws an error.
Capturing input content with non-printable chars
Here is code a snippet : http://jsfiddle.net/ZLr9N/298/ $('#text1').keyup(function(event) { $('#text2').val($('#text2').val()+event.keyCode); }); the problem is when user press backspace the second input must reflect the content of the first.
how to filter that records in array object
I copied my database table records(23000 records) into an array in jquery. Now i want to filter that records in array object. How i can do this?
Jquery Highchart
Hi Team , in My Higchart Graph , i m Having 30 Dates , on the X axis. But the Thing is That Whole Whole 30 Dates are Getting , Merged , Giving Out Bad Design Please let Me Know How To Handle This Design Issue , Please let Me Know ASAP.
Accordian Instant Messaging - Need Help w/ index managing
Hello, I am new to using jQuery and have been using the accordian to manage chat sessions for a project of mine. The data is populated purely from the MySQL DB except when I prepend a new conversation. If the accordian is collapsed the prepend appears open and at the top, but if you already have a panel open and prepend another conversation panel, it adds it minimized to the bottom. The problem is this method screws up the index managing and glitches the chat until you reload the data by clicking
Firing an ajax request while other ajax request in progress aborts the requests
I have a grid which contains a hyperlink on reference number which is unique. On clicking reference number, an ajax request is sent to the spring controller with reference number as the request parameter. When an user clicks on two reference number quickly, two ajax requests are submitted to the server which results in the first request being aborted with status code 0 and second request is processed successfully. When user clicks on two reference number after a certain interval, both the requests
JQuery Mobile range slider not smooth on Android
Hi I am developing an app on ios and android using phonegap and jquery mobile. My range slider works perfect on iOS devices but it is very crappy on android devices. The handler is not following the finger when it is being moved suddenly far from the point of origin. it only applies the movement after the touch event or after 3 seconds of holding position. How to fix this? has anybody experienced this already? Thank you guys.
[Closed] Dynamically Populated Select Doesn't Behave Properly Initially
In my very 1st jQuery web app, I have two (2) select controls populated in bulk via ajax.responseText, usin $( "#dir-select" ).html( ajax.responseText ). Works fine, except that the 1st isn't displayed, in fact there's no initial selection. I can't explicitly choose the 1st item til I choose anything else. Looking at the HTML in Firebug, there's an empty tag pair till something is explicitly chosen. Alsso tried $( "dir-select" ).refresh, immed following the initial HTML load. Can reload the controls
Add <td> inside <td> when it contains two value.
Hi everybody, I'm witing because I need help to realize some thing like this: I have a html table that contains some characters of the month divided by days. It may happen that on some days there may be two characters or more then a character. I would like that when the <td> contains more characters automatically adds a <td> within the <td> to divide the characters. The characters are divided by space. Is it possible? Thanks in advance. Tegatti. P.S. This is a part of my table:
How to create Date object for different timezones?
Hi, I am displaying timings for different geographies on my page with timezone offset as input. I also want to incorporate Daylight Saving timings in my code. I tried using moment.js functions like isDST() and isDSTShifted() which returns true if current time of local machine hence the browser is adjusted according to Daylight saving. If the user's machine is set with locale which follows no Daylight saving times isDST() and isDSTShifted() always return false. Apart from this, Alternate javascript
How to call the jquery function by onclick="return function()" ?
Hi, In the HTML, I had add onclick="return validate()" in the button HTML. <input type="submit" id="form_save" value="Save" onclick="return form_validate()"> Then, I had prepare the form_validate() function in a separate js file, it would work properly. function form_validation(){ console.log('abc'); return false; } But, when I try to use the jquery function as usual by bounding (function ($) {})(jQuery), it show an error "Uncaught ReferenceError: form_validation is not defined". How can I use the
xmlParser() error
The jquery xmlParser function is not able to parse xml with '&' Did anyone face this issue?
how to select positions <a> onSelect for firefox in datepicker?
$('.font_datepicker_page').datepicker({ onSelect: function(dateText, inst) { //I need to get X & Y. var targetOffset = $(event.target).offset(); SelectPresentByDay(dateText, targetOffset); }, changeMonth: true, altFormat: "yy-MM-dd", yearRange: "2002:2012", }); function SelectPresentByDay(date, targetOffset) { html = 'text'; $(".calendar-item-popup .box-cont").html(html);
Need help populating jqGrid
I am having trouble simply populating the jqGrid with data. I have taken a look at the docs and hope that you can please help me out with this… I have verified that data is coming back from my server side controller method as below. Sample is just for one for the records from the fto object. Customer_Name = "X" FuelTkt_ID = 2 Image_ID = "12345″ Ticket_No = 6460193 Trans_Timestamp = {3/19/2014 10:20:00 AM} Vehicle_No = "123456″ [HttpPost] public async Task<JsonResult> GetFilteredFuelTicketsAsync(HH_FuelTkt_Input id)
div Animation: on mouse over, the other divs change their position
I'm working on a jQuery animation that expands the height of a 'div.panel' on mouse over and comes back to normal when the mouse is out. The animation works for the selected 'div.panel', specially if is a '.panel.panel-small', but the problem is relative at the nearby elements that moves down from their initial location when the mouse is over the 'div.panel.panel-big'! Here's a fiddle of my problem. Thanks in advance!
Trouble appending Google Plus button to my blog posts?
I'm new using JavaScript, and I'm trying to append the Google Plus "Share" button to each individual blog post on my blog's index page. To that end, I'm using the JavaScript code below. In theory, this should extract the main URL of my page and each <a.blog-title-link's> (href). However, the link appearing on the google share button is the same for every post. For each blog post sharing link, I get this: /3/post/2014/04/this-is-6post.html.Help? Fiddle Example <body> <div class='blog-index-page'>
About Reading JSON Response
Hi Everyone, I've a quick question about reading the JSON response. Which is the best way to read the JSON response? Reading and manipulating in JSP Level ? or in the JS Level? Which gives better performance and best user experience. Appreciate all your help, Thank you in advance! Regards, Sathya
Tabs - Multiple Tabs
Hello all, I have a situation where I have multiple tabs on a single page and it works great. My problem is, I have an event that adds a new tab to one of them. When this happens, it is adding the tab to both of the 'tabs' elements. They have unique ids and all that. I am wondering, is this a bug or am I doing something wrong here? ~S
code flow not making sense
The code flow is not making sense. The "on keyup" event for a text box executes an ajax post to a php page. If a match is found, the php page returns {"duplicate":"Yes"} and the jquery executes the code in the code block for if(msg.duplicate == 'Yes'){ ... } and plays a sound. If a match is not found the php page returns {"duplicate":"No"} and a sound is not played. No sound is played until msg.duplicate == 'Yes' for the first time, which is good. What's bad is, once the sound is played for the first
Help! How to change buttons sizes!
I would like to know how to change button sizes in jquerymobile. Do i have to use another css file too? All my buttons are super long and i want to make them smaller.
Accordion Overflow. Want content to flow out of accordion...
While the accordion takes up 45% of the page in mobile an tablet I want the content of my accordion to take up about 90% of the screen when opened. I have been looking everywhere and tried many things but can't figure out how to do this? I would of though there is a way that should be pretty simple? Thanks for any help!!!
Need Help With jQuery Mobile Popup
Hi guys, I'm trying to get popups working on my website and what I did was going to jQuery Mobile Custom Download and I chose only the Popup Option and downloaded the custom build and setup everything but the popups don't works. To test if I did the setup right and the popup link right, I change the script src from the custom to the complete jquery.mobile-1.4.2.js and the popup works but it mess up my website template. I just need the popup function only. Please let me know if is something I can
Modify jquery full calendar extenal event by using date picker
Can someone give me advice for below functionality is possible with jquery full calendar. Once we drop a external event in to a date block, is it possible to extant the event by using a external date picker? Eg: Dropped a event in to 02 May 2014. If user click on the event, a popup will show jquery Ui date picker. If user select the date to 05 may 2014, the event also should extend automatically to 5th.
Next Page