jquery

How to return XML from c# to JQuery

My program is giving me an error from jquery. I don't understand why. I works in c# but in jquery it does not using (XmlTextWriter writer = new XmlTextWriter(new StringWriter(sb))) { writer.Formatting = System.Xml.Formatting.Indented; ser.Serialize(writer, ct); XMLContent = sb....

Jquery get Hex value rather RGB

Using the following will get the RGB values of a background. $('#selector').css('backgroundColor'); Anyway to get the Hex value rather than RGB? Thx ...

$.getJson callback function is not working

I am calling a JSP by passing parameters which outputs a valid JSON as response, but still the $.getJson callback function is not getting fired. JSP page output is { "data": [ [ [ 1258185480000,4.39], [ 1258186020000,4.31], [ 1258184940000,4.39], [ 1258183560000,4.39] ] ] } The URL po...

jQuery Form Plugin + Ajax File Upload + Rails

I'm using the jQuery Form Plugin on a big ass form which includes some file fields. The back end is Ruby on Rails. I'm having trouble getting Rails to recognize the POST request type to be 'text/javascript' even though I believe I am setting it correctly. The form looks like: <form id="listing_form" method="POST" enctype="multipart/f...

jQuery sliders control each other

Hello, I have created two sliders with jQuery but each slider controls the other, how can I resolve this? $(function() { $.extend($.ui.slider.defaults, { handle: ".slider-handle", min: 0, max: 45, start: function(e,ui){ }, slide: function(e,ui){ var handleVal ...

Open popup and poulate it with data from parent window?

How can I use Javascript/jQuery to populate a popup-window with data from JS-variables in the parent page? In my example I have an array of filenames. I list at most five in the parent window and if there's more I want to provide a link that opens a popup window and lists each post in the array. So if I open a popup that contains a <ul...

Jquery Validation Central Message Many Errors

Hi everyone, I have a form that is being valdated with the Jquery Validation Plugin. I have managed to get a centeral message "Please Recheck the form", and to have the input focus on the first error. To get this, I had to override the default message of each of the errors. I was wondering if anyone could help me figure out how I can hav...

How do i dynamically adding controls in asp.net with JavaScript or JQuery.

I have a field with a 1:N relationship with some other fields. I need the user to specifier how many elements are related to that particular field to enable me create the right amount of controls dynamically through JavaScript of JQuery. I dont want to have the user enter the data repeatedly. How can i create these controls please? ...

jQuery design mistake or historical reason ?

Today is jQuery day. I found this in the documentation: blur() Returns: jQuery Triggers the blur event of each matched element. blur(fn) Returns: jQuery Bind a function to the blur event of each matched element. In other words, the behavior of the function is totally different depending if it accepts or not an a...

jquery slider -

hello, I have been implementing the jquery slider with the values using climate months.. I have to problem getting the values from January to April.. but the problem lies when the values will be from November till Feb. Is there a way to implement it? or any ideas that can help the same result will be a good help. ...

Getting AJAX content into the DOM or registering an object with jQuery via an onClick event?

I have a code setup something like below, the image is part of a block of HTML and is being loaded with AJAX so I can't get a direct handle on it using it's class or id, so I'm passing the object into a function and then picking it up with jQuery from there. I don't like this method, is there any way of registering the image (or prefera...

relpace textarea in jquery

Hey I'm trying to Replace a %%%VERSION%%% text, the text is coming from an tinyMCE editor. looks like this. $("#description textarea").val($("#description textarea").val().replace(/%%%VERSION%%%/g, STAT_VERSION_INFO)); The value of the textearea is: <textarea rows="20" cols="117" name="description" id="description">Some code vers...

Keep a permanent connection to the server while navigating a website

Hi, We are a young start-up launching a unique chat product next week. Our chat is currently based on Jabber (using Openfire as our Jabber server) via BOSH (using Punjab), with jQuery for our client side scripts. Right now our most critical issue with the current setup is with the site navigation, when navigating between pages in our we...

Is it possible to create a html file using JQuery?

Is it possible to create a html file and save it to a directory using JQuery? ...

Will jQuery's html() function reliably execute any contained scripts without weird side effects?

it appears in some limited testing i've done - that if I load a document with jQuery using .ajax() and then add it to the DOM with .html(data) that any SCRIPT tag contained in the HTML document will be executed. I'm just not sure if this is behavior I can count on? will all browsers do this? am i going to get into trouble if i'm definin...

jQuery getJSON never enters its callback function

I've been sitting with this for hours now, and I cant understand why. q is working. The URL does give me a proper JSON-response. It shows up as objects and arrays and whatnot under the JSON tab under the Net-tab in Firebug and all is fine. I've also tried with other URLs that i know work. Same thing happens. I have another function els...

JQuery or Any other Java Script Lib. for Developing Web application

Recently i completed on mid level web application where i have used telerik controls, all the developers in project used native javascript functions as well as telerik functions to work with javascript. We faced so many cross browser issues in this approach, we have solved all the issues but i am just wondering that what should be the...

lightbox promblem in master page

Hi, I am using LightBox v2.0.4 with master pages on a web site and I am having problems with the loading.gif and closelabel.gif images appearing. In lightbox.js, whenever I run the program it gives error in this line fileLoadingImage: 'images/loading.gif', fileBottomNavCloseImage: 'images/closelabel.gif', But if r...

JQuery - Select All CheckBoxes within current table only

Hi all, I have two nested repeaters in C#. The outer has some grouping information and the inner has a table with X number of checkboxes. So I will have Y number of tables. At the top of each table there will be a check box (as well as a checkbox on each row). What I want to do is be able to select all check boxes in a single table ...

jquery ajax problem in chrome

i have the following jquery code running on my page just fine in FF and IE, but chrome seems to be freaking out.. in FF and IE the call is made and the result is appended to the div. in chrome, it calls ajaxfailed on failure. the XMLHttpRequest passed to the AjaxFailed function has a status code of "200" and the statusText is "ok". the...