jquery

Slideshow background image

Hello, I have make a slideshow from background images. You can see this on http://www.mikevierwind.nl/websites/test/ You see the slideshow in the header. Here you see image that rotate. But what is now the problem. When the slideshow show a new image. The image is going loading. Everytime that the slideshow place a new image. This ima...

Can't send textfield value to PHP file with jQuery

I would like to send this textfield value to a php file using jQuery. HTML code: <div> <label for="email">Email: </label> <input type="text" id="email" name="email" /> <span id="msgbox" class="msgbox"></span> </div> jQuery code: $(document).ready(function() { $("#email").blur(function() { $("#msgbox").rem...

is .find() faster than basic descendant selecting method?

In Paul Irish's blog http://paulirish.com/2009/perf/, in slide 30 it is mentioned: $('#container').find('div.robotarm') is faster than $('#container div.robotarm') What's your opinion? ...

img replacement with JQuery

Hi, I'm new to Jquery and even Javascript. Found and implemented this script that in a timely matter replaces images. Script works well when I wrap the images in an tag. I want the images to be links. As soon as I wrap the tags in an tag the script sill refreshes every so many seconds but it doesn't load the next image. What should...

Can someone explain jQuery's addEvents feature?

I saw this code on someone else's website, but found no reference to it on jQuery's site. window.addEvents({ 'domready': resizer, 'resize': resizer }); Can either: someone point me to the documentation for addEvents or explain to me how it works? ...

jQuery: Send Array

Hi, How do I send an array from PHP to jQuery? I have many <input type = "text" id = "search_term" />. How can I send this data to jQuery? <head> <script> $(document).ready(function(){ $('#button1').click(function(){ var search_val=$("#search_term").val(); $.post("ajax.php", { search_term : sear...

Escaping quotations for jQuery XML request

Simple question really, I am relatively new to both jQuery and XML. I just want to pull an email address into a link, but unsure how I am escaping the quotations. <a href="mailto:'+email+'">Email me</a> The +email+ is being taken from an XML file with code like this: <email>[email protected]</email> so I want the HTML to look like: <a...

How do you document your JavaScript?

Hi, I need to document quite a lot of JavaScript and jQuery code. I'm interested in diagrams, rather than the written documentation. I'm wondering if there is some sort of standard for modelling the JavaScript functions? My goal is to show visualy how different functions interact with each other. Thank you Edit: I have been trying D...

How to disable select when using jqTransform

I'm using jqTransform in my form, and I want to disable select. jqTransform causes it not get disabled. Please guide me if you have a solution for this. ...

How to calculate the offset() of an <li> relative to its parent container

I have a <li> which is nested inside a containing <ul>, what I would like is to calculate the offset. But have the top-left corner of the <ul> be 0, 0. So my HTML is: <div style="margin: 0 auto; width: 760px; height: 760px; overflow: hidden;"> <ul style="width: 2000px; height: 2000px; min-height: 2000px; position: relative;"> ...

Sharepoint - display bug in javascript edited newform.aspx ( wss 3.0 )

hi there o/ I took the generated newform.aspx file that has a select-field with 3 options. I now added some js/jquery code to display different fields for options 1/2/3 by taking the internal field name of the select-field and looking up what option is selected and change the displayed fields. That worked perfect for a while for intra...

How not to load all images on a page on load

I have a page with a list of jpg images on the page. The div that contains images is hidden and works as images source for Galleria jQuery image gallery plugin. So, when I load a page, it takes long to load it because it loads all images. Is there a way not to load all these images on page load, but just when galleria needs them? ...

Error while parsing a Json object

From my jQuery file, I call a function from my controller which returns a Json object, as below: [AcceptVerbs(HttpVerbs.Get)] public ActionResult MatrixTypes() { var matrix = Enum.PricingMatrixType(); return Json(matrix); } The call is made by the following function, I'm posting only ...

Jquery toggle only fires once

I have the following code which is used to slidein/out a div (shopping basket) on a page. However, the code will only fire once (open once, close once). Does the toggle need to be reset in some way? $(document).ready(function(){ var miniBasketHeight = -$('#minibasket div.outer').height(); $('#minibasket a.opener').toggle( ...

Specifying a callback in jQuery.ajax to OpenCalais SemanticProxy service

Hi all, I'm trying to query the OpenCalais service semanticproxy.com. Unfortunately, their url format is as follows: http://service.semanticproxy.com/processurl/APIKEY/jsonp:handler_function/http://en.wikipedia.org/wiki/Germany notice that the function callback, is not in a callback=? parameter, but rather follows the response format...

jquery remove all child elements and leave text

Whats the best way to remove all child elements from a div but leave any text that is directly inside the div in jquery. I have tried .childre().remove() but this is adding loads of whitespace in firefox and opera. Works fine in ie though. ...

Problem with animation - jQuery

I have a small very simple function. $('#desk, #chair, #seat, #tablet').hover( function(){ $(this).find('.hoverBlack').stop().animate({bottom:'0', opacity:'1'},{queue:false,duration:200}) }, function(){ setTimeout(function() { $('.hoverBlack').stop().anim...

Is there any way to fix pages to one page?

I'd like to fix the number of pages in a client side jqGrid to only one page. Is there any way to do this? Thanks for answers! ...

what's the best way to render repeated divs via jquery and ajax?

What i would normally do is generate the html in the webservice then display it on jquery... i bet there's a better way. help! ...

Jquery table sorter and IE8

I am using this code and everything works fine in firefox. But on IE8, the class for TH is not set, so no arrows show up. Anyone had this problem? I cannot find anything wrong with this code. Thanks. var myTextExtraction = function(node) { return node.getAttribute('sorting'); } jQuery("#myTable").tablesorter({te...