[jQuery] (jquery autocomplete) Result event isn´t triggering if no data has returned
Hi.. I´m using something like that: var defaults = { minChars: 2, cacheLength: 1, delay: 300, max: 10, id: null, city: null, jsonaddress: 'teste.php', matchSubset: false, selectFirst: false, dataType: 'json', extraParams: { state: null, county: null }, parse: function(data){ var parsed = []; data = data.name; for (var i = 0; i < data.length; i++) { parsed[parsed.length] = { data: data[i], value: data[i].displayName, result: data[i].displayName }; } return parsed; }, formatItem:
[jQuery] Checking/unchecking parent checkbox
Hi I've been using jQuery a couple of months and I'm really having a blast with it but need a little help with this problem. I have a table of records generated from a database that looks like this. Each record has a checkbox with a unique id followed by a person's name and employment status. <tr><td> <input type="checkbox" id="rptDirectors_ctl19_chkDirectorName" class="chkDirector" checked="checked" value="25094" /> <span id="rptDirectors_ctl19_lblDirFName">J. Pedro</span> <span id="rptDirectors_ctl19_lblDirLName">Reinhard</span>
[jQuery] jQuery slideup/slidedown iphone (3rd click bug)
I'm currently porting works website for iphone. I've wrote some jquery for sliding up/down divs: $(document).ready(function(){ //Corners $('#insideContainer').corner('20px'); $('p.link a').removeAttr('href'); $('p.link a').css('cursor','pointer'); $('p.link a').click(function(){ $('p.link a').css('color','#ffffff'); $(this).css('color','#dddddd'); var page = $(this).attr('id'); var contentDiv = $(this).attr('rel'); $('#'+contentDiv).load(page
Can't get animate callback to work
The animation works, but the callback function (alert) doesn't get called. function first() { $("#Stan").animate({marginLeft: "150px"}, {duration: 1000}, {dummy: 1}, {callback: function(){alert('hi');}} ); } $("#go").click(function(){ first(); }); </code]
[jQuery] Using a selector with .load() doesn't execute script?
I'm trying to load one page into another using the .load() method. This loaded page contains a script that I want to execute when it has finished loading. I've put together a simple example to demonstrate: Index.html: <html> <head> <title>Jquery Test</title> <script type="text/javascript" src="script/jquery-1.3.2.min.js"></ script> <script type="text/javascript"> $(document).ready(function() { $('#nav a').click(function() { $('#contentHolder').load('content.html #toLoad', '', function () {}); return
Define a zone for the toggle in a div
Good morning to all, I imagine that my problem must be easily adaptable, but I am from yesterday in the evening there and I do not succeed in finding good resolution. I have a streamer, with down to the left one corners mail and down to the right one corners information. If I click on the party information, a toggle sets off, and has appear the text. I would like it to take the right party of the streamer, but he takes unfortunately all low party of picture, from the left to the right, encroaching
[jQuery] How to create Function libraries in jQuery?
I have a load of utility functions that I use across many of my plugins. I'm including the ones each one needs in the plugins own code atm. I've spent a few days trying to figuire out how to create a single plugin/class that I can use as follows: myUtils.doThis($('selector')); and $('selector').myUtils.doThis(); I've tried using name spaces but then 'this' inside each function refers to the class not the jQuery object. Any and all ideas welcome. I NEED ----------- single class/item that has shared
Get web page
I am so lost, and hope some of you have more experience with ajax get then I have. I need to collect data from a site named http://www.wowhead.com for some of the items they have in there database. I know how to get the item data when passing in the URL and my ajax get do work when I just need one item, but many calls don't work. WHY ? Get a single item data in XML format here http://www.wowhead.com/?item=49644&xml If I call the function "getItemData('49644');" outside from the loop I do get the
[jQuery] Getting Last ID
Hi, I am dynamically creating/removing entire rows in a form. function addNewRow(newId) { var tbody = document.getElementById('list').tBodies[0]; var lastRow = tbody.rows.length - 1; var newId = lastRow; var row = document.createElement('tr'); row.setAttribute('id', newId); Using var lastRow = tbody.rows.length - 1; to create the new id does not work for me. If I have 3 rows 1 2 3 and then I remove row id 2, with the length method, when adding a new row after that removal I end up with
Can you make a slider like this?
Hello there! I feel like I am barging onto your forum with a rather silly question. I have been looking a lot to find a way to make a slider like the one on http://www.mangrove.nl. They have a big slider, and a smaller one. And when you click on a little one, you navigate to the correct big one. And in the big one itself, you have a 'read more' link that opens in the big one. And both can be scrolled seperately. Is such a slider possible with JQuery? I have found several demo's that show something
[jQuery] Simple Jquery AJAX post
Could soneone please show me an example of a simple ajax post to a coldfusion page, with a loading graphic? I cant find an appropriate example in the documentation. Thankyou
Is IE8 jQuery(document).height() incorrect?
In IE8 jQuery(document).height() is returning a value that is 4 pixels bigger than the actual height of the body (if the body height is 100%). If i switch IE8 to compatibility mode it is correct. After looking at the jquery code i've found that document.documentElement["offsetHeight"] is 4 pixels larger than document.documentElement["clientHeight"] and document.documentElement["scrollHeight"]. Thus document.documentElement["offsetHeight"] is being returned. Is this a bug in IE8 or does Jquery need
[jQuery] jCarouselLite - set to scroll if...
hi, I am using the jCarouselLite which I got from here in my webpage and would like to be able to start the scroll if the text that is inside the div falls outside the height of it?! Please help!
[jQuery] Refresh only a section of the page
Hello, i am trying to use ajax for my site and i have a problem. I have a live radio running on my home page and the rest, and i want to navigate through the website without having to make the buffering again. I've searched multiple forums but no solutions. Can you help me?
[jQuery] reservation & booking system
Hello List, I'm looking for some modules to realize a reservation and booking system (jQuery&Django), preferably with a nice calendar interface. I did some research today, but didn't found what I was looking for... maybe because I'm new to jQuery/Django, maybe because I'm blind, or maybe because there is nothing of any use around?! It would be great if you Guys 'n' Girls could share some ideas regarding suitable modules etc. Cheers Eesti
[jQuery] How to print tag name
The code below show [ td ], can I got the tagName like "td"? <table> <tr><td>1</td></tr> </table> console.log($('table:first tr').find(':first-child'));
Call PHP script in the background on click
Hi there, I would like to implement a delete functionality on search results like google has. If a user clicks an X next to one search result the result should disapear and some php code should be executed in the background. All of this without a new pageload. The hide thing was not the problem, but how do I call a php script without having the site reloaded? So far my code looks like this: <a href="" onclick="$(\'#cl'.$results[id][$i].'\').slideUp(500);;return false;" title="Als Betrug/Spam melden
[jQuery] window close function >_<
Al cerrar una pagina necesito llamar a otra para poder hacer algunos cambios en mi DB. Intenté con esto: $(window).unload( function () { alert("Bye now!"); } ); pero solo quiero q haga al momento de cerrar no de recargar la pagina. Eh estado buscando scripts pero no encuentro, ayuda! =D
CSS does not load on .load & about accessing loaded cont
Hi, I am trying to dynamically load content into a container "frame" when the user clicks on a menu link. I can get the content to load but it doesn't comply to the CSS that i have loaded earlier. How do i get it to comply? I know I must be doing something wrong, or not doing something im supposed to do, coz i cant find a similar problem on the net... the second problem is that in the loaded content, is another ID i want to reference in Jquery, but i cant seem to reference it. so i have to "refresh"
animate vs slide
I like the way that animate drags a div in... however i want to be able to use it like slide... so that i dont have to specify where it wants to move... i just want ot animate the height of a div, if the div is unknown.. any ideas how to sdo this? reagrds J
Change body backgroundcolor on page load
Hello there, i want to animate the backgroundcolor of the <body> when the page is loaded. It works - but sometimes when i switch from one page to another or if i just reload a page, it doesnt change. First i used this script: <script> $(window).load(function(){ $("body").animate({ backgroundColor: "#bdc58f" }, 1000); }); </script> Now i thought it may work more reliable with this one: <script> $(document).ready(function(){ $("body").animate({ backgroundColor:
jquery file infected (I think)
Good evening, First, I don't know anything about jQuery (so please be gentle with me! I had a programer develop some pages for me (he is long gone) and I think a page is now infected. Several of my clients told me they are getting alerted to a trojan when on my site and trying to download our content. The purpose of the file is to limit the amount of downloads each customer can have (and possibly a few other functions as well). Here is just part of the script. The entire script is just too long to
[jQuery] Code Conflict, jscroll and contact forum plug-ins
hello , im trying to get these two plug-ins to work together but to no avail. Im pretty new to jquery and figuring this out on my own is kind of difficult. Any help would be greatly appreciated. This is what the two plug-ins look like.. this is the contact forum... $(document).ready(function(){ //function for contact form dropdown function contact() { if ($("#contactForm").is(":hidden")){ $("#contactForm").slideDown("slow"); $("#backgroundPopup").css({"opacity":
jQuery equivalent of this..
Hi, Can you guys please tell me the jQuery equivalent of this script: if(document.getElementById('ID').style.display == 'none') I want to check for all input elements. I tried it with the attribute like: if($('input').attr('style').indexOf("none") != -1) But, didn't get the result. Thanks [/code]
[jQuery] [autocomplete] having issues matching when there are single quotes or apostrophes
Hi, This is only happening in the JSON+emails example form the demos. If I insert john'doe into the array and I start typing doe, autocomplete will find john'doe. However if I start deleting characters (from back to front, starting from letter e) autocomplete will not show any matches until I've deleted past the apostrophe/single quote. On the other hand, in the birds example, if my match was Cetti's Warbler and I start deleting characters, autocomplete will continue to find matches as I keep removing
[jQuery] MultiSelect and CheckBoxes. Could someone please help me out?
Hello, I am using the following Multiple Select JQuery plugin with ASP.NET MVC. http://abeautifulsite.net/notebook/62 When the form is posted back the values selected before are unselected now ... I have an idea of how to solve this but I don't know how to implement it in JQuery. The plugin is aplied as follows: $("select.Multi").multiSelect(); And I get something like: <input type="checkbox" value="1" name="Roles"/> <input type="checkbox" value="2" name="Roles"/> 1) I need to find the IDs of all
[jQuery] fade and rotate text
I am looking for the best way to rotate the displayed text . Text should also fade in and out. I have tried the innerfade plugin but was wondering what else might be available.
[jQuery] Strip out all of the commas in numeric text field
Hi, New to jQuery. I would like to strip out all of the commas in numeric text field called test on blur. New to jQuery. I have had a go at coding would it work? $('input#test').val($('input#test').val().replace(/,/g,'')); and ....... how do i calll it?
[jQuery] (Bassistance validate) Require inputs based on dropdown select
Info: - jquery-1.3.2 - jquery.validate-1.5.5 - form with 1 dropdown select and 4 text inputs Setup: - all 4 text fields are not initially required. Issue: The first input element is a required dropdown select. If the user selects option 1, then text field 1 & 2 need to be required. If the user selects option 2, then text field 3 & 4 need to be required. How do code this? Thanks in advance! Also, I tried searching the groups first but couldn't find anything that either worked are was close enough
[jQuery] How to handle dynamic clicks?
Hi, I am trying to get the correct div from a form I did (I intentionally left the brackets open so it displays here) span id="doedit_$comment[commentid]"> a onclick= "return getCommentID($comment[commentid]) and for the jQuery $(document).ready(function() { function getCommentID(cid) { $("#doedit_" + cid).click(function() { $("div#newcomment").slideUp("slow"); $("div#editcomment_" + cid).slideDown("slow"); } }); But nothing is happening. Please what is the proper syntax? Thank you -- View this message
[jQuery] autocomplete, extraParams and $(this)
I´m a bit confused, because the following doesn´t seem to work and I have no idea why ... after searching google for a couple of hours and trying different solutions, I´m posting this here and hope that someone can help. $("input.vAutocompleteField").autocomplete('/ autocomplete_lookup/', { highlight: false, mustMatch: false, matchContains: true, cacheLength: 20, minChars: 2, extraParams: { 'extra_var': function() { return $(this).attr('id'); } } }); "extra_var" should be the ID of the current input-field.
[jQuery] Newbie question (Bassistance Validate) - error msg does not go away
i am new to jquery and started using the validate plugin with jquery. I tried the demo but have problems using my own jsp form. i have added the usual $(document).ready(function() { $('#customForm').validate({ rules: { field1: "required", ...} messages: { ...} }); the error messages showing up fine, but once i start typing into the field, the error msg does not go away. where should i start to look? can someone provide any pointers? thanks
[jQuery] passing html to browser
I am currently using the .after to insert html code into the website. In the html code I am passing it I have div's with id's and classes. I have other jquery functions which look for those id's and classes to perform actions when the mouse moves over it, but it does not perform the action after it is loaded into the page using the .after. When I view it in firebug I can see the html code there, but when I look at the page source the html is not. I am thinking that the reason the jquery functions
Hey guys little Noob Start
I'm trying to create an interactive track selector with a form, I'm using jquery to read an xml file and display the track name, the artist a button and a thumbnail.. ok i've got that far.. now i'm just stuck on where to go next... the idea is to pick up to 5 of ur favs and then submit them. I also need to work out how to de-select them and to stop the track being selectable once it's selected some kind of boolean.. any ideas on where to start? resources etc?
[jQuery] loop through multi dimensional json?
Hi, im sure this is a simple matter, but i cant seem to work out how to loop through a multi dimensional JSON object (where the keys are unknown). example json: { "processed":false, "message":"External link could not be set:", "message_array": "{ \"link\": { \"isEmpty\":\"Value is required and can't be empty\" } }" } basically, i need to loop through the 'message_array' key and put each error into an LI item. doing this: $.each(r, function( intIndex, objValue ) { if (intIndex
[jQuery] autocomplete
Hi My php is returning via json: a string (name) which is displayed in the text box an int (location_id) When the form is posted I would also like to post 'location_id' as well as / instead of 'name'. My js is below. what do I need to do to be able to post the location_id. $("#quick-search").autocomplete('/includes/search.php', { width: 300, scroll: false, dataType: "json", parse: function(data) { return $.map(data, function(row) { return
[jQuery] jQuery bugs in IE7
I have a page that works great in Firefox but alas, not in IE 7. I'm sure there is some minimum code changes to make, but I'm not exactly sure what and or where to do it. There should be rounded corners on the menus and the large pictures rotating on the right as well. Look at in firefox and you will see the way it is supposed to look. NOT with the lines in the menu pictures as in IE. Here is the page: http://landmarkmg.com/beta/homepage/goal/WORKING_EXAMPLE.html AND example of adapted code - which
jQuery bugs in IE7
I have a page that works great in Firefox but alas, not in IE 7. I'm sure there is some minimum code changes to make, but I'm not exactly sure what and or where to do it. There should be rounded corners on the menus and the large pictures rotating on the right as well. Look at in firefox and you will see the way it is supposed to look. NOT with the lines in the menu pictures as in IE. Here is the page: http://landmarkmg.com/beta/homepage/goa ... AMPLE.html AND example of adapted code - which works
[jQuery] How works the search method in autocomplete plugin?
It is called after when? call result function? Thx for the replies.
[jQuery] help with event binding on an ajax calendar
I'm having trouble binding the same event to two different links in the html here's a link http://tinyurl.com/ydzzsjv what I want to happen is click on a link and jquery loads the previous month html, this works fine, but if I click next, then the page refreshes it's almost as if it lost it's event binding any help would be appreciated
Next Page