jquery

IE trims beginning of content when using innerHTML if content to long

I have an ajax call to create a form for a user to fill out but if the form is too long then IE will clip off the first chunk of stuff I send through innerHTML. $.ajax({ type: "GET", cache: false, url: "new_account", data: "type=" + x + "&serviceId=" + y + "&back=" + z, beforeSend: function() { $(...

javascript/jquery loop works, but only in reverse

I am writing a task checklist using javascript and jquery for my work. What happens is the page uses AJAX to fetch data from various tables and put them all together. That part works fine. The problems start to arise when the program tries to append the data to the numbered DIVs. The function I have takes in two arrays, one for the ids...

jquery.form update target some of the time

I'm using jQuery.form plugin to .ajaxSubmit() between div's popping in and out of view (for logging and sometimes validation purposes). The user can navigate forward and backward. Some of the div's have full form data, in which case I would use the form's parent div as target:. However, the other div's contain text and navigation buttons...

How do i activate this jquery function when combined with PHP

Hi there, I would like to apologize at first instant for asking some stupid question(well not the case for me), but i cannot help it out. i must admit i do not know jQuery but i do have the basic understanding of Javascript and i am a dedicated PHP developer. i don't have any problem understanding the HTML or css. when it comes to jquer...

Jquery - check for clicks outside of a Select box

I recreated a Select box and its dropdown function using this: $(".selectBox").click(function(e) { if (!$("#dropDown").css("display") || $("#dropDown").css("display") == "none") $("#dropDown").slideDown(); else $("#dropDown").slideUp(); e.preventDefault(); }); The only problem is that if you click away from...

My jQuery ready function is firing too early... It's not ready!

I'm adding resizable to several div tags that are part of a complex page. But the $(document).ready() if executing too early. Not everything has been parsed and the resizable fails. How do I get jQuery to really wait until the document is ready? I've tried... $(document).ready() $(document).load() $(window).load() By adding a temp...

Integrating Jquery timeout code into a classic ASP form in an ASP.NET application

I wrote a Jquery function that blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time. The environment is ASP.NET (VB). We don't technically use master pages, but we do have a ...

javascript array with element ids

I have loaded an array in javascript with a select amount of input element ids on the form. Some of the input elements are radio buttons & checkboxes,. What I would like to do is something jQuery where I'm looping through my array and passing in the id like this: for(i = 0; i <= myArray.length - 1;i++){ alert($(myArray[i].val()); } ...

Does scriptaculous come with Ruby on Rails?

I read that prototype does but didn't know if that means scriptaculous does. I looked at the javascript folder and it had prototype, dragdrop, controls, effects, and application. Is that all scriptaculous? Do I just add a link to it in my layout to use it? Also, The scriptaculous website said all sorts of "big names" use it, but I've...

What is the most light weight lightbox jquery plugin?

Hi, I have been looking around, but I was wondering whats the most light weight lightbox plugin. One that does not really lag when it opens, animation is present, but minimal. I need one that can handle inline divs as well as ajax calls. Is it simply better to make your own? Thanks guys. ...

jQuery: Determine if jQuery object is root html tag

Let's say I'm writing a jQuery extension method. This method should climb the ancestor tree of an element until it reaches the document's root <html> tag, at which point it should stop. I've implemented this as shown here: $.fn.foo = function() { var $foo = this; while($foo[0] !== $(document).children()[0]) { // do stu...

Javascript link, ajax, jquery, cursor is a text editor not a hand/finger and even though the code has worked it always returns the error result.

This is getting really confusing now... Updating a mysql database without leaving the page.... I have 3 bits of code. The javascript in the head tags, the action button in the body and the code to be performed on another page. Here are the three sections: <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text...

jQuery: running success in 1.3.2 but not in 1.4.2

Nothing is wrong, as soon as i change the lib to 1.3.2 my on success stuff works just fine? How comes? Not even the alert with TEST appears.. Here's the code this is happening on: function crop() { $.ajax({ type: "POST", dataType: 'json', url:"functions.php?action=crop", data: { ...

how do you install jquery in Ruby on Rails?

Is it just a matter of installing the jquery.jq file in the javascript folder and linking to it? ...

jQuery selector: How to select by CSS styles

I'm trying to find all the parent elements that have the CSS style display:none. I can't seem to get it to work though. Here's what I've got: var $parents = $(...).parents("[css=display:none]"); ...

jQuery traversing elements get all previous elements that match selector

I have a collection of divs that contain either images or checkboxes. My end goal is to have the onclick event on the checkbox also check all previous checkboxes. Here is my layout (dynamically created so id #'s can change based on page load data): <div id="Main1"> <div id="Secondary1"> <div id="div1"> <im...

hiding login form with Jquery

I created login from that when clicking submit button sends variables to login_success.php page.but I want to make that when I click submit button login form will be close. I can close form using Jquery <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ $(".loginform").hide(); }); }); </sc...

jQuery load not updating the document in Internet Explorer

The dreaded IE strike again. :( I've been developing an image selection and upload tool for Tiny MCE using modal dialogs over the last few days. During the script, jQuery's load() function is used a number of times to load external HTML and insert it within a specified div element. Everything has been going ok, even in IE, until about ...

[jquery] Adding a live() function to the .jcarousel method

Hi guys, Im trying to implement jcarousel on my site. And the default way of doing that only works on data that is already there when the DOM is ready. In my case, im trying to add jcarousel on the result set (ul and li's) coming from my search box, which are added dynamically using AJAX. Which means it has to be added to live() in some...

Enable/disable hover style at runtime?

Hi, In my css I have this: #panel li:hover { background-color: #ffa; } under some condition I'd like to disable to hover style from the li items, something like: function start() { $('#panel li').ignoreHoverRules(); } and re-enable it later: function end() { $('#panel li').reenableHoverRules(); } is something like tha...