jquery

How to improve performance of Jquery autocomplete

Hi, i was planning to use jquery autocomplete for a site and have implemented a test version. Im now using an ajax call to retrieve a new list of strings for every character input. The problem is that it gets rather slow, 1.5s before the new list is populated. What is the best way to make autocomplete fast? Im using cakephp and just doi...

CSS background-position change on Y-Axis only

Ok...so here is the problem. I have a CSS sprite image made up of ten(10) 25px x 25px icons laid out horizontally - thus resulting in a sprite image of 250px width. I am using these 25x25 images as thumbnails. I'm looking to have an opacity of 30% on these images in INITIAL view and when a user hovers over them the opacity needs to be ...

Div not properly hiding in IE

I've got few divs on my website - on the load I want some of them to be hidden, some shown. I am hiding the ones I don't want like this: $(".divToHide").hide(); It works well in Chrome, Firefox, IE8 an Opera... It doesn't in IE6 (I haven't tested on previous version yet...) - when I load the page all the divs are hidden properly. When...

Redirect/Refresh to fragment identifier

Im using the iUI framework to create a site. If your not familiar with this you have one page made up of divs and you navagate the user between with fragment identifiers. The problem with this is if your user adds content it is not visible until they refresh. In my sistuation they add data to a list via jquery post but like I say they ...

jQuery Accordion open collapsed

Hi, using jquery v1.3.2 and jQuery UI 1.7.1 I have 1 tab control with 3 tabs in it. Each tab contains 1 accordion control. $(document).ready(function() { $('#acc1').accordion({ collapsible: true, autoHeight: false }); $('#acc1').accordion({ collapsible: true, autoHeight: false }); $('#acc1').accordion({ collapsible: true, autoHe...

dragging out of html body/div/everything

hi i make a class of elements draggable like this jQuery(".drag").draggable(); jQuery(".drop").droppable({ accept: ".drag", drop: function(ev, ui) { //do stuff with dropped data } }); now the problem is, i am able to drag the elements out of body, and all over the html. how do i limit the area in which it is draggable? ...

Jquery and multiple AJAX calls on one page

I have thumbnails on a page, as such: <div id="credits"> <a href="largeimage1.jpg" alt="credits1.php"><img src="thumb1"></a> <a href="largeimage2.jpg" alt="credits2.php"><img src="thumb2"></a> <a href="largeimage3.jpg" alt="credits3.php"><img src="thumb3"></a> </div> <div id="zoom"></div> <div id="credits"></div> I'm looking to do t...

CSS + .MOV Object

Hello all, I've created a page that uses jquery to slide from left to right displaying content in the middle of the page, everything around the centre is hidden via "overflow: hidden" which works a charm, until I embedded via the tags a quicktime video, it isn't hidden / it is always visible. I have no idea why this is happening and wou...

What had happend to Trimpath Junction Javascript Framework?

I've been desperately searching for a Javascript MVC framework to create rich client side applications with a Rails backend and I come across junction framework. It highly appeals to me due to its similarity with rails and offline capabilities. but unfortunately it has not been actively maintained for a long time. I just wanted to know ...

Is there a good jQuery plugin or JS code for time durations?

I basically want to produce the following: from int 67 to 1 minute 7 seconds from int 953 to 15 minutes 53 seconds from int 3869 to 1 hour 4 minutes 29 seconds pseudo code: // original <span class="time">67</span> //output <span class="time">1 minute 7 seconds</span> // js $('.time').format_duration(); ...

Is there an Updatepanel control (like ASp.net) in java

Hi, Im basically a .net developer, I am now working on a java web project, here i need to basically get values from the back end (say generating a random number) and update that random number every second on the front end, i want to use jquery for this, in ASP.net, i know that I can have an updatepanel and use _doPostBack to update th...

Sort using jquery and php

Hello Gurus what is wrong with this code it works the first time then when i build the header again an error occurs saying From is undefined Jquery function sort(tableHeader,sortDir) { $.ajax({ url: "sort.php", type:"get", data: "tableHeader="+tableHeader +"&sortdirection="+sortDir, success:function(data){ $("#t1").html(data);}...

validating dynamic controls using jquery

how do i validate dynamic textboxes which are generated at runtime using jQuery? ...

JQuery Iterate Around DISTINCT classes on a page

I'm looking to iterate over every class defined on my html page once. I can get classnames back using Jquery, but I'm looking of way just to iterate over each individual classname once rather than for each time it appears on the page. ...

Mulitple call ajax on the same page

Hello, I'm trying to create a chat application with jQuery without having to using setTimeout in order to minify the number of ajax request : function checkChat(){ new jQuery.ajax({ 'url' : './chat/check.php', 'cache' : false, 'success' : function(messages) { if( messages.length...

object expected - jquery

i'm getting an error 'Object expected' for some odd reason due to jquery, and this does not 'submit' the form or enter the data into database. without jquery, the data could be entered into the database. but now it doesn't. i've used jquery mainly for validating asp.net controls. ...

jQuery class is statically sharing an object across class instances

A while ago I needed to create an object orientated class using jQuery. I turned to use John Resig's fine Class solution. Hit an issue with it. When I define a global options object, it seems to me that the latter is shared amongst classes. I have confirmed that by printing various console.log's after modifying the object in one class o...

JQuery : adding 5 id's on the fly (instead of classes)

Hello guys, I'm dealing with this situation : I have a color animation script which targets by id (it's not JQuery but pure javascript) then I have a dynamic list without ids : 'ul' somePHP throwing list items '/ul' and finally I have JQuery itself (which I'll use to add several ids on the fly to the list items: but I still don't know...

Serialize all fields

Hey, I checked out the jquery serialize docs and I am trying to find the best way too serialize all fields in my form and then print the output, the demo has something like: function showValues() { var str = $("form").serialize(); $("#results").text(str); } $(":checkbox, :radio").click(showValues); $("se...

jquery,css download from google

Hi, I am planning on using google to download the jquery lib for both ui and core. My question do they allow me to download the css for it or should I have to host it. Also if I use google to load how should I load other plugins..onemore, can I compress all plugins together or should it be its own separate file THnks ...