jquery

Change hyperlinks dynamically using jquery

Hi, I want to change the param of link dynamically. For e.g. Link1 Link2 Link3 by default their url is ?item=text i.e. for link1(href="?item=link1") etc.. but when i click link1 the url of link2 and link3 should be link2(?item=link2&item=link1) link3(?item=link3&item=link1) any idea how to acheive this? Thanks, ...

validation instruction

What are the ways to validate form data (in ASP.NET MVC and C#) such as input fields. I try jquery validator but failed. Are there other ways? ...

Jquery not selector problem

First of all thank you for your consideration. I have an html document with a wrapper (container) inside. I want to make it so that when somebody clicks on the body section of the page, they are redirected to xxx, but if they click on the wrapper (the content of the page) they don't get redirected. I have tried everything but the jquery...

How can I set a variable in my pages javascript based on my controller action in ASP.NET MVC?

So, I have a page that looks like the following: This is my basic messaging inbox. I have 2 pages right now, Inbox and Sent (there will eventually be others). These both share the same View, and just have 2 different actions to populate the appropriate data. The elements on the right-hand side (the message list) is a partial view wh...

Uploadify Minimum Image Width And Height

So I am using the Uplodify plugin to allow users to upload multiple images at once. The problem is I need to set a minimum width and height for images. Let's say 150x150px is the smallest image users can upload. How can I set this limitation in the Uploadify plugin? When user tries to upload smaller picture, I would like to display some...

Communicating to Flash via Jquery on a Smarty site (doesn't work) need help

I'm trying to start my animation from an html button via jquery, but it just refuses to work. I'm using the following jquery flash plugin: http://jquery.lukelutman.com/plugins/flash/ I've made the same function work on a non-Smarty site, so I'm thinking it has to do with that or something having to do with the all the extra markup on t...

Wordpress inline label (jQuery)

I'm building my new theme and I've a problem. I use jQuey to display the input's label into the input : this.label2value = function(){ var inactive = "inactive"; var active = "active"; var focused = "focused"; $("label").each(function(){ obj = document.getElementById($(this).attr("for")); if(($(obj).attr("...

Jquery: Matching indexes of two arrays, string and object to replace text in object?

I have two arrays, one is full of strings, the other is an array of objects. The indexes on each correspond, and I want to replace the text of each of the objects in my object array with the corresponding text in my string array. For example, I have an array like this: var textarr = ["value1", "value2", "value3"] and a Jquery object ...

Using JQuery Datepicker To Only Show Months

Hello, I'm looking to be able to use the JQuery UI Datepicker to allow a user to select a particular month, without the option to select a particular day in that month. The forward and previous buttons on the Datepicker would take the user to different years, instead of different months. The format that appears in the Datepicker textbox...

Is there anyway to unit test javascript functions defined within a function?

Hi all: I would just like to ask whether I would be able to unit test the code inside ExternalFunction within the document.ready? I have tried many things for a while now and still couldn't work out how, and am at my wits end. $(document).ready(function () { var originalExternalFunction = ExternalFunction; ExternalFunction = f...

jquery each css array

I have made an each statement which iterates through each class item found. At the same time there is another item with a different class but has the same key. I am needing to get the key from the first each and put it into the 2nd item without having to loop a second time. $('.searchby').each(function(k,v){ // looping through .searchby...

Disabiling CKEditor, Re-enabling with JS

Hello, I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning the user can not edit the text in the note? The reason I want to use CKEditor in the view page is for 2 reasons: 1. I can use JavaScript to move the ed...

Looping javascript get requests

I've got a javascript 101 question. I'm using a nice graphing library (flot), and plotting multiple graphs on a single page. Each graph is a div, with a attribute set that tells the graph where to grab it's data from. For example, the HTML might be: <div class="line-chart" data-src='/revenue.js'></div> <div class="scatter-chart" data...

Is there a one-page jQuery v1.3 cheat sheet?

I found this one for jQuery 1.2. I'm just learning it, not clear on what's different. I've seen the SO question Good Cheat Sheets? but didn't find any reference to a jQuery v1.3 sheet. If none exists, who will make one? I'd be forever in your debt. ...ok, maybe not forever. How about "I'd appreciate it." ...

jQuery plugin question - can I modify a core method?

I've developed a few jQuery plugins before which follow the format of either $('#something').myPlugin() or $.myPlugin(). I know you can also write your own selectors. What I was wondering if I could write a plugin that changes how the css() method works, that is, if I request a shorthand CSS attribute (such as padding) I could return s...

How to apply inline edit (in jQuery) for matched element?

This perhaps is a more general jQuery (or even Javascript) question: Basically I am using jquery-in-place-editor plugin for a membership portal that I am building, where this page lists all members from a database table. So you can imagine this page has a number of profiles with typical fields like name, profile, profile image, and email...

update the filter bar after calling fnFilter when using the datatable jquery plugin

when using the jquery datatable plugin when you call fnFilter in the datatables plugin, it filters the table but doesn't actually put the value you set in the filter bar. Is there anyway to stick the value you programatically set into the filter bar. ...

live for jquery elastic plugin?

i use jquery elastic plugin for expanding a textbox. it works great but i want to use this on a textbox that is added to the DOM with ajax but unfortunately this plugin has no live built-in function. is there a way to solve this? http://www.unwrongest.com/projects/elastic/ ...

jQuery Uploadify

I have a simple question related to the jquery Uploadify plugin because I am not sure I understand the documentation. Please look here http://www.uploadify.com/documentation/ at the onComplete event. It says there are arguments sent to that function including the response argument. How can I access those arguments? If I do alert(respon...

jquery - how do I make a select menu display itself without clicking it?

Using jquery, how would I make a SELECT menu display itself without actually clicking on it? I tried sending a click() event (in Safari and Firefox) but no luck. $('#myselectmenu').click(); Also tried focus() and select() (and various combinations of the three). Any ideas? Thanks! ...