jquery

Problems with multi-line comments jquery

Hello, I'm making a image website with a bunch of images on the website, and below every image there is possibility of commenting the image and after that comments gets displayed without page loading and the comment content, the problem is when I have long comments which break the current line they don't get displayed since my comment b...

checkboxes jquery

<% foreach (var i in (IEnumerable<MvcApplication1.Models.Group>)ViewData["Group"]) { %> <input type="checkbox" name="Inhoud" value="<%= i.int_GroupId %>" /> <%= i.vcr_GroupName %><br /><br />(Checkboxes here) <% foreach (var ik in (IEnumerable<MvcApplication1.Models.Feature>)ViewData["Feature"]) { %> ...

Using YQL and Jquery to check URL validity

The answer in this post http://stackoverflow.com/questions/2119680/use-jquery-to-check-if-a-url-on-another-domain-is-404-or-not shows how to use YQL in Jquery to check if URL is valid or not. However, I can't get this to work for me. The only difference I can think of is that my URL is a text file (http://mycrossdomain.com/sometext.txt) ...

Disable form submission via Enter key on only _some fields

I want to retain the conventional 'form submits when i press Enter' behavior because users are familiar with. But by reflex, they often hit enter when they finish with a text input box - but before they are actually done with the complete form. I'd like to hijack the Enter key only when then focus is on a certain class of input. Looki...

jQuery ajax : error while passing variables in data

Hello, just a quick question : var h = $('#hebergeurJQUERY').val(); var t = $('#typeJQUERY').val(); function requestData() { $.ajax({ type: "GET", url: '12months/months.php', data : "hosting="+h+"&type="+t+"", ...... doesnt work while data : "hosting=Something&type=Something", Works. Any idea to something ...

Is there a way to disable Tiny Scrolling for just one div?

Didn't want to create a new question so I'll just refrase this one, is there a way to disable the Tiny Scrolling plugin for just one particular div? Thanks :) ...

jQuery validation plugin: accept only alphabetical characters?

I'd like to use jQuery's validation plugin to validate a field that only accepts alphabetical characters, but there doesn't seem to be a defined rule for it. I've searched google but I've found nothing useful. Any ideas? Appreciate your help. ...

Cannot pass null to server using jQuery AJAX. Value received at the server is the string "null".

I am converting a javascript/php/ajax application to use jQuery to ensure compatibility with browsers other than Firefox. I am having trouble passing true, false, and null values using jQuery's ajax function. Javascript code: $.ajax ( { url : <server_url>, dataType: 'json', type : 'POST', success : re...

Adding date to multiple fields via datepicker

i have a form in drupal with jquery based date module. there are multiple fields with date picker enabled. i want to set the value of all of them (they all have class .date-popup-init) to the value of the first field (#edit-field, the 'from' date) when that field is set. my code so far: <script type="text/javascript"> var DatePi...

Superfish: How to keep sub menu open after it has been clicked

I'm having the following scenario. I have a menu and if one hovers over the menu a sub menu appears and if mouse moves out the sub menu disappears, now I want the following if I click on the on a item in the sub menu, I want the sub-menu to remain open, when the new page has been loaded. I'm using superfish Jquery plugin for this. Is th...

Jquery how to do image show hid.

I am new to html especially to jquery but I want to show hide a photo on click. I pulled some sample code which is exactly what I want. I did not write this code and I am wanting to modify the code for an image versus a div. The code is noted below. I have tried this several different ways and the My goal: 1. To hide an image vers...

jQuery | Click child, hides parent

Hey, I have a list of using ul and li: <span class="important">Show/Hide</span> <div id="important" class="hidden"> <ul class="sub"> <li> Value one </li> <li class="child"> <img src="../img/close.png" /> </li> </ul> </div> $(".important").click(function () { $("#important"...

toJSON "Object doesn't support this property or method"

I've a Javascript Class and its method. But when i call it toJSON is generating an error. I couldn't figure out why this error is happening. try { if (this.TabloEkId == undefined || this.TabloEkId == "") { throw errEksikVeri; } fAjaxSetup(fBefore, fSuccess, fError, fComplete); $.ajax({ type: "POST", ...

jQuery.param() - doesn't serialize javascript Date objects?

jQuery.param({foo: 1}); // => "foo=1" - SUCCESS! jQuery.param({bar: new Date()}); // => "" - OUCH! There is no problem with encodeURIComponent(new Date()), which is what I would have thought param is calling for each member. Also, explicitly using "traditional" param (e.g. jQuery.param(xxx, true)) DOES serialize the dat...

using jquery with database

can some one give me some perfect example or point me to the blog or forum where I can find jquery link with database. That is jquery doing some manuplation on the values from the database ? especially checkboxes and radio button I only want the example linking client side and server side interaction using jquery ...

jQuery.inArray() - eclipse tells me this function is not defined

I have used the jQuery inArray function, but Eclipse tells me that this function is undefined. I don't understand how this can be so if it comes from the jQuery API. preId is an integer, and queryPreds is an array. Previously I was doing the if() statement a different way, which was tedious and prone to error but generally worked. I re...

Jquery doesn't post for some reason

I wrote this small page and for some reason when I cilck on the submit nothing happens (checked on firebug, no submit is happening) <head> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> $('form#login').submit(function() { $.ajax({ type: 'P...

Run javascript after form submission in update panel?

This is driving me crazy! I have read at least 5 questions on here closely related to my problem, and probably 5 or so more pages just from googling. I just don't get it. I am trying to have a jqueryui dialog come up after a user fills out a form saying 'registration submitted' and then redirecting to another page, but I cannot for the ...

live fcdraggable for ajax loaded events?

is there a way to make fcdraggable live so it works with ajax loaded external events? right now i'm loading the draggable function after each ajax call, but i'm wondering if there is a more elegant solution using live() ...

Jquery UI Datepicker Date Range Inline Problem

Hey Guys, i have a big Problem with jQuery UI Datepicker. I have two Input Fields "From Date" and "To Date". When i choose a From Date - a Daterange of only 5 Days should appear on the "To Date" Picker. I used the Code from "Russ Cam" http://stackoverflow.com/questions/330737/jquery-datepicker-2-inputs-textboxes-and-restricting-range ...