jquery

fancybox: finding anchor from which fancybox was called

Inside fancybox window I would like to retrieve html element (anchor probably) from which fancybox was called. How can this be done? ...

Why can I not update settings on datepicker using change in jQuery?

I am trying to create two different sets of settings for datepicker(http://keith-wood.name/datepick.html) when the user picks different radiobuttons in a group. Here's my code: $("input[name='shipping_time_english']").change(function(){ datepicker(); }); function datepicker() { ...

Hide list data when starting sorting

The attached code allows list elements to be dragged into a sortable area. Problem: Add three list elements, expand the first one and move it downwards. Because of fieldset's height (150px), you'll have to move it below its own height to apply the sorting. To fix this I tried adding a class (.hideImBeingDragged) when the sorting starts,...

jquery - fadeOut/fadeIn background image on hover

I have a <div> which contains a background image, the <div> sits within a toolbar in HTML. HTML: <div id="toolbar"> <div class="image">&nbsp;</div> </div> CSS: #toolbar .image { background url('images/logo.png') no-repeat top left; } #toolbar .imagehover { background url('images/logoHover.png') no-repeat top left; } When the...

jQuery - Dynamically loading content, what's most efficient?

Hi, I'm wondering about this one thing. I'm starting to code a webpage where I basically want the same design all over. Where only the content is changing. So I don't want to load entire new pages where basically the same stuff gets loaded over and over again. I want to load only the contents. Now, I'm presented with two possible sol...

Nested load image with jquery

I need to load 2 or more images off screen and display them with a transition only when all of them are loaded. I'm having some issues with load() Here is my function it shows a div with a loading message, when the img is loaded it hide the loadig message and call a function with the visual transition (transizione();) function load_im...

Validation/binding in Symfony Ajax form submission?

Hi, I'm using Symfony 1.4. I'm posting a form via Jquery ajax to an action which seems to work fine except that it's unable to bind the form and access the variables in the normal symfony way: if ($request->isXmlHttpRequest()) { $this->form = new MessageForm(); if($request->isMethod('post')) { $this->form->bind($r...

jquery text area problem

i have one text area <textarea name="message" id="message" class="text_field" style="height:200px; width:500px"></textarea> if i type data in the text area like this hello this is my test message bye 'abc' i use following statement to get data from text area var message = $('#message'...

How to unwrap text using jQuery?

How to unwrap a text from a HTML tag using jQUery? For instance, how to transform this HTML <p>A <i>sentence</i> with <b>bold words</b>.</p> into (i.e. remove the bold tags) <p>A <i>sentence</i> with bold words.</p> using only jQuery and no regex? ...

JavaScript return and php problem (true,false)

now i made JavaScript code (jquery code) and when i click ok it return true if i want true and false if i want false now the problem is php not consider true as php keyword true its just consider it a word like any other word and i must make it like this if($post == 'true') and i want make it like this if($post) // retuen true if $p...

How can I change Background colour and Font of any row in JQGrid?

Iam trying to change the background colour of any row in JQGrid, Still I don't have any solution. Can anybody help me? Thanks in advance. ...

Use jQuery to create edit in place div and have new div available for edit just beneath it

I'm new to jQuery and would like to know if it is possible to create and edit-in-place div that I can click on, type some text, have it save and immediately have another div dynamically pop up beneath it that will allow the same capability to type in and save, so on and so forth. If anyone has any ideas it would be greatly appreciated. ...

jQuery + JSONP return data empty?

Hi - I need to access data on a subdomain I've been trying to use JSONP which jQuery has support for. The data that I'm accessing on the subdomain is a static (regenerated) .json file (http://www.example.com/data.json) I was running into "Invalid Label Error" errors and realized the data needed to be wrapped in parenthesis and use ?ca...

How can I perform sorting on any column in ClientSide JQGrid?

I want to sort my records by Column, I am using Clinet Side verson of JQGrid. Can anybnody tell me, how can I sort records in my JQGrid. Thanks in Advance. ...

Define cursor on element

Hi all, I try to explain my problem. I have a <div contenteditable="true" id="my_editeur>, where I have defined a keypress “event” which allow me to add a ‘p’ when the user clicks on “enter”. It functions well, but I would like define the cursor on this new ‘p’ element, because currently my cursor stays on the first 'p' element. I ...

simple jquery event handler

Hi, having some real problems with jquery at the moment. Basically what I have so far is. The form is submitted once the form is submitted a grey box pop's up with the relevant infomation. What I need to do though is refresh the whole page then allow the grey box to appear. I have the following code $("#ex1Act").submit(function() {...

Can I load data from an external page via AJAX?

I've just starting learning jQuery and AJAX. I'm able to load a local page (on my disk) into a div via jQuery.load(), but external sites don't seem to work. I've even used wireshark to check if the data is being sent from the server (it is). Sample code is below: <html> <head> <script src='jquery-1.4.2.min.js'></script> <script>...

jquery form validation > FIREFOX PROBLEM

This is a form validation that will hide the submit button if the input field(s) are not valid, and show it if all the input fields are valid. Why is the submit button kept invisible in firefox after all inputs have been made valid once again, when that doesn't happen in other browsers? This is the javascript in question: $(document)....

Superfish, 2 menus open at once - how to prevent?

I have a super fish menu, the delay is set to 800, but when I move from one drop-down to another it still shows the previous drop-down and the new drop-down at the same time. until the 800ms delay is over then the previous drop-down goes away. I do not want to change the delay, but if a new drop-down is opened, I want the previously open...

what is the correct way to use flexigrid onError

I looked around and found that there is an onerror function for flexigrid but I can seem to find how to use it andy have any idea how to use it so I don't have to mod the flexigrid.js ...