jquery

Edit in Place Update Script Security

I'm using an Edit in Place jquery plugin which needs to post the data to a script that will do the actual database update. The URL to this update script is easily viewable in the html source as well as with Firebug, so I need to add some sort of authentication check before the update is processed. This is of course so the user can't jus...

Disable browsers vertical and horizontal scrollbars

Hi guys, Is it possible to disable the browsers vertical and horizontal scrollbars using jQuery or javascript? ...

Relative Positioning of DIV

Hi there, There is div named "dvUsers". there is an anchor tag "lnkUsers". When one clicks on anchortag, the div must open like a popup div just below it. Also the divs relative position should be maintained at window resize and all. How to do that using javascript/jquery? ...

JQuery UI Tabs Causing Screen to "Jump"

I'm using the latest version of the JQuery UI tabs. I have tabs positioned toward the bottom of the page. Every time I click a tab, the screen jumps toward the top. How can I prevent this from happening? See this example: http://5bosses.com/examples/tabs/sample_tabs.html ...

Asp.Net MVC JQuery goodness

I've been developing a simple website using asp.net MVC and I'm starting to add some JQuery\JSON goodness. My problem is up until now all my 'Views' have been strongly typed and I've been building the view based on data from ViewData.Model.MyViewsData. Now once the view has been rendered and I do a Ajax style request I get new data b...

jQuery Toggle State

Here's the quick and skinny of my issue: $("a").toggle(function() { /*function A*/ }, function() { /*function B*/ }); Inside function A a form is displayed. If the user successfully completes the form, the form is hidden again (returning to it's original state). Inside function B the same form is hidden. The theory behind this is th...

structuring large web application for multiple developers

I've got several developers about to start working on the front end of a jquery-based web application. How can we structure the application so that multiple developers can work on the ui at the same time. The end result for the user will just be one web "page", but I don't all of the client development to occur in one file. There is alre...

does YUI have selectors like in jQuery?

Does YUI have selector methods like jQuery? e.g. get me all div's that are children of that have links in them? ...

jQuery Animation - Smooth Size Transition

So this might be really simple, but I haven't been able to find any examples to learn off of yet, so please bear with me. ;) Here's basically what I want to do: <div>Lots of content! Lots of content! Lots of content! ...</div> .... $("div").html("Itsy-bitsy bit of content!"); I want to smoothly animate between the dimensions of t...

jQuery ancestors using jQuery objects

I'd like to check ancestry using two jQuery objects. They don't have IDs, and are only going to be available as jQuery objects (or DOM nodes if you called get()). jQuery's is() only works with expressions, so this code would be ideal but will not work: var someDiv = $('#div'); $('a').click(function() { if ($(this).parents().is(som...

Using jquery in Rails

I am planning to use jquery in Rails instead of prototype. I am not sure to use jRails or to use plain jquery and stay away from RJS. What do you think about this? EDIT: Two weeks later I found this http://www.loudthinking.com/posts/32-myth-3-rails-forces-you-to-use-prototype EDIT: This screencast is interesting too. ...

jCarousel -help with new skin

I'm creating a new theme for the jCarousel component that I'll be using for my web site and the dimension for this component will be: width:485px , height:161px including the two arrows and what i want is to have 3 items per cycle each having the a dimension of 140X100 (width X height) with 5px margin, and 3/4 of the skin is done but I'm...

Get an array of list element contents in jQuery

I have a structure like this: <ul> <li>text1</li> <li>text2</li> <li>text3</li> </ul> How do I use javascript or jQuery to get the text as an array? ['text1', 'text2', 'text3'] My plan after this is to assemble it into a string, probably using .join(', '), and get it in a format like this: '"text1", "text2", "text3"' ...

JavaScript - How do you organize this mess?!?

As JavaScript frameworks like jQuery make client side web applications richer and more functional, I've started to notice one problem... How in the world do you keep this organized? Put all your handlers in one spot and write functions for all the events? Create function/classes to wrap all your functionality? Write like crazy and jus...

Modifying form values with beforeSubmit with jQuery ajaxSubmit?

I have a form I am submitting using jQuery's ajaxSubmit function from the Forms plugin. I'm trying to add a form name/value pair to the form data just before submission occurs. My plan is to modify the form data in the beforeSubmit event handler. Given a function that looks like: function handleActionFormBeforeSubmit(formData, form, op...

Using jQuery tableSorter on dynamically modified table

I am using the jQuery tableSorter plugin on a page. Unfortunatley, the table that is being sorted is dynamically modified, and when I sort after adding an element, the element disappears, restoring the table to the state that it was in when the tableSorter was created. Is there any way that i can force tableSorter to rescan the page s...

jQuery Text to Link Script?

Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations? For example: http://www.google.com would automatically turn into <a href="http://www.google.com"&gt;http://www.google.com&lt;/a&gt; Note: I am wanting this because I don't want to go...

using MVC view page + $(document).ready

Hi, I've editing this original question as I think I've narrowed down the problem... I have one view in my site that will not let me put $document.ready within a masterpage contentplaceholder. I've stripped this page to the bare bones and the only thing that is special about it is it has a custom route in global.asax routes.MapRoute(...

JQuery: how to add XML node?

Assume parentNode exists and I want to add an element "Child" to it. Following intutive code won't work: $("<Child/>").appendTo(parentNode); Because jQuery will create a node <CHILD> and append to parentNode. So I am wondering, how do you add xml child node in jQuery? p.s. Following ugly code will work, but it is really really ugly:...

jQuery: how to get xml system independently?

Suppose xmlNode is a XML DOM node, how do you get its xml system independently? For IE, it is xmlNode.xml; For netscape, it is new XMLSerializer().serializeToString(xmlNode). In jQuery, is there any built-in method I can leverage? ...