In this example I create three buttons 'one' 'two' 'three'. When clicked I want them to alert their number:
<html>
<head>
<script type="application/javascript" src="jquery.js"></script>
<script type="application/javascript">
$(document).ready(function() {
var numbers = ['one', 'two', 'thre...
I want to have my button in the top-right corner, I tried position: absolute, but I think the position of the box is not relative so I can't use top: 0;.
Any suggestions?
CSS:
/* SLIMBOX */
#lbOverlay {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #000;
...
I am just a designer and don't know javascript well enough to figure out how to print a full content of a JScrollPane, not a visible part of it.
I would very much appreciate any help with the issue.
Thanks!
...
I am building a portfolio page of different work that has been done and im using two different jquery sliding techniques, one nested in amongst the other one.
The first slider works great but the second one doesnmt work that great for the first few and then doesnt work at all. If you take a look at this page- You can click the clients u...
//deep linking
$.fn.ajaxAnim = function() {
$(this).animW();
$(this).html('<div class="load-prog">loading...</div>');
}
$("document").ready(function(){
contM = $('#main-content');
contS = $('#second-content');
$(contM).hide();
$(contM).addClass('hidden');
$(contS).hide();
$(contS).addClass('hidden');
...
I am trying to show only elements that have the title attribute passed to the function:
var selectservice = function(serviceStr) {
$j("li.project").hide();
$j("li.project.attr('title').contains(serviceStr)").show();
};
I am not quite sure how to compare the title attribute to the passed string serviceStr? contains doesnt seem ...
(I posted this on the jQuery forums but it's still awaiting moderation, so I thought I'd try my luck here since Stack Overflow is so awesome. If I get an answer I'll post it here.)
I have a couple of links on my page (inside a <div id="theme-selector">) which allow you to change the CSS stylesheets:
$('#theme-selector a').click(functio...
Is transparentize border, background one by one is the only way? Any other method? And how to hide the dropdown icon of a SELECT input?
...
I dynamically added rows to a table but it doesn't seem to take hover effects given in jquery...
Here is my code,
<table id="chkbox" cellpadding="0" cellspacing="2" width="100%" class="table_Style_Border">
<tr>
<td style="width:150px" class="grid_header" align="center">RackName</td>
<td style="widt...
hi,
i got the following code
var zieldiv = $(this).attr('id');
$.ajax({
url: 'index.php?params',
type: 'POST',
data: { color:thenewcolor, zieldiv:zieldiv },
timeout: 50000,
beforeSend: function() {
$("#" + zieldiv).css({background: "#" + thenewcolor} );
}
});
I use this for ...
Hi I've just started experimenting with .live and .die and having some great results but one thing isn't working.
I've been tinkering with firebugs console to try out my written code live to see if i can figure out the reason why .die isn't killing off an attached event.
First if i do this
//attach ajax submission
$('a[href$=edi...
Hi,
I'm experiencing problems with a simple combination of a Draggable and Sortable: initially, the dragging does not work and I do not get a receive callback. Only after I have done a sort (i.e. change the position of things in #workarea), can I drag new things into it.
Somehow it seems as if the sortable needs to be 'initialized' be...
I have written a simple jQuery.ajax function which loads a user control from the server on click of a button. The first time I click the button, it goes to the server and gets me the user control. But each subsequent click of the same button does not goes to the server to fetch me the user control.
Since my user control fetches data fr...
Hi,
I am trying to get the jQuery tools 'expose' function to work properly in IE6. The page is http://204.51.246.10:12123/test-ie6.aspx
You will need IE6 to reproduce the bug (obviously :)). If you click 'Sign In' on the top-right corner (below the 'Join Today!' button), you will notice that the sign in panel (fieldset#login-controls) ...
I know that detecting scrollbar presence is supposed to be one of those elusive things that we should all have to suffer through. What I've read so far is that you can't really detect scrollbar presence, only use hints in the DOM to know if they may be present, and it can't be done in less than 30 lines of code.
This sounds a little im...
Does anyone know off a way or maybe think its possible to connect Node.js with Nginx http push module to maintain a persistent connection between client and browser.
I am new to comet so just don't understand the publishing etc maybe someone can help me with this.
What i have set up so far is the following. I downloaded the jQuery.come...
My guess is that this javascript just finds the div called divid and then uses it with the sendit function.
var somevalue = 19;
if (navigator.appName.indexOf("Microsoft") != -1) {
thediv = window["divid"];
} else {
thediv = document["divid"];
}
thediv.sendit(somevalue);
I would imagine in jQuery it would look something as s...
I have a jquery post function that returns a response on success after the click of a div. However, I would like to return multiple variables on success. Do I have to use JSON, and if so, is it possible to integrate it into the $.ajax function after success?
$.ajax({
type: "POST",
data: "action=favorite&username=" + username + "&t...
Hello Everyone,
So I have my upload script working just fine, but now it's a matter of making it look the way I want for my layout.
<input type="file" name="userfile" id="userfile"/>
This obviously shows a textbox with a Choose File button. What I really need is my own custom button (which will ultimately be an image) that upon succ...
When I click an element from list, jQuery get class from clicked element and write it in input field. Then value from input need to be written in div#content without any action.
HTML:
<ul>
<li class="NewYork">New York</li>
<li class="Paris">Paris</li>
<li class="Moscow">Moscow</li>
</ul>
<input type="text" id="city" value=...