jquery

JQuery ajax error function is executed even if query is successfull

Hello, I'm trying to learn JQuery - and I have a small problem with ajax. I'm trying to populate a javascript array with values returned from an XML response from a page. Here's my main page (ajax.html): <html> <head> <script type="text/javascript" src="jquery/jquery.js"></script> <script type="text/javascript" src="jquery/fiber.js"></...

JQuery plugin (or otherwise JS [or amazing alternative, like Flash]) for tree editor?

I'm tearing my hair out on this one; I want / need / would like something akin to one of the many tree viewers out there, but where I can also edit the structure, the name and the type of nodes (the world doesn't just have folders and files, people). I've Googled myself silly over this, looked at which plugin I could modify to do my bidd...

Open Fancybox (or equiv) from Form input type="submit"

is there a way to get a fancybox (http://fancy.klade.lv/) or any other lightbox from submitting a FORM (with an image button)? HTML looks like this: <form action="/ACTION/FastFindObj" method="post"> <input name="fastfind" class="fastfind" value="3463" type="text"> <input name="weiter" type="submit"> </form> These won't do: $...

A big dilemma - ASP.NET and jQuery

Hi, I have a wizard style interface where I need to collect data from users. I've been asked by my managers that the information is to be collected in a step by step type process. I've decided to have a page.aspx with each step of the process as a separate user control. step1.ascx step2.ascx etc... The way it works now, is that when t...

How do i convert 5 click functions into one with changes values.

How do i convert 5 click functions into one? eg $("div#styleswitcher a.green").click(function(){ $("container").css({'background' : 'green'}); ) $("div#styleswitcher a.blue").click(function(){ $("container").css({'background' : 'blue'}); ) $("div#styleswitcher a.red").click(function(){ $("container").css({'background' : 'red'}); ) ...

jQuery selector bug? composed selector vs. simple selector & find()

Something is very awkward about my situation... i have something like this: <div id="selector"> <input type='radio' /> <input type='radio' /> <input type='radio' /> </div> if I use $("#selector input[type=radio]") all three elements are found, but if I use $("#selector").find("input[type=radio]") or even find("input") only th...

How to tackle jSON with javascript.

Fist off, here's the jSON object I created with PHPs json_encode function { "Gatwick":[ { "destination":"VCE", "destination_name":"Venezia Marco Polo" },{ "destination":"VCE", "destination_name":"Venezia Marco Polo" },{ "destination":"VCE", "destination_name":"Venezia Marco Polo" ...

submitting ajax form with jquery

I have an issue while submitting data using Jquery. When i submit the form the page is getting refreshed instead of updating div. Following is my code <% using (Ajax.BeginForm("getAjaxTab2", new AjaxOptions { UpdateTargetId = "tabs-1", InsertionMode = InsertionMode.Replace, OnSuc...

jQuery readonly slider - how to do?

How can I have a jQuery slider that is readonly? One that would display a value but the user wouldn't be allowed to move it? Thanks ...

jQuery disable a link

Hey, Anyone know how to disable a link in jquery WITHOUT using return false;? Specifically, what I'm trying to do is disable the link of an item, performing a click on it using jquery which triggers some stuff, then re-enabling that link so that if it's clicked again it works as default. Thanks. Dave UPDATE Here's the code. What it n...

First Time Script

Hi, when you first land on this site you show a first time div tag appear up top (like a toolbar) which sits offering a link to the FAQ page. Nice touch! Is this done with jQuery or do you have an example of the code? Any help appreciated. Thanks! ...

jqGrid and ASP.NET MVC URL posting problem

Hi all, I have a problem with jqGrid and ASP.NET MVC framework. Namely, jqGrid is working fine, until the point when I have in address bar URL like this: http://[domain]/Controller/Action It gives me JS error: "Object doesn't support this property or method". When URL is like this: http://[domain]/Controller everything is working...

Style table cells using jQuery

I'm trying to style table cells within a table based upon whether or not the contain the character | in the url or not (don't ask, dealing with SharePoint). Sample HTML; <table> <tr> <td class="ms-cal-workitem"> <table> <tr> <td class="ms-cal-monthitem"> <a href="http://localhost:4657/1"&gt;Event 1</a> </td> </tr> </table> </td> </tr> ...

selecting & loading a jquery tab programatically

Hi, I'm having trouble trying to get this functionality to work. I would like to load a tab automatically when the page loads. I have used the following code. $tabs.tabs('select', 0); However, what's happening is that it's only selecting it and not loading it (that tab loads via ajax). Interestingly when I select another tab and then ...

jquery ajax: call function when all requests are complete

I have two concurrent ajax calls on the page. I want to call a function when both of them are complete (and successful). An inefficient solution: make ajax call A on success for call A, make call B on success for call B, call the function Unfortunately, this breaks the concurrency. Any other way I can accomplish the same effect? ...

jQuery -prototype conflict

I am using a combination of prototype and script.aculo.us to implement a lightbox effect in my asp.net page.I have also jquery included in my page.I have several DIV tags in my page,But after including the prototype file in my head of the page,I am not able to read the divs in my javascript using jquery var div = $("#divLeftSideModelsLi...

Gridview Paging with JQuery

Is it possible to handle a gridview's OnPageChanging event with JQuery? ...

jQuery UI Color Picker

I have heard that jQuery UI includes a Colo(u)r Picker but could find little documentation regarding it. Does it exist? Any decent documentation on how to implement it? I found this: http://docs.jquery.com/UI/Colorpicker But using: $("#colorpicker").colorpicker(); does not work, with Firebug telling me .colorpicker(); is not a met...

jQuery & PHP and MYSQL IE Problem

Now All of this code works fine in Firfox but in IE the divs dont change when the php infomation changes. Can some one help me please as i am working on a project and this is holding me back Thank you. Here is the jQuery Code: $.ajaxSetup({ cache: false }); $(document).ready(function(){ $("#not").css('display','none'); $("#fonline")....

jQuery problem: hover, un-hover not working

Im having a problem. This is my website http://keironlowe.x10hosting.com/ The red lines that move in the navigation bar is due to this code below. But its not working as intended. What I want is is is for the red lines to get longer on hover. But go back to normal size when you move the cursor away, but thats not working properly, it o...