jquery

Why does not Modal dialog work with latest version of Jquery ?

I am a naive user of jquery 1.4.2. For showing cool modal dialog box on my webpage I am using it. It flickers when I open the modal dialog and then it disappears :) $("#AlertBox").dialog({resizable: false,modal: true,autoOpen: false, show: 'slide', position: 'center',width:405}); $("#AlertBox").css({ visibility: "visible", cursor: "poi...

JQuery modal box form validation

Hi, I was using a view to create an object for my specific project, but now I have to adapt this to another requirements, such as the creation of this object must be integrated in the creation of another one. The thing is, that this object must be created before starting to create the other one, and the way of doing it will be poping ...

jQuery NewBie Questions: What's the deal with $(document).(ready) ?

Hello, I am newbie to jQuery, just trying to learn it since last couple of days. In my office, there are few experience JavaScript Developer and they work mainly with jQuery for all their needs and whenever I got and talk to them to get some better understanding of how jQuery works and first they say is that on $(document).(ready) you ...

Accessible way to add form elements dynamically (jQuery)

Hi, I'm setting up a form in which multiple entries can potentially be made (via an Add more button) for one of the qestions. I'm trying to figure out the best way to make this accessible without javascript and also to allow the input fields to be shown dynamically each time the Add button is clicked. There are 3 pieces of data i need to...

jquery boxy plugin: prevent multiple instances of the same dialog when clicking the link multiple times

Hi, I'm using the Boxy jQuery plugin to open dialog windows and populating it through ajax. http://onehackoranother.com/projects/jquery/boxy/ Here's my code so far: $("a.create").click(function (e) { url = $(e.target).attr('href'); Boxy.load(url, {title:'Test'}); }); This opens up a dialog alright. However, if I click the link a...

Jquery.get cannot retrieve XML from RESTful Service

I'm trying to get an XML document from a REST service using the Jquery get method, but it doesn't seem to be able to download. After only about 11 seconds, the connection dies and I receive a blank document. I've tested out the URL by accessing it through the browser, and it works (even though it takes 4 minutes to load). $(document).re...

jQuery - Callback failing if there is no options parameter

Hi, I'm attempting to build a simple plugin like this (function($) { $.fn.gpSlideOut = function(options, callback) { // default options - these are used when no others are specified $.fn.gpSlideOut.defaults = { fadeToColour: "#ffffb3", fadeToColourSpeed: 500, slideUpS...

Jquery datepicker mindate, maxdate

I have the two following datepicker objects but I cant get what I want as I am getting stuck with the minDate and maxDate options: This is to restrict the dates to future dates. What I want: restrict the dates from current date to 30 years time. What I get: restrict the dates from current date to 10 years time. $(".datepickerFuture...

How do I disable backspace when input checkboxes are focused on in jQuery?

How do I disable the backspace button when input checkboxes are focused on in jQuery? When checkboxes are focused on and I press backspace (keycode=8) the browser thinks I'm trying to go back a page and uses backspace as a history.go(-1) command. ADDITION DETAILS--- I've added this--to no avail: $("div#types input").focus(function(){ ...

Getting "The 'charCode' property of a keydown event should not be used. The value is meaningless" error in jQuery

I'm getting "The 'charCode' property of a keydown event should not be used. The value is meaningless" error in firefox using jQuery. My code looks like this: $("div#center-box div#empid-textbox input.id").keydown(function(e){ key = e.which; if(key===13){ //do something; }; }); does anyone know how to remedy this error...

jQuery code folding plugin

Does anyone know of a jquery plugin that does code folding of XML structures? ...

Load content while scrolling a div with jquery

I need to load content while scrolling a div, not window. That's my CSS code: #sidebar{ width:30%; float:right; height:455px; } #video_list{ height:100%; overflow:auto; } And this is my html code: <div id="sidebar" > <!-- other --> <div id="video_list"> </div> </div> Video_list is scrollable and the content is loaded by a...

How do I prevent form from redirecting after submission?

I have searched the site and I've found various solutions, most of them suggesting using return false; Problem is that I'm using this piece of code to submit the form: $(function() { $("#snd").click(function() { var dendar = "http://" + $("#inpt").val() + ":" + $("#pwd").val() + "secretsite.lol/something.xml"; ...

jQuery Ajax works in Firefox, fails in IE when calling Controller action

Hello there, I'm making the following jQuery ajax call to an action in ASP.NET MVC. In Firefox the async request is sent to the action in the controller and everything works fine, but in IE no request is sent to the controller. Here is the ajax call and action controller signature: $.ajax({ ...

post to page with jQuery and read response

I'm trying to post to a form using jQuery and read the results of the posted page. I have created a super simple example. $('#submit').click( function () { $.get('post.htm', { demo : "true" }, function (data) { alert('data lo...

How to change element name on Page load with jquery?

I need to know how i can change the name of a element. I have the id of that element say it is "tester" Ok the on page load problem could be solved this way. $(document).ready(function() { }); but how can i change the name of a element like this? <div id="tester" name="fun"> </div> what i want as result <div id="tester" name=...

JQuery .submit function will not submit form in IE

I have a form that submits some values to JQuery code,which then which sends off an email with the values from the form.It works perfectly in Firefox, but does not work in IE6(surprise!) or IE7. Has anyone any suggestions why? greatly appreciated?I saw on some blogs that it may have something to do with the submit button in my form but n...

jQuery - Image management

Is there a jQuery plug-in / JavaScript control that will allow me to display array of images, but with (at least) option to delete image on certain user action. Something like this: http://www.gmarwaha.com/jquery/jcarousellite/index.php but with dedicated delete button on every image. First extra option that I can think of is to rearra...

Selenium not finding LiveValidation text.

I am using the Selenium IDE to test some of my web development. I am using the JQuery LiveValidation in my code. I have an input box with some javascript behind it that will do a regular expresson and either ouput "OK" or "Error" next to the input text box based on what the user has entered. For some reason when testing with selenium t...

Populate hidden form element value on title from clicked anchor tag via Jquery

Hey all. I'm trying to set a value on a hidden form element based on a link that is clicked. I figure the best way to go about this is to pass along the anchor title attribute as the value for a particular hidden form element. This hidden form element value will need to be updated depending on the latest link that is clicked. I've scoure...