jquery

Running jQuery command from modal window to affect main page

Hi all, I'm currently trying to write a jQuery script which opens a modal box then (upon user entry) changes a value on the original page. Currently I've got the script working on just the page itself (without the modal), but when I try to run the command from the modal the value on the main page doesn't change? Does anyone know how I...

how to prevent conflicts between mooTools and Prototype

Hi All, I know that jQuery.noConflict() is used to avoid conflict between $ of any other library and jQuery.(i.e. Prototype) But lets say, by any chance I am using Prototype, MooTools and jQuery.In that case jQuery.noConflict() will work fine for jQuery and any other library combination, but then what with Prototype and MooTools, if the...

jQuery getting selected options issue

I have 2 multi-select boxes that transfer to each other. The transfer both ways goes fine. I also call an ajax fn to submit the selected options to a database. The call from left to right works fine because I am just getting all the options, not just selected ones. var domelts = $('#imfavs option'); // next translate that into an array ...

jQuery Tools Tooltip

I have a link with a background image that uses the jQuery tooltip on a list. There are multiples of these on a page (for example 20). The first one works just fine but the remaining tooltips do not work. Any thoughts on how to resolve this issue? Thanks in advance. Here's my code (I am using NHAML as my viewengine): %script{language="...

jQuery UI Dialog - Cannot see the closeText

Hi chaps, I'm trying to make a simple Dialog - no title just the word 'Close' and the X in the top right hand corner. My text etc. will then go underneath. However I fiddle with it I can't ever get the closeText attribute to display - I can see it in FireBug but it either doesn't appear, or a couple of characters appear under the X gr...

jquery ajax post to non-ssl page while current page is ssl

Ok, situation: an https / ssl page jquery a form submitted via ajax to a non-ssl pagge getting no usefull response the same scenario, non-ssl to non-ssl works perfect. I can view my console, but cant get any usefull info from it why the request fails... $.ajax({ type: "POST", url: form.attr("action"), data: form.serialize(), err...

jQuery modal Dialog over iFrame

I am using jQuery UI dialog for modal popups. I have some iframes in my page as well. The iFrame (z-Index = 1500) sits on top of the parent page (z-index =1000). I open the modal dialog from the parent page. I am trying to set the z-index using $('modal').dialog('option','zIndex',3000); but this is not working. I also tried stack:true ...

adding variable into a jquery plugin

Hi, i dont know if it can be done but can you use a variable to use in this instance: This is the normal way: jQuery(function() { jQuery('#cropbox').Jcrop({ onChange: showCoords, onSelect: showCoords, aspectRatio: 16 / 9 }); }); wanting to do so like: var ratioRetrieve = "16 / 9"; var run = true; if( run === ...

Returning an array from a PHP function to jQuery

I have a PHP function that returns an array. What is the best way to "receive" this using jQuery? ...

AJAX calls randomly timing out in IE6/7?

Some of my AJAX calls in IE6 and IE7 seem to randomly time out. It doesn't happen in any of the other browsers. Posting code won't be of much help, because it literally happens in three or four different places where the functions and code are completely different. Has anyone else experienced this issue before? ...

jquery, images type

Hi! I'd like to change image type with jquery, for example: <img width="250" height="61" alt="Stack Overflow" src="http://sstatic.net/so/img/logo.png"/&gt; to <a href="/"><img width="250" height="61" alt="Stack Overflow" src="http://sstatic.net/so/img/logo.gif"/&gt;&lt;/a&gt; To change ".png: in ".gif" (in this case) Thanks ! ...

JQUERY - Read Width & Height ob a flash object

Is there any way to read the width and height of a flash object using jQuery? ...

What is the best approach to store xml temporarily on the client side?

My application has a lot of decision to make before finally saving my data to the database. I am using JQuery to do this. I have succeeded in creating a moderately long xml string, due to the fact that the user will enter data that will each need to be verified. I have made this decision base of the number of trips i expect my applicati...

jQuery: How to hide a frame on parent?

Hello, I have the main page that contains multiple frames within the frameset. One of the frames is a toolbar with buttons, I would like to be able to press a button on that toolbar and it will go and hide one of the frames on the main page. I've tried the following from within the toolbar frame but it doesn't work... $(document).pare...

javascript: function call to itself

hi all, I suppose the following code: jQuery("#mybutton").click(function(){ //do something }); How could I recall to this function "anonymous"?, I can not put a name to this function: var xfun = function(){ //do something } jQuery("#mybutton").click(xfun); I can do something like this: var working = false; jQuery("#my...

Select every nth item in jQuery?

jQuery has the handy :even and :odd selectors for selecting the even- or odd-indexed items in a set, which I'm using to clear every other item in a series of floated boxes, as follows: <div class='2up'> <div> ... </div> <div> ... </div> ... <div> ... </div> </div> and // Clear every 2nd block for 2-up blocks $('.2up>div:e...

JQuery Overlay does not auto close on Flowplayer video end

Hey guys, I am using both Flowplayer and Jquery Tools Overlay. I have my overlay to display when they click a link. The overlay displays correctly and the video auto-starts as it should but when it ends, I was trying to call the overlay's close function to close it out. Here is my div for the overlay. <script> var pla...

Add something after the "n" element using jQuery

Hi guys, For a markup like <div id="holder"> <div>div 1</div> <div>div 2</div> <div>div 3</div> <div>div 4</div> </div> how do add some markup after the second DIV for instance? Thanks, titel ...

Javascript file dependencies - Selective load resource files & prevent duplicates

This might be more of a philosophical debate, but here is what I have: Two controls which share a Javascript resource library to call a webservice. They are ususally used in conjunction with each other, but not always. The javacsript file they both reference is not easily separated. The javascript file should not be added to every pa...

long dropdown menu solution

Chris from css-tricks.com created a beautiful solution for long dropdown menu's: here I implemented this on the following page: onomadesign.com/wordpress/portfolio/identity-design, on the upper right side. But I want this submenu to be visible all the time, so there is no need for clicking 'projects'. Could someone help me with that? ...