I'm using the following code to append a hashtag to the end of a url. That way someone can copy that url and take them back to that page, with certain divs visable.
$("a.live").click(function() {
window.location.hash = 'live';
$("#live).slideDown();
});
In this example I have a div called 'live', that would slideDown when a l...
This overlay seems to be the only overlay plugin that works within my schools wonky template... but the problem is that when the browser is resized the shadowbox resizes too, clipping the contents inside. I want it so the box stats fixed and if the browser does get smaller the browser will have scrollbars.
I know it's been modified befo...
Project I'm working on uses jQuery.
I have a series of Ajax calls being made that load() other HTML fragments which in turn load() other fragments. The whole thing is confusing. I didn't write the code.
Is there any tool which will allow me to walk the callstack so I can figure what is calling a method? any browser tools that would he...
I have this problem where the UI components of my page like the drop down menus arent available until thirdparty scripts finish loading. This causes a problem because who knows whats going on on those servers. I need to detach the availability of the page's interactive components from the loading of thirdparty stuff...
how?
=/
...
I am using a JavaScript function and some jQuery to perform two actions on a page. The first is a simple JS function to hide/show divs and change the active state of a tab:
This is the JS that show/hides divs and changes the active state on some tabs:
var ids=new Array('section1','section2','section3');
function switchid(id, el){
...
I'm trying to figure out what this sort of thing is called, and eventually how I can create one in a web browser. It looks like this (screenshot of the first app that came to mind):
The specific component/pattern I'm looking for is the two list boxes ("Included Gear" and "Excluded Gear") that represent inclusion/exclusion of items fro...
Hi guys,
I'm almost completed moving my first live site to my new xampp setup on localhost.
I have a form that uses jquery in the header of the site.
It's a bit verbose, but here it is:
<div class="outeremailcontainer">
<div id="emailcontainer">
<?php include('verify.php'); ?>
<form action="index_success.php" method="post"...
I expected the code below to alert "0" and "1", but it alert "2" twice. I don't the reason. Don't know if it is a problem of jQuery. Also, please help me to edit title and tags of this post if they are inaccurate.
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min....
Hi
I am trying when user clicks on one of the images seen here
http://techavid.com/design/test.html
That the image in background is only thing focused. All icons are greyed out until user clicks and when they do the colored version of the icon is only showing. Currently the color image of each icon appears behind the greyed out vers...
Hi All,
We developed navigation bar using jQuery 1.4.2. Functionality is to show submneus for different menu items when user hovers on it.
It is working perfectly in IE6 but we see some weird problems in other browsers.
In Firefox, when the page gets loaded, it works fine but when we hit f5, the submenu wont appear on hover. To get su...
When I use
$(document).ready(function() {
var bodyHeight = $("body").height();
console.log(bodyHeight);
});
I get a really wack number for body height. I then run
$("body").height();
in the console and get the right height. Something seems fishy about the $(document).load doing this... Yes my CSS works fine and all, so is this ...
I have the following list structure:
<ul>
<li>One</li>
<li>Two
<ul>
<li class="active">Two-1</li>
<li>Two-2</li>
</ul>
</li>
<li>Three
<ul>
<li>Three-1</li>
</ul>
</li>
</ul>
with the following CSS:
ul li ul{
display:none;
}
ul li:hover ul{
...
As shown in here: http://www.learningjquery.com/2007/03/accordion-madness. But I need help to edit it so that it will work for my circumstances.
Sample HTML
<div class="row even">
<div class="info">
<div class="class">CK1</div>
<div class="teacher_chinese">老師</div>
<div class="teacher_english">Teacher Name</div>
<div class="ass...
I'm trying to alter the extraParams in this plugin based on a user action.
var t = new $.TextboxList('#entSearch', {unique: true, plugins: {
autocomplete: {
minLength: 3,
queryRemote: true,
placeholder: false,
remote: {
url: "{{=URL(r=requ...
how do i prevent expanding the jquery blockui dialog box? i thought draggable: false? but that does not work.
// this is essentially the default dialog if not overriden
initDialog: function(e) {
// modify timeout to do jquery dialog
if (typeof jQuery.ui != 'undefined') {
var _session = this;
$...
I'm using JQuery as such:
$(window).resize(function() { ... });
However, it appears that if the person manually resizes their browser windows by dragging the window edge to make it larger/smaller, the .resize event above fires multiple times.
Question: How to I call a function AFTER the browser window resize completed (so that the ev...
How would our group find out if a particular string contain the scertain substring? Only with the help of Jquery, please.
...
Say my code is as follows:
<ul>
<li><img /></li>
<li>
<ul>
<li><img /></li>
</ul>
</li>
</ul>
I'm trying to set a default size for the first img tag, but not affect the second one. everything I do affects the other one as well. Currently I have tried:
$('ul#gallery > li').find('img').css('width','650px')...
I want to validate my form using jquery but it doesn't have an ID property as of now how to add it to the form in asp.net mvc? I am using this...
<% using (Html.BeginForm()) {%>
and my jquery validator plugin takes this,
var validator = $("#signupform").validate({
Now i want to give id as signupform... Any suggestion...
...
Hello, I'm interested in using the following JQUERY - http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/
However, I can't seem to get a demo instance of the plugin work.
Here's the code I'm using:
<script type="text/javascript">
$('#findit').nestedSortable({});
</script>
<div >
<ul id="findit">
<li>
List ...