Hi, im using a plugin to do something ever 10 secs:
function status_updates(){
$("p").everyTime(1000,function(i) {
if(i==10){
alert("foo");
// something here
}else{
$(this).html(i);
}
});
}
status_updates();
where it says something here I need to add something to...
I probably couldn't depict it better in the title (and if it has a term let me know), but just to quell the obscurity, I was referring to something like this. After you wait for the page to load, see how when you scroll down, the social media left bar stays fixed, but then when you scroll just enough that it meets your upper side, it sti...
How to use in jQuery data from window.open
w = window.open("http://google.com",
'test_window',
'left=20,top=20,width=500,height=500,toolbar=1,resizable=1');
browser = w.document;
// execute commands in browser
$(browser).ready(function(){
alert($('input', browser).attr('name'));
});
// close bro...
I built a slideshow/decision-making game in Flash but would like to try to redo it using jQuery.
The slideshow part seems simple enough, however I have a series of user decisions that I'm not sure how to approach.
In flash, if the user makes a decision, I would just store this in a variable or shared local objects, is this the same for...
You can use the URL helper in Code Igniter to load CSS and Javascript with the base_url() method, but what if you have images dynamically being placed into your HTML via javascript? for example in my javascript file I've got
var arrowimages={down:['downarrowclass', 'images/down.png', 23], right:['rightarrowclass', 'images/right.png']}
...
Hi I have the code below, once the first (only) item in the menu is hovered over, the subtext should appear. I have used 'this' as I thought it should find the class with the "li" and then slideDown. This doesnt seem to work, although 'this' works for when you remove the hover, as it slides up (top part not the subtext).
<body>
<script ...
Hi!
How I can capture browser restore/maximize event in jQuery or javascript? We can use window.onresize but that only tells that the browser is resized. thanks!
...
Hi all,
I allow me to ask a question, because I have a little probleme with an function which returns me the parent of a selection.
$('input[type=button].btn_transform').click(function(){
var selectionObj = getSelected();//Function which gives me selection
var theParent=selectionObj.anchorNode.parentNode;
alert (t...
Total JavaScript n00b question right here:
I've made this snippet that clicks a link after 10th second:
function timeout() {
window.setTimeout(function() {
$('img.left').click();
}, 1000);
setTimeout("timeout()", 1000);
}
timeout();
My question is, how do I execute this function every 10th second, instead of just on...
Just started with JQuery and I've managed to pass a parameter using POST, firebug confirms this:
Parameters
link [email protected]
Source
link=test1%40test.com
I don't know how to access the link parameter from the receiving page using JQuery, it must be so simple but everything I've been searching through (jquery website, SO, etc) me...
Especially for the iPhone
...
Hello!
Im using jquery 1.3.2 and this is the code:
<script type="text/javascript">
//<![CDATA[
jQuery(function(){
jQuery('.news_bullet a.show_preview').click(function() {
jQuery(this).siblings('div').slideToggle('slow');
return false;
}).toggle(
function() {
jQuery...
Hello. I'm trying to save data to the MySQL database in Rails when the user drags items from different lists. I'm using the below Jquery script and HTML:
<script>
$(document).ready(function() {
$("#draggable").draggable( { connectToSortable: 'ul#myList', helper:'clone' } );
$("#myList").sortable();
});
</script>
HTML:
<ul>
<li ...
New to JQuery and I was wondering how do I keep any tabbed selected when a user reloads the web page? What part of my code do I need to change?
Here is my JQuery code.
$(document).ready(function() {
//When page loads...
$(".form-content").hide(); //Hide all content
var firstMenu = $("#home-menu ul li:first");
firstMenu...
Here's a scenario...
I have a column. In the column i have multiple divs with text inside each one. A bit like a list of categories. Which ever one is SELECTED gains a different background colour.
What i would like to be able to do is use jquery so that when a different div is clicked on the background colour appears to slide behind...
I can't seem to get jQuery to notice the div within the following markup
<button class="button submit positive right" id="omnisubmit" type="submit">
<div class="label">Submit</div>
<div class="controller"> </div>
</button>
And here is the jQuery I'm currently using:
$("button#omnisubmit div.controller").hover(function (...
Hello,
I like to click a label and check the previous checkbox.
I've tried the next code, but this is not working. I have tried for 2 hours, but what am i missing?
JQUERY
jQuery(document).ready(function() {
$('.namelabel').live('click', function() {
if ($(this).prev("input:checked").val() != null) {
$(this).pr...
I am setting the submit function on a form with jQuery then later in the process I reset the function to something else. What happens is the original function gets called again then the new function when only the new function should have been called.
I am sending the requests with AJAX. The first one validated the values on the server t...
I would like to know how the recycle image link works,
it points to the following url
link/to/trash/script/when/we/have/js/off
what exactly is this doing?
...
I would like to have more than one button. I tried to copy code between brackets but doesnt work.Ideas?
buttons: {
"Close": function() {
$(this).dialog("close");
}
...