jquery

Uploadify refuses to upload WMV, FLV and MP4 files - SOLVED

The uploadify plugin for JQuery seems very good and works for most file types. However, it allows me to upload all file types apart from the ones I need. Uploads of any other type work. I have already tried changing the fileExt parameter and also tried removing it altogether. I have testing in Google Chrome, IE7 and Firefox and none ...

Can this jQuery code snippet be shortened?

I have just stared using jQuery and although following code gets the job done, I have a feeling that it can be shortened. var accountAddress = $(document.createElement("input")).addClass("readOnly").attr("contentEditable", "false").attr("id", "d_accountAddress"); $("#customerid_c").next().next().next().append(accountAddress); If it is...

Performing Arithmetic on Currency Values in the form of Text using Javascript

Hello all, I am using JQuery to get the contents of a div, which only contains a price in dollars and I would like to add $99 to it, but its text, so when I do the below it won't work. $('#price_' + part[0]).text($('#price_' + part[0]).text() + 99); //Changes the div contents to $10099 - if it the contents was $100 to start with So t...

how to create drop down button like gmail "move to" button?

Hi i have a simple file upload system coded in php. As part of increasing the UI simplicity, i want to have a similar gmail "Move To" button where I can check multiple checkboxes and then after clicking one of the many possible entries in the drop down generated by the button, some postback takes place. Please advise. Thank you. Id...

Jquery UI Slider focus issue

I have a problem with the jQuery UI Slider. The issue also appears on the demo. It is more obvious in Chrome - if you go to http://jqueryui.com/demos/slider/#steps and slide the slider, you'll not see anything wrong. If you then click "New Window" or go to (http://jqueryui.com/demos/slider/steps.html) to view the demo in a new window...

Live Jquery Form Validation and CakePHP Validation.

I know that CakePHP has very good validation out of the box, but I want to perform live JS validation on my form before it is submitted. I've played with the jquery validation plugin, which is exactly the kind of thing I want for the front end. (Its for a newsletter subscribe form in a modal box). The problem is, CakePHP's validation w...

JQuery removed background from iframe

I'm trying to remove the background image on a page that's being loaded via an iframe within a lightbox effect. I have verified that body is the correct element within the iframe that's being selected, but I can't get the background image to go away. Am I missing something obvious? var body = jQuery('#fancybox-frame').contents().find(...

jquery load based on href

Hi, I am having a link <a id="test" href="text.php">test</a> I have the following jquery code $("#test").live("click", function(){ $("#myDiv").load($("#text").attr("href")); }); trying to load the href of #test inside myDiv. But of course when click, start .load the href ...

jQuery drawing and modifying lines and positions

I want to allow people to select a feature region on an image using jQuery. This should work similarly to the Facebook tagger except once someone "tags" an area of the image an ellipse should appear with the ability for the user to rotate and scale it. How can I achieve this using jQuery? ...

Call code behind method from Jquery

Hi, I have this question: How could I call a codebehind method from jquery? I have a web page: (ForgetPass.aspx) with its respective codebehind (ForgetPass.aspx.cs). On the codebehind I have a public method: public void ChangeSession(string strChangeSession) { some stuff... } When I was working on MVC, calling that method was as ...

jQuery plugin validate() : apply plugin to ajax injected form

My issue here is quite simple : i'm trying to use the jQuery validate plugin to a form that gets injected after certain user actions. My problem mostly is that : I could use live support to bind the change event over inputs, like this $("#adresseLivraisonPro").live('change',function(e){ $("#adresseLivraisonPro").validate({ ...

Use jquery to create a multidimensional array

I'd like to use jquery and a multidemensional array to show a random quote plus the name of the individual who wrote it as a separate item. I'll then be able to use css to style them differently. The quote will change upon page refresh. So far i have this code which combines the quote and the name and person who wrote it: $(document)....

Is there any events available for the reset option for input search ?

In HTML5 there is a new input type, 'search'. On most browser it's just remain to a simple 'text' input, but for webkit based browsers, it adds a little cross to reset the input. I'd like to be able to handle this, is there an event for that ? ...

Need Magic jQuery Replacement for Selectbox Dropdown Form Element. Thank you!

Hello! I'm stuck on a problem and, after what seems like days of searching for a solution, I'm reaching out to Stack Overflow for help. I'm trying to replace a standard dropdown form element with a Textbox and a Div containing an unordered list. I'd prefer to have the solution be based on jQuery, but am open to alternatives. I've foun...

copying link id to an input field

The code works fine when links are images. But I have a problem when there are flash movies. Another page opens with undefined in the address bar when it needs to copy the link id to imagesID input box. <script type="text/javascript"> var $input = $("#imagesID"); // <-- your input field $('a.thumb').click(function() { var value =...

How to fill a Label.Text - Property via jQuery

Hello, I use ASP.NET and have a label control on my page, which I fill with the jQuery-Command $('#<%= myLabel.ClientID %>').html(content); .val() does not seem to work with this. Somehow, I have Problems getting the content in code-behind. In the code, the myLabel.Text-Property is still empty. ...

Creating a border around an HTML panel with custom images

I'm looking for the best way to create a custom border around an HTML panel. I have a set of images for the sides, corners etc. I need a good way to place them and stretch the sides dynamically to match the panel size. If there is a jQuery plugin to do this I would prefer using it. UPDATE: My main target platform is IE7. So it has to wo...

JavaScript: Changing src-attribute of a embed-tag

I have the following scenario. I show the user some audio files from the server. The user clicks on one, then onFileSelected is eventually executed with both the selected folder and file. What the function does is change the source from the embedded object. So in a way, it is a preview of the selected file before accepting it and save t...

Create/Edit/Save data in a jQuery pop-up for ASP.NET-MVC and Linq2Sql

I have a MVC page which allows creation and editing of a subcontract. When the user has to select a company for the subcontract, I would like for them to have the option to create a new company. I've made a jQuery pop-up with the company fields, but I don't know how to then save this information to the company table. I would also like...

Make alt tag display quicker

Is there anyway to get the alt tag to display quicker? Also, I notice it doesn't show in all browsers. I know I should craft a javascript tooltip but I am looking for something really lite with minimal code. ...