hi,
I need to make something fadeIn, then stay there for a second and then fadeOut using JQuery.
I've tried this but it dosent work for some reason???
$('#' + uMessage).fadeIn("fast").fadeOut("slow"); // works
$('#' + uMessage).fadeIn("fast").delay(1000).fadeOut("slow"); // fails
any suggestions where im going wrong?
Many thanks!!...
Can I plot charts like this http://developer.yahoo.com/yui/examples/charts/charts-rotation.html using flot ?
I mean, I have two series with the same values on the x axis, I want to show them aligned together like in the example above, Flot plots them one above the another.
Any ideas ?
...
Extending the example here:
http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
How could I generate the subtotals, and additionally add in the Name of the product selected? Instead of:
Qty Product Price Total
1 Learning jQuery $39.99 $39.99
1 jQuery ...
I have a method which detects the onChange event on a select box. When the user clicks on the select box, it should detect the click, get the id and load some content into a div below it by calling a php script.
This appears to function fine in FF but in IE nothing happens.
Code which detects change:-
$("#select").change(function() {
...
I'm having problems encoding a string so I can place a variable into a link. I'm sure this is really simple, but i had trouble turning anything up.
$("a.inquiry").attr("href", "/inquiry/6933/text=" + encodeURI("text o"));
This doesn't work.
encodeURI("text o")
Still returns:
link/text o
Instead of:
link/text%20
Also tried:
...
When I hover over the parent links in my menu the class "toggle-active" is added to a span tag so the arrow image is changed. I also want this class to be added to the span tag when I'm hovering over the child links of the parent link inside the .sub-menu container, but I cannot get it to work. Here is the structure of the menu:
<ul>
<l...
How do I get the footer to take up the remainder of the page's vertical space without actually knowing how tall the content is? I can't figure out how to use javascript/css to accomplish this...
Just to be clear...
Scenario 1: The content ends halfway through the page, the footer would take up the remaining half. No scrollbars necessar...
i am currently use Draggable in Jquery i am trying to make it so when you click on a div it will disable you from draging it i have the follow code be it seems to not work can anyone lead me in the right direction please
selected_div = $("input#selected_div").val();
$("#68").draggable({
containment: 'parent',
if(selected_di...
We all know it's not possible to do file upload using jquery alone. But it is possible to do a work around using jquery and hidden IFrame.
I have found four solutions using this method, but don't see how I can implenent them.
This solution found here on Stackoverflow, is one way of doing it. But I'm not sure if it's the best way. (not...
I found applying the following function to a links onclose works to close Fancybox from within an iFrame:
parent.$.fancybox.close();
I want to take this further and have the link take the parent page to a new url.
I've tried the following but it doesn't work:
<a onclick="location.href='http://www.domain.com/page/';parent.$.fancybox.cl...
For the following jQuery code:
$("#select").change(function() {
$("#output").load("/output/", {}, function(data) {
// I want to extract the value of an element in data
});
});
The content of data is:
<div>
Something
</div>
<input type="hidden" name="ajax-output" value="100" />
I want to get the value ajax-output ...
I want a tool like Xenu's Link Sleuth developed using JavaScript because I cannot use any sever side scripting.
Alternatively, can you offer any tips and links to help to develop a client side tool.
...
Good evening
I've got a basic structure of ul, li and nested drop-down menus in the form of ul's. What I'm trying to do is that when the parent li is clicked, the child ul will show up. When the li is clicked again, the child ul hides.
So this is what I've got so far
$(document).ready(function() {
$("ul#glass-buttons li").togg...
What is the best way of doing a pagination? I would also need to save the current page, so that when I click a link it would save the page I was on. So if I'm on page 2 of the pagination and click one link and then get back to pagination page it would remember that I was on page 2.
I get the results/data from Json request where I have o...
This is the piece of code I have written:
<html>
<head>
<script type="text/javascript" src="jquery-min.js"></script>
<script type="text/javascript">
...
Is this possible? I need to get some data from another phpfile and I want it to appear every X seconds without you having to refresh the page.
...
On the window I bind two keydown events. The condition for triggering a callback function is a certain sequence:
Event #1: ["down", "right", "a"]
Event #2: ["down", "right", "down", "right", "a"]
How can I check if the user pressed the event 2 keys and then cancel the event 1?
Here is the code, focus on the red div and press the keys...
Hi guys,
I am looking for website to store my code and then reused if may I need it. Would be great something like Delicious but for coding or something like Snippely.
Thanks.
...
I'm trying to remove commas from all of my textboxes on keyup. I came up with the script below but it's not working. Can anyone see what I am doing wrong?
<script>
$("input[type='text']").keyup
(
function ()
{
alert('1');
$(this).val($(this).val().replace(/[,]/g, ""));
}
);
...
I'm incredibly impressed by the favoriting system built into Deviantart. I'd link to a demo but you have to be logged into deviantart to see it. So I'll describe it.
Basically it's a div or something that exists at the top of the page hidden. When you grab a picture (thumbnail or full size) and drag it toward the top of the screen, the...