jquery

Updating IFRAME src while embedded in Thickbox

Hi all, hopefully a simple question here. I'm running a Wordpress blog that has a bunch of links to different cities, which point to a location on a Google map. My current setup involves having an iframe for each link, and that iframe pops up in a thickbox when it is clicked. Now that my list of cities has grown, I have many, many ifr...

Traverse a custom html string with Jquery

I am not able to traverse a custom html string with Jquery, like in this example: html = '<a href="http://www.site.com"&gt;&lt;img width="800" src="http://www.site.com/pic.jpg" alt="" /></a><br /><br />Description<br />'; found = $(html).find("a").length; "found" returns 0, while I would expect to get 1 I suspect I'm doing something ...

Creating container resize function in jQuery Infinite Carousel

I'm creating a custom implementation of jquery Infinite Carousel on a wordpress site, http://cambridgeuplighting.com/scale-test. I want to give my client the option to add photos of any resolution and have the container element resize to fit it. I'm going for the same animated resize effect as in Lightbox/Slimbox or SimpleViewer. I ha...

jquery show/hide breaks links

I'm making a vertical navigation menu using css and jquery to make the submenus hidden by default but clicking on a menu item expands it to show the submenus. <div id="navmenu"> <ul id="menu"> <li><a href="welcome.html" target="content">Welcome</a> <ul class="hide"> <li><a href="other.php" target="content">blank</a> </li> ...

Jquery Replace phrase plugin

Is there a jquery plugin that enables replacing predefined phrases with links in a defined div tag. Forexample with an array of "global warming" -> "global warming" "computer hardware" -> "computer hardware" etc... Also it will be used in a wordpress blog which jquery plugin already installed. Is there wordpress pluging that allows ...

Jquery Getting a relative path for an image swap (not the rollover image)

I am trying to replace an image when a link in another part of the page is rolled over. I have a hard coded version working, but I would like to get this so that when I upload to a server I do not need to go in and change the path part. $(document).ready(function() { $('.laundryLinks li a').hover(function() { $('.homeLaundryPict').attr...

S3 browser upload via POST: unable to handle errors gracefully

I am writing an app where I want the customer to be able to upload to Amazon S3 straight from the browser. I can make this work just fine. But when errors occur, I want to handle them more gracefully than splattering an XML document on the customer's screen. I have a scheme that I think would work, but it's failing. Here's what I'm t...

jQuery: Check if jQuery object contains exact DOM element

I have a reference to a DOM element, and a jQuery object which is the result of a selector, and I want to check if that specific DOM element is in that jQuery object. Short of looping through the whole jQuery object and checking for equality, is there a straightforward way in jQuery to do this? I have tried .contains, :contains, .has an...

jquery .css() problem ...help please

Hi , I have a such code just entering start part for you $(document).ready(function(){ //Dynamically size wrapper div based on image dimensions $("#tag-wrapper").css({width: $("#show_img").outerWidth(), height: $("#show_img").outerHeight()}); //Append #tag-target content and #tag-input content $("#tag-wrapper").appe...

Define an event on iFrame element with jQuery

Hi, I try to define a live event on img tags store on a iFrame. For example, I would like obtain a simple javascript alert box when I click a image on my iFrame. Do you know how i can define the events for the iFrame, because I would like to put a thing like $('img').live("click",function().... but only for the elements on iFrame. Tha...

Change Numerical Class

I currently have a wordpress blog that assigns a number to each one of its posts.. It also takes this number and applies it to the container that the post sits in like so "post-813" Is there a way with jQuery to where I can say.. If the class is post-810 or greater, add class "new" ?? Thanks <div class="post-813 category-uncategorized...

Reload DOM after injecting form elements?

Hi, I'm trying to put together some jQuery code that will add form elements (input checkboxes) to a form, once the user performs a certain action. Later on the user can then submit this form. I'm entirely new to jQuery, but I've managed to put together some code that almost works. Here's what I've got: $("#someDivID").load("myPage.asp...

Discrepancy in JSON.stringify of date values in different browsers

I have this code in an HTML page: alert(JSON.stringify(new Date())); I'm including the latest json2.js (2009-09-29 version) in my page to support older browsers without JSON.stringify(). I also have jquery-1.3.2.js included. I believe in newer browsers with native JSON support, it just passes through to the native JSON feature. Her...

Can JQuery build DevExpress-like UI

I tried to use DevExpress's Controls in one of my projects for its smart and elegant UI interface. When I use normal html or asp controls, one of my page size is around 400KB at the client side. Using devexpress makes the size of that page around 1.2MB, which is almost 4 times the previous version, and I used only 3 round panels and a D...

Problem with Jquery and PHP break function

Hello, I'm posting simple version of php and Jquery code of the page that I need to create. As you can see, this example contains PHP break functions, and the name of this page is test.php. The problem is, when I try to open the first part of this page (case 1) Jquery load function successfully is started and successfully load case 2 ...

jQuery integration problem in Zend Studio/Framework

Hi everybody, I'm struggling to build a simple zend framework application that can call jQuery. So, what I'm working under Zend Studio 7.1.1 where I added, in the library folder, the "ZendX" folder. And, I also downloaded the jQuery lightness theme that was added to the "js" public folder. You'll find the whole structure is like that: ...

jquery function doesn't return values correctly

I have this function $.fn.validate.checkValidationName = function(id) { $.post("PHP/submitButtonName.php", {checkValidation: id}, function(data) { if(data.returnValue === true) { name = true; } else { name = false; } **console.log("name = "+name); **//this prints out "true"**** }, "json"); }; and this...

jQuery FullCalendar click 'next' event notificatin

How can i get notified when the user click on 'next' (arrow) ? I'm using the calendar in month view and I want to load the next month data on demand. Also, do smbdy has an example of consuming data from ASP.NET (AJAX call) ? ...

How can I view XMLHttpRequests in IE 8?

Firstly, apologies if this is a duplicate. I've searched and looked at related questions but haven't found this question. I'm debugging an AJAX problem in IE8. My throbber seems to spin forever, and on the on completion callback for my AJAX (jQuery's $.getJson()) it is meant to disappear. Of course, it works fine in Firefox / Safari. Ho...

Jquery Validation Plugin, dynamic form validation

I'm using the Jquery Validation Plugin to forms loaded via Ajax (dynamic forms). I know that as of Jquery 1.4, live events on submit is now possible. Now the problem is I want to show a confirm message after the dynamic form has been validated. My code looks like this: $('.dynamicForm').live('submit',function(){ $(this).validate(); ...