So I have a bit of script at the bottom of my page //RETAINER CURRENT that is supposed to hide and show content based on what menu item the user selects in the maincontent area. Unfortunately in IE7 all layers are rendered which means the videos in each layer play simultaneous. I tried .detach, .remove, methods and had no luck and when I...
I'm building a custom pulldown menu in jQuery.
Now I'd like to set the text of the A.select element to the text of the element that is clicked. But I can't get it to work.
This is the html:
<div class="pulldown">
<a href="javascript:;" class="select">All cats/subs</a>
<div class="options">
<a href="javascript:;">Option one...
i have this code to show a loading image when i run an ajax call:
$('.event').live('click', function () {
var spinner = $("<img src='/content/images/ajax-loader.gif' />").insertAfter(this);
the issue is that since its an async call, if you click a link multiple times, it will show up with multiple spinners. Obviously this is just...
I have this code
$(this).parent().children('.vote_count').children('span.number')
but I am wondering if there is a better way to go up one level, down two from a selector
...
I'm wanting to use an XML file to show some messages in a flash application. I'm wanting to populate this XML file using a simple HTML form with a textarea and when a user submits the content it will post it to the XML file.
The XML file looks like this:
<messages>
<msg>This is a sample message</msg>
</messages>
I'm presuming this req...
Hello, gurus!
I'm having some trouble fading in large images, but only in Chrome.
Here's the absolutely basic setup:
$(document).ready(function(){
var img = new Image();
$(img)
.hide()
.load(function(){
$(this).fadeIn(3000)
})
.attr("src", "files/originals/01.jpg")
$("body").append(img)
});
...
I have a select list like so:
<select id="drpColours">
<option value="" selected="selected">Choose color</option>
<option value="1">black</option>
<option value="2">BLUE</option>
</select>
I can I set the selected item based on the text item and not the value. So if i pass "Blue" to a function, I want the function to set the 3rd item ...
Probably, a simple question, which I can't seem to find a solid answer to.
Why would one choose JSON2 over jquery-json plugin (
http://code.google.com/p/jquery-json/)? Given that a web application is using jQuery to begin with.
Everyone's writing about how great it is that JSON2 falls back on the native implementation... Well, so doe...
I have a grid (rows and columns) of textboxes where some are clickable. If clicked, the jQuery UI dialog box show up below the textbox with a drop down menu of choices. However, this works for the first 3-4 rows of textboxes. After I get a certain distance down on the browser, the modal dialog box no longer shows up directly below the...
I have the following code, which i've simplified, where $currEl gets logged and displays correctly, but in the $.ajax call it logs as null.
Am I missing something?
for(var i=0, j = atgSlots.length; i < j; i++) {
var currSlot = atgSlots[i].split('|'),
$currEl = currSlot[0].length ? $('[data-atg-url=' + currSlot[0] + ']') : null,
...
If I have Firebug console open, and return the following in a rails controller in response to an ajax call:
format.json { render :json => Appointment.find_by_id(1) }
I get an 'invalid label' error. But it works fine it Firebug is closed.
Any ideas???
...
I'm trying to submit a form using JQuery. My problem comes from the fact that the front end (html+js/jquery) and the back-end is not on the same site, but it does support JSONP.
The form contains a file input field, so I would be submitting Multi-part form data.
How would you resolve this?
...
Hi, I am using
$("#list").slideDown("slow"); //code to slide down the div dag when it is clicked.
It is working fine but when I clicked on the tag, the browser is suddenly scrolling up to the top.
So I have to scroll down to the tag to see its contents.
Please help me.
Thanks,
Raj
...
Hi,
I'm learning JQuery and I'm trying to understand how to parse an unsorted list.
My script works and it can highlight in yellow sublist (click on "level 2C" and 2d anchor), but i'm unable to highlight only level 3 or only level 4.
Any clue on how to do that ? Thanks.
Here is my code :
<script type="text/javascript" language="J...
Hi,
Sorry to bother anyone with this but about to go mad. Using jQuery UI Sortable with a nested list. Loading the nodes of the "tree" dynamically, so have a button which 'loads node' (similar to ASP.NET TreeView) - when this button is pressed and the node is loaded, I want to either "refresh" or "destroy" then re-initialize the sortabl...
Hi I am trying to create tabs with CSS and Jquery but I dont know why I am not getting the right content when the appropriate tab is selected. thanks for ur time
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Follow me!</title>
<style type="text/css">
ul.tabs {
...
Hi everyone,
I'm trying find an explanation to the following question, I looked around and haven't found any awnser so far: What is the the difference between the Simon Willison's code for the AddLoadEvent function and the load function from jQuery?
Here are the links:
1 ) AddLoadEvent code : http://simonwillison.net/2004/May/26/addL...
Hello, after a lot of google searches I've been unable to find a clean/simple plugin that handle flyout menus.
flyout menu being, click an icon, and a list of menu items dropsdown. Most flyout menus seem to have the menu items generated on click as a DIV.
Any solutions?
Thanks
...
I am just starting out learning some HTML and Java coding (read: I know practically nothing about this stuff) and would like to have my index.html page open an HTML file when it loads. Essentially I am looking for a kind of Modal Pop-Up. I have been researching jQuery and its various plugins (i.e., LightBox, prettyPhoto, Boxy, etc.), b...
Hello...I am attempting to create a dynamic favorites list in this application i'm working on. My problem at the moment is I cannot direct an event to toggle specific li class names. I have a large list of li's and seperate pages associated with them. Each page has a title bar with several image links, phone number, etc. the last image i...