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...
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...
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
...
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:...
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...
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'
})...
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...
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...
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...
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.
$("#...
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...
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...
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?
...
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...
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!
...
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...
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.
...
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...
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());
.........
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 ...