I have a form in an iframe, when this form is posted a file is returned to the user (based on the form information). This file is returned using content-disposition:attachment so that only a file save dialog shows up. I want to do something in javascript once the file has been returned to the user. I tried attaching a $(iframe).ready(); ...
Hey Guys,
i have a Menu with the following Code:
<div id="head_navigation">
<ul>
<li><a href="javascript:void(0);"><img src="img/start.jpg" width="57" height="40" title="start" alt="" /></a></li>
<li><a href="javascript:void(0);"><img src="img/favoriten.jpg" width="87" height="40" title="favoriten" alt="" /><...
EDIT: The code and examples have been changed, see the progress below.
I'm working on a menu that uses Jquery to animate the display of the dropdown/flyout lists.
The idea is, to have a menu that works well without javascript but when it is enabled we can had a bit of flair with Jquery, adding a alternative stylesheet and some animatio...
I'm trying to use jQuery's data() function to store and retrieve data on an element. I want to retrieve the data stored in a textarea whenever the user enters the space bar1. However, everytime I do this I get undefined back from data().
Now, if I define exactly the same Javascript in the HTML, it works as expected. Is there some "go...
EDITED: this first version was a false example with false assumptions! See below for new version!
The Setting:
I have 2 absolute positioned divs:
<div class="menuSubBack"> </div>
<div class="menuSub">
<ul>
<li>test1</li>
<li>test2</li>
</ul>
</div>
with the following styles:
<style type="text/css">
.menuSub
{
pos...
The code below will find an image if it exists and move it above the title and text. So, if the markup looks like this:
<h2>Some fancy title</h2>
<p>Some interesting text</p>
<img src="someimage.jpg" />
or even this:
<p><h2>Some fancy title</h2></p>
<img src="someimage.jpg" />
<p>Some interesting text</p>
It will reposition elemen...
Hi there!
I'm looking for an autocomplete plugin that makes it easy to categorize search results. If that's unclear, take a look at Apple.com's search bar (top right).
I know that script.aculo.us' autocomplete widget provides similar functionality, by allowing you to wrap text in a [span class="informal"]. Every class="informal" elemen...
Consider:
$("#PlotPlace").append('<div style="position:absolute;left:200px;top:40px;font-size:smaller">Hello world!</div>');
I need to execute that line only if the width of the resultant text would be less than 60px. How can I check the width before placing the object?
...
I have this code:
$(acc_id).accordion({
alwaysOpen: false,
active: false,
autoheight: false,
header: 'h3.ui-accordion3-header',
clearStyle: true
});
I want to send a variable to it, since the header should be unique.
...
So I've found some stuff online but none of it uses jQuery and most of it is old and not suited for what I'm doing.
I have a main page and then a div overlay. Something like www.bacolicious.com, but with a little x bar and links :D
I had some old code that may have been working at some point, at least someone put it in.
window.open($(...
I have a field that represents a zip code of a user. When the user leaves that text box, an AJAX request is sent to the server to receive cities that may be associated with that zip code.
I am trying to use the JSON received from that request to populate a select list to replace the text box that is currently assumed for city (if one ci...
I've added some expand/collapse functionality to a table with jQuery and I'm now trying to do some fine tuning on the button positioning with CSS, - yet I can't seem to act on the img element.
Here's an extract from my code:
<body>
<h1>Outstanding repairs assigned to me</h1>
<table class="sortable paginated collapsible">
<thead>...
Hi,
i have some input fields like below:
<input type="text" name="date_1" class="dataList" value="2009-12-30" />
<input type="text" name="date_2" class="dataList" value="2007-06-12" />
<input type="text" name="date_3" class="dataList" value="2009-10-23" />
<input type="text" name="date_max" class="result" value="0000-00-00" />
I mus...
I'm using jQuery Tools (http://flowplayer.org/tools/index.html) to create tooltips, I've created a js-file that holds the following lines:
$("div#example-0").tooltip('#example-0-tooltip');
$("div#example-1").tooltip('#example-1-tooltip');
$("div#example-2").tooltip('#example-2-tooltip');
$("div#example-3").tooltip('#example-3-tooltip');...
I'm done with PC RegEx and moving on to jQuery. ;)
Knowing almost nothing about JavaScript and jQuery, a friend talked me into replacing all my old scripts with it. From what I've seen/read so far, it looks pretty easy.
First, my preference is to load all JS just before the </body> tag. Is that okay with jQuery or should it be loaded i...
First off, I would just like to mention my absolute hatred of Internet Explorer and the grief it is causing me.
Okay, so I have am using a Coda slider for a clients website, located at: www.onlineuticacollege.com/david
Here is my declarations for my Coda Slider.
<script src="tabbed-bottom-nav/js/jquery-1.3.2.min.js" type="text/javas...
Is it possible to us jQuery to select a collection of form elements based on their value and/or state?
For instance, I have some code that looks like
jQuery("input[type='checkbox']").each(function(element){
if(this.checked)
{
//do something with the checked checkeboxes
}
});
I'd like to remove the interior condit...
I have a menu that opens up on
$('.my_menu').show('slide', {direction:'up'}, 500, function() {}, function() {});
and closes on
$('.my_menu').hide('slide', {direction:'up'}, 200, function() {}, function() {});
Now, when it closes I don't want the menu to go all the way back to hidden, I would like to see parts of the menu as to give...
I have a select field. I must fill with options taken from a mysql table.
Here is some little php code I have done using codeigniter framework
$idcateg = trim($this->input->post('idcategory'));
$array1 = array(
'result' => $idcateg
);
echo json_encode($array1);
Now, the jQuery call...
$.post("<?=base_url()?>index.php/rubro/list_a...
I am building a modular frame work for a PHP MVC site. I am using Jquery. I have a registerModule('module_name') method that when called creates an instance of a module object with this name. These module objects are functions that return an object they are contained within individual script files
example of test_module.js
core.modou...