jquery

jQuery Ajax, overwrite onreadystatechange handler

Hi Folks, I'm recently fooling around with some ajax polling techniques. However, it seems like I can't overwrite the onreadystatechange handler from a XMLHttpRequest object in FireFox (3.6.7). On tracking the problem why FF throws an exception when trying to access onreadystatechange, I realized it depends whether the send() method wa...

Background image transition with fadeIn fadeOut effects on page load without any bindings to events

I would like to implement a background image transition effect using jquery. The images should change from one to the other with a fadeIn fadeOut effect. The image names are in the database but retrieved from a folder on my PC.I want the transition to take place automatically without listening to any events like click events. This is my ...

Why is this jQuery ajax failing?

I'm trying to do some really basic AJAX using PHP & jQuery, but for some reason when I enter text into the input field and click the button I'm always getting null data back. What am I doing wrong? WebService.php: <?php $return['ReturnString'] = $_POST['SearchString']; for ($i = 1; $i < 100; $i++) { $return['ReturnS...

little Jquery problem when integrate the pager

Hello , i have this ASP Jquery grid at http://tourscript.com/jqueryasp/default2.asp In my last question i fixed the pager add to the grid like in tourscript.com/jqueryasp/default.asp . My problem now is in no pager version if you ad a new row you could see it directly there in the grid no manual page refresh needed in the pager version o...

Getting dimensions from background-image using jQuery

Hi, I'm loading a background image into a div. Is it possible to get the dimensions from this image? I'm trying to make a function that will replace text with images on the fly, for use in the menu. $.fn.MenuImages = function() { return this.each(function(i) { var name = $(this).find('a').attr('title'); $(this).css("backgrou...

remove works but not hide?

hello there. creating a filter for a select menu and having a few problems! the first one is $("#filterContentMenu option:contains(a)").hide(); doesn't work but $("#filterContentMenu option:contains(a)").remove(); does. Actually this only seem to be a problem in safari! Works in firefox? ...

List elements with multiple eventlisteners

Is there a way to list all elements that contain two or more events of the same kind? I put a little example at JsBin: http://jsbin.com/alafo3/edit In this example I want a list that contains the <p> with ID="hallo2". ...

using Jquery to show one error message at a time

Hi, I'm trying to show one error message at a time and then once that error has been corrected to show the next error. For example there is validation on three textbox (Date, Month & Year) once the date textbox is valid then the month error message choudl show. The code I have so far for this is: var pi_ArrayValidationResult; var pi...

Using JQuery to enlarge the text input boxes in Sharepoint 2007 Blog forms

I have a site set up as a Blog Template. I want to use JQuery to expand the size of the text boxes for blog posts in both Viewing and Edit mode (and new mode). Viewing mode is easy. I edited /Lists/Posts/Post.aspx and added a CEWP containing a reference to Jquery and Code: jQuery('.ms-PostWrapper').width(800); I tried to do the same th...

jQuery selector NOT

How do i select everything BUT the element with an id? <div id="test"> <p id="test"></p> <p></p> <p></p> </div> I want to be able to select the second and third ...

The flash keeps flickering onmouseover, jquery

Hey there, I have this code... when i mouseover the flash feed it flickers and reloads, why? Thank you;) $(document).ready(function(){ $("#test").mouseover(function() { $("#test").html('`<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8...

Adding Custom functionality to jquery slider.

I need to create a custom image slider with some functionality that I've never seen before. I'd like to use an existing jquery slider if I could (something like - http://nivo.dev7studios.com/) and then customize it but I'm really not sure were to start. I need to have 4 boxes each with a small image within. Below would be a slider that...

The value of 'this' inside of a Javascript prototype function used as an event handler

I'm trying to use prototype inheritance in Javascript. The problem with my code below is that when the button is clicked and MyNamespace.MyObj.myEventHandler is called, the value of this is not the instance of MyNamespace.MyObj, but is instead the button that was clicked. Am I structuring things wrong (is there a better way)? Can I so...

How to make jQuery autocomplete execute a search() when user hits submit.

As a follow on my from last post - http://stackoverflow.com/questions/3307520 . I decided to make a new question rather than to continue editing that one. I currently have jQuery ui autocomplete 1.8 (or so) working reasonably well, except from one thing. If the user just enters a (valid) name and hits submit, the auto-complete lookup ne...

jQuery - preceding node - no common parent node

Hi Using jQuery I would like to locate a preceding node from a given node. The preceding node and the given node may not have the same parent node! Please check the following fragment: <div class="container"> <div id="sec1"> <p>Some text</p> <p><b>Some</b> text<</p> <p>Some <b>more</b> text</p> </div> <div id="sec2"> <p...

jquery reusable component?

I have a bunch of methods that make use of jquery to basically generate a list view. The problem is I need to use this thing multiple times, so I need to make it reusable. Should I just write a jquery plugin? Should I write a non-jquery plugin Js Object (like a class in non-prototype languages) and just create instances as I need? ...

how to select and change onclick attribute with jquery?

Hi all; with below code i can select all a href's value then change them; $("a").each(function(){ if (this.hostname == location.hostname){ var url = this.href; var qs = $.jqURL.get('qs'); if(url.indexOf('qs=') == -1 && (qs!= undefined && qs!= '')){ if (url.indexOf('?')>0){ $(this).attr('href', url + '...

Timepickr jQuery obect not working

I trying to implement a timepickr element into my website, however it seems that the element will work fine in one section of a page, but not in another. I reference the appropriate css files… <link rel="Stylesheet" media="screen" href="ui.timepickr.css" /> <link rel="stylesheet" media="screen" href="jquery.timepickr.css" type="text/cs...

JQuery (this).text is not appending via click

Poorly worded question, but I can't find a better way. Also, checked the 'related' questions and none solve this issue. I am using JQuery 1.4.2, and JQueryUI 1.8.1. I have a list of "buttons", and I want those buttons to make a copy of themselves in another list on the page. Here is what I have so far: $("#actionList ul > li >...

How to open different iframes in a dialog for different clicks using jQuery?

I've a page on which I have groups of different items. Next to each group I have a link to add an element to the group which opens up a jQuery dialog. I would like to open up a different iframe in a dialog for each group's link. How do I do this? Or would you suggest I skip the iframe and use a form in the dialog? If yes, then how do I...