jquery

How to get current request num in jQuery ajax manager plugin?

Hi, I'm working on school project witch sends multiply ajax request at the same time. I'm using ajax manager plugin, here is link (http://www.protofunc.com/scripts/jquery/ajaxManager/jquery.ajaxmanager.js) Is there way to get current request number?? Best regards, ...

flot display the date in flot based on timestamp

Does anyone know how to display the date in flot based on timestamp <script id="source" language="javascript" type="text/javascript"> $(function () { var d1 = [ [1262818800,100],[1262732400,100],[1262646000,100],[1262559600,100],[1262473200,100],[1262386800,100],[1262300400,100],[1262214000,100],[1262127600,100],[1262041200,100],[12619...

jQuery – Object position on mousemove. Failed to set up easing.

An object's position is updated relatively to mouseposition on mousemove (opposite direction). Works perfectly well, but I failed to set up the code with smooth easing as result. The code works in Actionscript (of course in proper syntax) but it doesn't work in jQuery syntax and code-elements. I use "css()" to position the object, "anima...

select top level nodetext is not supported with jQuery?

Whenever I needed the top level text node I must write this long story? $("#hello").clone().children().remove().end().text(); Why is there no native function to support it ? ...

jQuery tabs . . . how do I change the css of a tab?

Currently I use: <div id="tabs" class="basictab"> <ul> <li><a href="#fragment-1" id="Beta"><span>B.E.T.A. Plans</span></a></li> <li><a href="#fragment-2" id="Mini"><span>Mini-Sites</span></a></li> <li><a href="#fragment-3" id="Independent"><span>...

Javascript/jQuery variables not giving expected values.

Like others before me I'm struggling with scope in Javascript. (That and trying to read the darn stuff). I have checked some of the previous threads on this question but I cant seem to get them to apply correctly to my issuue. In the example below, I want to manipulate the values in the tagsArr array, once the array has been fully popula...

appendTo/prependTo but instead of adding I want to replace the content. htmlTo?

Hello, Quick jquery question: I know about appendTo and prependTo but is there maybe something like htmlTo? Yeah, I know it sounds silly but instead of adding elements like appendto and prependTo do I want to replace the html. $("<div>World</div>").htmlTo($("#Hello")); So I want the div with World to replace all the content in the ...

asp.net toggle button extender and modal popup extender collision

I am currently moving some form fields on an existing webform into a modal popup window using the asp.net toolkit extender. One of the fields uses the toolkit's toggle button extender on a checkbox a works quite well. When I move the checkbox and extender into the modal popup div, the toggle button extender stops working. After confirm...

How to use jQuery live() to bind multiple events to all table rows after adding additional rows?

I'm trying to bind three events to one selector using the live() method, but I can't seem to get it working. Here's what I have so far, and it works until I add additional table rows: $("tr:has(td)").live('click',function(event){ //do stuff }).live('mouseover',function(){ $(this).toggleClass('highlight'); }).live('mouseout',f...

detect distance scrolled from top jquery

How can I detect the number of pixels scrolled in a browser window? I need this to dynamically adjust the height of a 100% height div... I'm using jQuery. EDIT: I cannot just use scrollTop() because I'm working with a 100% height div with overflow set to auto. Firefox does not detect browser scrolling due to this, the only thing scro...

jQuery corner plugin not working on Internet Explorer

I have an issue where a div is not getting rounded corners added in IE but it works fine in chrome and firefox. It appears to round the corners but removes the border colours. You can see the rounding if you highlight the rendered page. Any ideas why this is happening and how to fix it? I'm using version 2.03 of jquery corners downloade...

Any advice for developing for Chrome?

I have a site that I used making CSS,HTML,javascript,Jquery,and PHP. I have made it work on all known browers (IE,FireFox,Safari,ETC...) All of a sudden chrome came out and I looked and my site is jacked. I know this is not a very detailed question but I am just looking for a little guidance for any resources,tips,suggestions on how to...

JQuery Selectors: How to select item with specific class *and* id

Hi all, I'm trying to select an HTML element on my page that has a specific class and ID. Here's the tag: <div class="statusLight" id="green"></div> I tried this with no luck: $statusLight = $('.statusLight#green'); I know that I could simply say $statusLight = $('#green'); But I was trying to find a way to select it based on ...

how to add a day to a date using jquery datepicker

Hi, I have 2 textboxes on my site for pickup date and drop off date both using the jquery date picker. I am having trouble setting the drop off date value to be one day ahead of the pickup date that was selected. Here is what I have: $('.pickupDate').change(function() { var date2 = $('.pickupDate').datepicker('getDate', '+1d'); ...

How to use jqGrid Advanced Search /w Serverside PHP?

Hi guys,   I've been playing around with jqGrid but cant work out how to implement the search functionality. Ideally I'd like to use the 'Advanced Search' - I imagine that when the user submits the advanced search form, the entered data is fired to the url specificed under 'editurl'? Im guessing this URL then outputs the resultset filte...

jquery hover working on one div, not the other.

I have two divs as follows: <div class="car-service" id="browse-all-button"> <p>CAR SERVICE</p> <span>56" Race Ramps</span> <span>67" Race Ramps XTs</span> <span>XTenders</span> <span>40" Sport Ramps</span> <span>Roll-Ups</span> <span>Portable Pit Stop</span> </div> <div class="trailer-hauling" id="browse-all-button"> <p>TRAILER HAUL...

jqGrid - Navigate rows using up/down arrow keys?

Is it possible to navigate between rows using the Up and Down arrow keys? For example, if the first row in the grid is selected and the user presses 'down', I would like the grid to unselect that row and select the next row down in the grid. There is a post in the jqGrid Forums about this at http://www.trirand.com/blog/?page_id=393/he...

Solution for loading large JQuery image gallery

I'm upgrading some image galleries on a university website (needs to be standards compliant, to some degree). Most galleries are many pages of HTML. I've been using the jQuery plugin, Galleriffic, as well as some PHP code I wrote, to generate nice paginated galleries, and it looks great so far. I have two problems though. The first prob...

Using Javascript/jQuery to access HTML elements with improper id attribute

I'm making a Greasemonkey script for someone to change the display of some of the fields their CRM(Zoho) created because they don't have access to change the rendered HTML. This should be easy, BUT Zoho decided that creating proper HTML was too big a pain in the ass, I guess, and their HTML contains things like this: <input type="text"...

Infinite loop wait 2 second, make server call jquery

Hello, I am making a simple game with jquery and i want to make a call to asp.net web service which i know how to do, but the server call need to continue to run until i get a specific response from the server. I will wait like 3 seconds with each loop cycle function servercall() { while (true) { // code f...