I cant even come up with a proper subject for this one... Basically I have a box div, that when click expands to a rectangle and shows content in the new expanded area.
The problem I'm having is that when I animate out the div's width, the browser wants to render the content as the box is stretching, rather than just have it placed wher...
How can I set the background-image css property of say a div using jquery? will something like this work?
$("#div").css("backgroundImage", "url('test.jpg')");
...
Hi, I am using Jquery Accordion with a UL contained within each section and I cant figure out how to add a class to indicate the active link.
I have searched my head-off but the only thing I can find doesnt work with the Accordion:
$(document).ready(function(){
var path = location.pathname.substring(1);
if ( path )
$('#accordio...
Hi there,
I have an emote selector that opens up when a user clicks an entry in a diary. The way I've worked it is that the emote selector panel lives hidden at the top of the page. When a user clicks on the 'emote control' associated with an entry, I use JavaScript to grab the HTML of the emote selector panel from the top of the page...
I use the following piece of code to test if our server is running whilst the user is in a page. I've also started adding other functions that grab small amounts of data that are constantly changing and are to be relayed to the user (Files waiting for download, messages, reports etc).
I've noticed recently that if I leave any page open...
Hi
I starting too look at a bit of security into my site. My site I would consider a very low security risk as it has really no personal information from the user other than email.
However the security risk will go up a bit as I am partnering with a company and the initial password for this companies users will be the same password the...
I have a web app where I have several elements with class="classA". I want to select and apply a function to all of them. I am doing the obvious thing, which is $(".classA").each(function () { ... }). This works just fine in Chrome/Safari/Firefox but is really slow in IE. It turns out IE has serious performance issues when selecting thin...
Hi,
i'm using jquery textboxlist plugin with autocomplete and want to:
allow the user to type in something, and if it shows up in the autocomplete list, then the users can select it and a tag will be added to the box.
if what the user typed is not in the autocomplete (suggestion) list, then the input should be ignored.
right now whe...
Actually the original implementation it worked fine, but i changed something which caused it to behave like this. When it cycles thru various divs it causes divs to reload again and showing in between empty black background. It works fine on Moxilla. Can some one help.
Site: http://travelling-monk.com
...
I am trying to create a jQuery fadeIn fadeout effect for my page content using the code below.
$(document).ready(function (){
$("#main").click(function(){
$("#content").fadeOut(800, function(){
$("#content").load("main.html", function(){
$("#content").fadeIn(800);
});
});
});
$("#gallery").click(fun...
$(function() {
$(".datepicker").datepicker({
dateFormat: 'mm-dd-yy',
yearRange: 'c-70:c+10',
changeYear: true,
changeMonth: true,
numberOfMonths: 3,
showWeek: true,
firstDay: 1,
showOn: 'button',
buttonImage: "/images/scw.gif"; ?>',
buttonImageOnly: true
...
I have two links that show up two modal dialogs. These dialogs are static divs in the html of the page with their own ids.
When I click the first link, the first dialog shows up and behaves correctly. But when I click the second link, the whole screen grays out and everything becomes unclickable, including the second dialog. It happens ...
The Jquery code below works ok with firefox, Safari, Opera but not with IE. I kinda know why this isn't working in IE after reading a lot about it but I do not know how to fix it.
My understanding (I think) is that this method will assign a attribute of "onclick" in IE rather than an event method. Therefore it will not fire in IE and t...
I'm putting together an image gallery for an ecommerce site and wanting to use colorbox to launch larger images. My problem is that image launched in colorbox stays as the first one launched and should reflect the image shown as img#bigpic - the link to the image does appear to be updating correctly.
Here's the jQuery I have:
$(documen...
I am using Jquery in my J2EE application. I am still using XML to get pass and get the data from the server. My client side code is very vague to see. Is it better to move from XML to JSON ?
...
How would I scroll a stack of images, horizontally, through a vertically aligned space? Imagine a layout like this:
I have a viewable area, say a div, with a fixed size (50px wide by 300px tall) and overflow set to none to hide anything outside of it...
That div has three images stacked vertically displayed inside it...
On click of a ...
How can i get current x & y position of my CURSOR within a text area using javascript.
The event is a Keyup event, not a mouse event.
I am not looking for the current cursor position in terms of charecter but x , y coordinates.
...
I need to run a function 'setNotifications()' after a timed delay or at the end of completion of the previous animation('#topannounce' animation).But jQuery is not running the 'setNotifications()'after the animation. What should I do? or is there a better way to run the function?Plz hlp.Thanx.
Here is the jQuery I have.
$('a#resetbtn')...
I have a setup lets say like follows:
<div id="nav">
<div id="innernav">
//With dynamic content here.
</div>
</div>
I am running a script that sizes #nav to the size of the browser window in height. But sometimes my dynamic content is now getting bigger than the height of the window.. Is there a way I can enforce that when...
Hello
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
I read this tutorial and there was a talk about secondary functions in a plugin.
How can I use those functions outside the plugin?
...