I'm using JQuery 1.3.2 and have the following code -
My html is -
<table class="disableClass" id="formOptionsPreview">
<%--Spacing Row, this row exists solely to make the table columns size correctly --%>
<tr id="formOptionsPreviewRow">
<td style="width: 130px; border-style: none">
</td>
<td style="width: 90...
I am trying to perform a simple jQuery AJAX attempt using either a .get() or a .post().
If I have a local copy on my server and do:
$.get('/hash.php',...,...)
I monitor in my console in firebug that the get is done and I get a response.
All I change is the URI to an outside server and nothing happens.
$.get('https://secure.mysite.c...
I'm using AJAX to receive an XML response, which I then need to manipulate. By using jQuery's context option, I can select from the XML data, but I am still unable to write to it.
$('blah', xml)
selects xml just fine, but
$('blah', xml).removeClass( 'myClass' )
seems to do nothing to the xml variable! How can I achieve the function...
Here is the JQuery:
$(document).ready(function() {
$('#autosave').click(function() {
var url = window.location.pathname;
$postData = $('#content form:first').serialize() + '&'
+ $('#content form:first .input-submit').attr('name')
+ '=Save';
$.post(url, $postData, functi...
I'd like some help with the following jQuery code if possible...
$(document).ready(function() {
$('table.sortable').each(function() {
var $table = $(this);
$('th', $table).each(function(column) { // #A
var $header = $(this);
$header.click(function() {
var rows = $table.find('tbody > tr').get();
rows....
Hi folks,
Is there a jQuery plugin out there that can serialize a form, and then later restore/populate the form given the serialized value? I know the form plugin can serialize as a querystring, but I haven't found anything that will restore the form from the querystring.
What I'd like to do is serialize the form values, store as a c...
Hi
I'm no jQuery expert but managed to get the effects running I required for my WordPress site frontpage at http://www.bringmyshuttle.com
View in FF and all works fine; the other filters reset to 'all' when one option is selected, and the correct thumbs are faded out/retained.
In IE or Safari, nothing... I built on FF and Safari on M...
I would like to replace a image with another image when a link is clicked. I have three images that each go to a specific link.
So for instance, link one needs image 1, link 2 image two. etc...
I've figured out how to do the replacement:
$(function() {
$("a#t2").click(function() {
$("#floatleft img").replaceWith('<img src="i...
We've got a few pages using ajax to load in content and there's a few occasions where we need to deep link into a page. Instead of having a link to "Users" and telling people to click "settings" it's helpful to be able to link people to user.aspx#settings
To allow people to provide us with correct links to sections (for tech support, et...
Is there a jQuery plugin that mimics the Zazzle.com photo zoom effect (you can view the effect here: http://www.zazzle.com/awards+tshirts). The closest I've found is the jQZoom plugin which opens the larger image in a separate container, instead of overlaying within the same container.
I figured I'd ask, before I started building away ...
I have a tree of folders and I want to add a progress bar next to the folder name which is also an anchor. The progress bar div section is the jQuery UI progress bar div.
The pblabel element should seat on top of the progress bar. The bar element is the progress bar itself with a variable width.
<ul>
<li>
<a href="" style="displa...
I've noticed a strange behaviour of the live() function in jQuery:
<a href="#" id="normal">normal</a>
<a href="#" id="live">live</a>
$('#normal').click(clickHandler);
$('#live').live('click', clickHandler);
function clickHandler() {
alert("Clicked");
return false;
}
That's fine and dandy until you right-click on the "live" l...
I have a jQuery autocomplete fild which gets existing data from my MVC action. I want to ensure that the data entered into the field DOES NOT already exist on the database.
I had thisworkig using .result and .change on the autocomplete to set the field to class = "input-validation-error". When I added xVal client validation this still w...
I have a database at zoho creator. They feed me a json of the database content. I have trouble to parse and display that data with jquery or php or in html
Question : So how do I capture json data, and save (convert) it to file as XML. With the xml file I can parse it with jquery xpath easily... the "file" will be a local database, as a...
I need to flash an element off and on. This works but I don't really like the code. Is there a nice way of doing this?
setTimeout(function(){
toggle();
setTimeout(function(){
toggle();
setTimeout(function(){
toggle();
setTimeout(function(){
toggle();
}, 100);
}, 100);
}, 100);
}, 100);
I'm u...
Anyone have any idea where I can get a good collapsible (and stay open when selected) vertical menu for an asp.net mvc project?
...
I have the following
<script>
$(document).ready(function() {
$(".mapLink").click(function(){
pos = $(this).attr("id");
alert(pos);
});
});
</script>
<a class="map" id="test">Test</a>
When I click on Test I get an alert...great.
But I also have the following...
<script>
$(document)....
I'm trying to update a div with an ajax post. Problem is...it's updating every div.
Here's the json.php:
//json.php
$data['months'] = $db->escape_value($_POST['check']);
$data['id'] = $db->escape_value($_POST['hidden']);
$query = "UPDATE month SET months = '{$data['months']}' WHERE monthID = '{$data['id']}'";
$result = $db->query($...
How can I insert all of a parent window's stylesheets into an iframe's head(samedomain)?
My attempted code based on a similar question:
function () {
var d = frames[0].document;
var stylesheets = $("link").outerhtml;
d.open();
d.write(
'<html><head>'+
stylesheets +
'<style type="text/css">'+
'<\/style><...
I have a table that I've made sortable using the jQuery plugin Tablesorter 2.0. On the same page, I have a Google Map that displays a marker for each item in the table. Now, I want to make it so that when a <tr> is hovered, the corresponding marker on the Google Map is highlighted. I also want to do the vice versa, where clicking on a ma...