jquery

Could not convert javascript argument

After trying to append some code to a div layer I received the following error and don't know why. uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMDocumentFragment.appendChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://code.jquery.com/jquery-latest.min.js...

JQuery val() does not work for textarea in Opera

I am displaying a modal dialog using jQuery. This dialog has a textarea control on it. But on submitting this dialog, the value of this textarea is not recognized by jQyery for some reason. It always comes blank. This works perfectly in other browsers. I put alert to display the value but it looks blank. Can anybody help me in this regar...

add a delay to jcarousel

Does anyone know how I could add a delay to jcarousel? I want to be able to click the 'next' button, there be a short delay, and then continue to the next slide. cheers ...

jquery ajax response from variable from a target file

Hi, I am sending username and password to some target file (auth.php) using jquery ajax. In auth.php file, i have many variables "var a1", "var b1". If authentication success, the variable "a1" set to pass(a1='pass'). My problem is how to access the only the "a1" variable from "auth.php" using the ajax response. small code is below:...

Javascript - Location href with _blank

Hi, is it possible to use the window.location = "http://google.de" with _blank? I dont want to use the <a href ... > at all, because it makes problems with the CSS (link-color). You must always insert this code and that nervs :/ .bone a:link { color:#FFFFFF; text-decoration: none } .bone a:visited { color:#FFFFFF; text-decoration: n...

jQuery: reducing repaints

Hi I need to optimize an image gallery slider since a lot of browsers have a hard time dealing with the animations. Please consider the following example: var $div1 = $('#div1'), $div2 = $('#div2'), $div3 = $('#div3'), left = 0; function animate() { left -= 10; $div1.css({ left: left + 'px', width: 1000 - left + 'px' })...

jQuery, Select by attribute value, adding new attribute

Hi, I have an anchor in my HTML. it has a page attribute with a value. So everytime it is clicked I use the page attribute value in my js. Now I want to set a style attribute with a background color to show that a certain a element is selected. So I have to select the element by page attribute and add a new attribute with a value to the...

Need help with Javascript "mouseover" and "mouseout" events

Consider the following code: HTML: <div class='a'></div> <div class='b'></div> CSS: body { position: relative; } .a { position: absolute; left: 100px; top: 100px; width: 100px; height: 100px; background: #777; } .b { position: absolute; display: none; background: red; } JavaScript: $(functi...

Assigning click event to dynamically added buttons

I am creating some buttons dynamically and giving ids to it too. When ever someone ll click that button I want to collect the ID and from there I ll do some task upon that............. Please any one ll help me........ My code is as below............ $(document).ready(function() { $('input:button').addClass("btnClass"); fill...

Set Length to Rich Text Editor in Jquery

Hi All we are facing an issue in RTE in jquery.if i entered more than 100,000 char in RTE then error occurred. I am using MySql in backend and the feild datatype with TEXT which is unlimited. So now we have decided to fix length in RTE.So please let me know the way to fix length in RTE in jquery. Please see the following code. $("#...

jQuery Prev() Question

Sorry guys, I should have posted the script directly without cleaning it. Please check the updated script, it should now clear things up. Thanks! Consider the following JavaScript : var selected = 0; var options = 0; $('.newListSelected').each(function() { selected = $(this).children('.selectedTxt'); selec...

Keeping track of javascript memory usage

A web application I am currently working on appears to be leaking memory: with each refresh of a page IE's memory usage goes up and it never releases that memory. Since certain pages are ment to be kept open in a browser and auto-refresh this is quickly turning into a problem. The application is very javascript-heavy and relies on a com...

Show numbered intervals above jQuery slider

Hallo, I've added a jQuery slider and now I want to have numbers above the slider which denotes the intervals. Almost like a everyday ruler. Does anyone have a quick method to accomplish this? ...

Jquery SlideToggle Adding whitespace to bottom of chrome document

Hi I am using jquery to slidetoggle some divs inside an iframe. In IE, Firefox it is working perfectly. The divs are sliding open and closed and i am using the following code inside the slidetoggle callback to get the height of the iframe content and then shrink it back to where it should be I am calling from within the slidetoggle c...

How do I extract the largest image (by dimension) on a site given the URL?

For instance, if I input: http://www.google.com/ It would return: http://www.google.com/images/logos/ps_logo2.png Using javascript/jquery. These sites would all be external. Thank you! ...

jQuery UI Slider stop

I'm using the jQuery slider as a submit button because it's cool and a good anti-spam filter. However, when the form is validated, in case the user didn't fill something out, the page displays and alert and set the slider value to 0. It works pretty well, excepting by the fact that when the user dismiss the alert, the slider goes back to...

jQuery slideshow plugin that can make this on the image

Please advise me a jQuery carousel plugin that can make a carousel like the one on the image. I mean that, when the image item becomes active, it moves into the center and becomes large. Thanks. ...

How to hide elements that were dynamically created in jquery?

I'm trying to hide some divs that I have created dynamically using the .hide() function but no luck. I think the reason it's not working is because elements that have not yet been added to the DOM. Is there a way around it? $('<div class="toggle_container"></div>').html('<div class="block"><p>'+title+'</p></div>').appendTo('#page...

How do i pass a javascript variable in querystring from one html page to other

I have two html pages example1.html and example2.html ,how can i pass a javascript variable username from example1.html to example2.html in querystring. <script type="text/javascript" > $(document).ready(function() { $('#SubmitForm').submit(function() { var username = ($("#username").val()); .........

Looking for JQuery drag and drop features

Here's what I want to achieve. I want to be able to have a list of words, which I can drag over an input field and drop into the value. I want to be able to do this multiple times possibly with the same word, to go in more that one input field. Basically I'm sorting words into groups. If anyone could point me at a JQuery library that ...