jquery

retrieve framestate with jquery

ok so i collect the variable below through javascript. var frameState = $(this).attr('id'); I have radio box that chooses no mats or one mat. When a box is chosen it reloads the page I want to put the variable framestate in the url: Sidenote - the code might not look great here but it all works I just don't know how to append the var...

How to validate a file upload field using Javascript/jquery

How can I validate if the user has selected a file to upload? Edit: bumped ...

jQuery validation

Hi. I have a form <form action="/Account/Create" id="account" method="post"> <fieldset> <legend>Fields</legend> <p> <label for="Password">Password:</label> <input id="Password" name="Password" type="text" value="" /> </p> <p> <label for="OpenID">OpenID:</labe...

Div not fading with effect in Mozilla

I am using the following to fade a div with slideffect. $('div.clsBlue').eq(2).fadeOut(1000, function() { }); This fades with animation in IE7 perfectly but not in mozilla 3. Any suggestions? ...

jQuery UI Sortable - disallowing transfer into child elements.

Hi, I'm working with jQuery's UI sortables and have created a system of divs in this format; <div class='mainDiv'> <label>text: <input type='text' name='textbox' /></label> <div class='children'> <div class='mainDiv'>...</div> <div class='mainDiv'>...</div> <div class='mainDiv'> <label>text:...

How to create a servlet to return a database query in a certain div

I need to create a very simple application: I need to have a form that submits data to a servlet The servlet then queries a database to retrieve a list of reports based on the criteria given by the form The returned list of documents has to displayed in a div on a .jsp page I am not sure about the last one (number 3). I know how to c...

jQuery Animation Error on Cloned Elements

Hi there, In Firefox, this seems to be working fine - but Safari, Opera & Chrome all had issue. An error will be thrown by jQuery.ui (Line 3181) which controls the colour changing of elements, i.e. the "Highlight" effect. This only happens when trying to clone and highlight the clone in the same action, i.e. $(targetStory).after(target...

Multiple rows with Jcarousel ?

Hi Guys, I am trying to get multiple rows with jcarousel - I was wondering if someone has had success with this and can post some code to help out ? FYI - http://sorgalla.com/jcarousel/ Thanks ...

load html page with jquery and select element from it

Hello, I am having a problem with selecting an element from a previously loaded html page if I use this code, the one before last is designated too be the last in the dom-tree instead of the one that I just inserted $("div.wrapper:last").after('<div class="wrapper"></div>'); $('.wrapper:last').load('tbnote.html .pane'); $(".pa...

Weird Chrome prototype/jQuery conflict

We have an application with legacy code that relies on prototype, but we've found it to be too 'heavy' for most of the places we want to use it and and have found jQuery to be a better fit for how we work. So we're migrating to jQuery for new functionality. In the meantime we have several pages that need to load both libraries: <script...

end date greater than start date - jquery validation

how do i check/validate in jquery whether end date [textbox] is greater than start date [textbox]? ...

Change bg image when toggling an accordion menu...

I have an ccordion menu, and each menu header has a little arrow img that changes when the menu slides down and up. This is the code so far: $(document).ready(function() { $("div.menu_body").hide(); $("#menuheader div.menu_head div.detailsPanel").toggle(function() { $(this).addClass("detailsPanelSelected").parent(this).next("div....

How can I make a background clickable

I've been asked to make a sponsored background (site takeover) for one of our sites and the question arose of whether I can make the logos in the tiled background clickable. My initial thought was 'no', but the more I think about it, the more I think it'd be possible if I either used JavaScript to make the body element clickable, or fak...

Why is jQuery deleting my <img> element?

I'm using jQuery with the BlockUI plugin to block a page after a link is clicked. I'm also using a DOM element to display a message when the page is blocked. Here's a simple example of the code used: <a id="testme" href="#">Click Me</a> <script type="text/javascript"> $(document).ready(function() { $('#testme').click(function...

how do I set a .click jquery variable for use on page reload?

During the course of a page I am choosing a picture frame to frame an image with matting - that part works. What I want to do: Say The matting is set at 1 mat and the frame is set for Frame8 if I decide I want 2 mats how will I be able load frame8 when the page reloads. Right now it reverts back to the default frame. Jquery and php ar...

bind dynamicly added form too submit event with jquery

What would be the best way to handle the submit event when you have multiple forms dynamicly created with the same form id in jQuery? So far this line makes that jquery only handles the first form. $("form#noteform").submit(function(){ // do stuff }); Kind of confusing, because I really need to catch the submit of a particular form...

JQuery frontend with Java and C# backends: design choices

I have to build a multibrowser web app which should be able to be installed in both Windows and Linux servers. I've thought of using a single client-side frontend built with JQuery, and two different backends, built with java and c# respectively. The client then would use ajax calls with json to communicate with MVC frameworks on the se...

How did the guys at DeviantArt implemented the Shadowing in their images?

Hi guys, I just want to know how the guys at DeviantArt.com implemented the shadowing on each images. If you look at the thumbnails, you'll see that the images are shadowed a bit. I think they done it with Javascript because when I turned off my Javascript the shadows were gone. And they are also using jQuery btw. ...

Is there a way to call [ScriptableMember] in Asp.Net via jQuery.

I know there's a way to call [WebMethod] via jQuery ($.ajax(...)) I was wondering if it's possible to call [ScriptableMember] via jQuery. ...

Show/hide fields depening on select value

Hello, I am trying to show and hide a few form fields dependent on the value of one of my select fields, I am looking to use arrays to to hold what should be show and what should not be show for each select value, to save me from a massive switch statement, but cannot figure out to do it. I am using PHP and jQuery. Any help would be g...