jquery

jquery 1.4.1 breaks my slideshow

After toying with the jquery slideshow extension, I created my own that better suited my purposes ( I didn't like that all the images needed to load at the beginning for instance). Now, upon upgrading to jQuery 1.4.2 (I know I'm late), the slideshow loads the first image fine ( from the line$('div#slideshow img#ssone').fadeIn(1500); tow...

jquery hover pass variable to callback function

I am trying to remove a title attribute for a link on hover and then add it back on mouse out. I would like to pass var hoverText to the hover out... Here is the code I have. Any ideas? $(".icon a").hover(function() { $this = $(this); var hoverText = $.data(this, 'title', $this.attr('title')); $(this)...

Jquery: Changing an ID after a click

Possible Duplicate: dynamically changing the selector text I had posted this in the morning but the post is gone? I have the code below. I am trying to make jquery change the actual ID after I click. It's just one of a small list of chores that the script does. It all works except for changing the ID. Having that line in here ...

JSONP callback method is not defined

I'm trying to get a jsonp callback working using jquery within a greasemonkey script. Here's my jquery: $.ajax({ url: "http://mydomain.com/MyWebService?callback=?", data: { authkey: "temphash" }, type: "get", dataType: "json", cache: false, success: function(data) { console.log(data); } }); in my we...

contents().find() not producing the same result as changing selector context? - jQuery

Hello all, I have a function that looks somewhat like this: function(domObj) { var currentObj = $(domObj); ... currentObj.contents().find(".ws").after("foobar"); } My problem is that the above method of using .contents().find() is not working. "foobar" never gets stuffed after the specified dom element, represented by the...

Load iframe in html, only with jquery

In this jquery code: $(document).ready(function(){ $list = $(".channeList li"); $list.click(function(){ var $this = $(this); var $mainDesc = $(".ply"); var iframe = $("a", $this).attr("rel"); $("iframe", $mainDesc).attr("src", iframe); } ); } ); There is a list o channels in left that iframe lo...

Drag big picture in small layer?

Hi, I need a plugin for jquery or another js framework, where I can define a small div where i can drag around a big picture, so i get only a clipping of the picture. any ideas? edit: i try to explain i have a small div, like 600px x 450px. this div behaves like a clipping window for a big picture with like 3000px x 2000px. so i only ...

Google Map Web Service working on local but not online

Hi all, I have a problem with a Javascript request to the Google Map Api Web Service : if I have the HTML file on my computer it works, but it doesn't work online. Here's the code : url = 'http://maps.google.com/maps/api/geocode/json?address=Senador+Francisco+Quindimil+Y+Carabobo+Por+Carabobo,Ciudad+Autonoma+de+Buenos+Aires,Argentina&...

Possible to bind an event listener to a (hypothetical) onChangeInnerHTML event?

In my app, I have an OL tag whose contents are changed by various other dynamic events. Is there some way to put a listener on that OL so that I can execute a function whenever its contents are altered in any way? In this example I need to update a count of items in the list which appears in another spot in the interface. I am using jQu...

Pulse effect with jQuery

I still cannot seem to get pulsing images to work with jQuery. This is code that apparently should work but does not. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>test</title> </head> <body> ...

Is there a way to force a page in IE8 to render in IE7 quirks mode or IE8 Compat View Quirks Mode?

NOTE: When I say "Browser Mode" and "Document Mode", I'm referring to the rendering options in the menu bar of IE8's developer tools. We're noticing odd functionality on our website in Internet Explorer 8. When the user clicks the "Add to Cart" button, the jQuery .load() method is called to request a new webpage that is then placed ins...

Style of input=File as a button

Hello guys, I'm trying to put some style in the input=file aka uploader and I'm having a hard time with it, is there some NON FLASH solution (maybe jquery or even plain javascript)? ...

jQuery Block UI: node is undefined

I'm close to finishing an app that uses quite a bit of JS. Recently Firebug started throwing an error that says "node is undefined", referring to data.parent = node.parentNode; on line 209 of jQuery blockUI plugin Version 2.31 (06-JAN-2010) @requires jQuery v1.2.3 or later. I'm using jQuery 1.4.2 When I remove the code from my page tha...

Find a control by String from asp.net Web service

Well since it seems relatively difficult to send the object of a WebControl over JSON using jquery.ajax() I've decided to send the name of the control as a string because I know how to do that. Then I promptly realized that, from a web service, I don't actually know how to search for a control by ID name. Since its a service I can't seem...

jQuery encoding values differently than expected for jQuery.ajax data elements

I'm using jQuery.ajax() to make a PUT request to a REST web service, but seeing some really strange serialization behavior. (Before you say it: Yes, I know that not all browsers support PUT -- this is just an example implementation for an api/framework, and ultimately will not be called by a browser, but rather by a server-side library ...

jQuery: exclude some elements by classes and select the rest

I use the following code to select all external links on the page items = jQuery("a[href^=\'http:\']").not("[href*=\'" + window.location.host + "\']"); But I need to exclude links from tags with some known classes, e.g. I want to exclude "class1" and "class4" and select whatever have left. <body> <div> <p class="class1"> <span ...

jQuery Dynamic Button Click Handler

I have a code the change the html of a div to make a button. When I make a click handler for the dynamic button, nothing happens $('#signinup').html("<button id=\"login_submit\">Sign In</button>"); And the handler: $('#login_submit').click(function() { alert("Works!"); }); ...

jQuery access to 'this' object with events and triggers

I have two classes orchestrated by a main class and I would like to know how to gain access to the correct 'this' object when events are fired among these classes. Here's what I have: // My main class that orchestrates the two worker classes function MainClass() { this.workerOne = new ChildWorkerOne(); this.workerOne.bindBehavio...

How to process xml returned from jsonp using jquery?

I use the following jquery to return an xml that resides on the same subdomain: $.getJSON(myurl, function(data) { debugger; alert(data); }); Now whenever I run this in firebug, I get a js error in firebug saying: Missing ; before statement. The data returned looks like this: <?xml version="1.0" encoding="utf-8"?> <string xmln...

Using Jquery to slowly hide a div

Hi everyone! I'm trying to make some code which finds if a div exists, and if it does then have it fade away slowly. I have this to determine whether or not the div exists if($('#error').length != 0) { $('#error').hide(500); } And that does work but only on a refresh, I've been attempting to put it in a timer like this: ...