jquery

Creating jquery 3 step sign up

I am looking for the best solution to create a 3 step sign up process on 1 page. I am currently using jquery cycle, and the techniques being used in version 1.3.2 do not work when telling it to slide, it seems to work only in 1.3.1, there is also a issue of the size, slide 3 is much longer than slide 1 and the height it generates is too ...

Limit Word Count of A Textfield in JQuery

I'm modding some jquery code to limit the word count of a textfield but I can't figure out how to get the value. Here's the code: <script> var $limitWords = 20; var $wordCount = $('#count').val(); $(document).ready(function(){ $("#edit-field-message-0-value").keyup(function() { $('#count').html($('#edit-field-message-0-...

mootools sortables vs jquery sortables effect

Hello, I've been using mootools for some time and trying jQuery for a week so this probably is a newbie question - though I've found nothing in the manuals. In mootools, when you use the option clone in a sortables list it creates a clone of your image/object that helps you visualize where the image/object will be droppped - works gre...

all ajax ready event on jquery

i'm using $(document).ready but that will not work for all ajax ready. I need a callback event after all ajax load finished in jquery. How to write this event using jquery? ...

How to "lock" columns in an HTML table?

I am pulling back a large amount of tabular data that I wish to display using a table. The only caveat is that I would like to be able to "lock" a few of the columns (fname/lname/email) so that when users scroll horizontally those columns always stay "locked" in place and are visible. I have done something similar to this before but th...

Jquery tranversing DOM to find consecutives values

Thanks for looking, all helpful answers are voted up. This is my markup. I'm trying to find 2 consecutive divs cmk1 and cmk2 with the content RIGHT and HERE in consecutive order. div id 1 shouldn't match because there's a right but not here. div id 3 shouldn't match because there's a here but no right. I'm trying to find something t...

Passing query string to JS window.open in IE7 doesn't work?

I can run the following via the address bar in Firefox just fine: javascript:window.open("http://my.hostname.com/test.php?id=12345", "exportWindow"); When I print_r($_GET), I see the $_GET array with the values I specified in the URL. But when I do so in IE7, it just prints "null" on screen. EDIT Turns out that was due to a popup bl...

Reference to an object from a callback function in jQuery.

I have following situation. In a constructor of a pseudo class I attach a click event to an element. When the event is triggered I would like to refer from the callback function to the object where the event was set. Code of the pseudo class constructor function MyClass(){ this.myClassAttribute = "A class attribute"; // here `this...

jQuery $(document).ready fires on one computer and not others

Hello, I have the following jQuery code (simplified for question purposes): $(document).ready(function() { alert("Test"); }); Its inside a the of a .NET master page. This code fires on some of our computers but not on others. All users have the same version of IE and I also have tested this on Firefox with the same results. ...

ASP.NET Ajax - Using jQuery BlockUI in two places; can I unblock a specific div?

I'm using the jQuery BlockUI Plugin (v2) because it rocks the casbah. For every ASP.NET AJAX request made on the page, I use the InitializeRequest and EndRequest client-side events to block and unblock the UI, respectively -- this allows me to easily throw up a "Please wait..." dialog. Code is as follows: var prm = Sys.WebForms.PageReq...

Modify Array to Output in JSON using PHP and jQuery

Hello, I'm currently working with the jQuery Autocomplete Plugin. The code they provided in the demonstration is: <?php $q = strtolower($_GET["q"]); $items = array( "Peter Pan"=>"[email protected]", "Molly"=>"[email protected]", ); $result = array(); foreach ($items as $key) { if (strpos(strtolower($key), $q) !== false) { a...

Twitter notification ajax bar, how did they do it?

I'm trying to get that cool, ajax sliding bar that twitter has (its slightly transparent, white). I tried looking at the html/css, but it seems that they dynamically inject the various DOM layers. Does someone know how they implemented it? I really want to learn how to do this. ...

Using Bookmarks with jQuery Address

I am using jQuery's Address plugin (website) to enable the back/forward buttons on my website. I would REALLY like to also have the ability for people to bookmark pages and to copy the address from the address bar and share it with friends. Address claims it can do this, so then what am I doing wrong. My code is function BackButton()...

Hiding a div using JQuery

Hi, I want to hide a div using Javascript, as soon as the page gets loaded in the browser. I am able to do that, if i use the following code : document.getElementById("div_id").style.display='none'; But, when i try to do the same thing using JQuery,i notice that the div is visible for a couple of seconds after page loads,and then it ...

shift-reload in FF gives unexpected results

dear javascript mavins, I'm presenting a simple animation using img.src replace and the <canvas> tag. At present it's only expected to work in FireFox (FF 3.5.3, Mac OS X 10.5.5), so cross-browser compatibility isn't (yet) an issue. When the page is first loaded, or loaded into an new window or tab, all seems to work as expected, and t...

IE7 will not remove active state from navigation until hover

The site is http://greenvillenext.com/site (NOTE: please ignore the crazy load times and everything, I already know). Here's what's going on: clicking an item in the main navigation (the five links across the top) gives that item a class of "active" and when you click a different one it removes the active class from that one and adds it...

C# html/css selector

Hello, I'm wondering if there's a jQuery-like css selector that can be used in C#. Currently, I'm parsing some html strings using regex and thought it would be much nicer to have something like the css selector in jQuery to match my desired elements. Let me know if I'm not too clear on the subject. Thanks ...

IE can't see objects in .load DIV Jquery

I have a form loading on a page that loads with an onclick event on the parent page using the following javascript. It gets loaded in a DIV. function loadContent(elementSelector, sourceURL) { $(""+elementSelector+"").load("http://myurl.co.nz/"+sourceURL+""); } Then on another on click event (within the new form) one of the fields in ...

Create a div containing target div using jQuery

I think that this should be easy, but i'm not able to get it working. I want to target a div or other element using jQuery and then dinamically create a div containing the targeted element, for example: jQuery ('.myclass') how can i create a div with the background-color attribute set to white that contains 'myclass' element? Initiall...

Creating a shortcut key for the letter j to redirect to a url using jquery

Using jquery (if it helps), I'd like to create a shortcut key for the letter 'j' so when someone clicks on the keyboard letter 'j', it redirects to a webpage. is this possible? ...