forgive the code being bulkier than necessary, will tidy it up in due course.
everything seems to be working and yet, when you click a link after it's content has already been 'active' nothing happens.
i'm sure it's something simple but i can't see it.
EDIT: the following code now works in FF and Chrome, but does not work in IE8. Any ...
I want to show dynamic div for each dynamic td.
consider
<tr><td><a id=1>abc</a></td></tr>
<tr><td><a id=1>cde</a></td></tr>
<tr><td><a id=1>fgh</a></td></tr>
<tr><td><a id=1>hij</a></td></tr>
<tr><td><a id=1>klm</a></td></tr>
these tds wil be generated based on data from db.
i want to show a div on mouse over of tag.
The main thing...
Hey guys,
I'm working with a bar code reader that dumps in data in keyboard mode into a text box. It basically types in a bunch of numbers (about 250 characters) quickly. There is a start character "%" that I'm looking for and when that comes across I want to display a working/waiting image while the rest of the data comes in.
This wo...
i have a website, in which there is a lightbox style iframe popup, which contains a flash clip.
right now, the lightbox come up as a popup on the website, and then the flash loads [with a nice loader].
the thing is, i want to see if its possible to load this entire page in the bg, and only pop it up when the flash is fully loaded..
wh...
Hey, I have a ul li menu.
Link's style:
#carousel ul li {
display: inline-block;
border: solid 1px red;
margin: 50px 25px 50px 25px;
width: 350px;
height: 300px;
}
jQuery's code:
var height = $("#carousel ul li").outerHeight();
document.write(height);
And it says height of the element is 302px ! Why? It's may...
$(top.document).ready(function () {
$(document).not('#mymenu *').click(processAction);
});
function processAction();
this doesn't seem to be working. any suggestions ?
...
I'm removing Prototype from my Rails 3 app in exchange for jQuery and trying to figure out how my controller should update part of the html page without using this Prototype helper:
page.replace_html( "content", :partial => "day" )
...
I'm trying to think of the most efficient way to add html to my page. I currently have:
jQuery("<tbody><tr class='section toggle-minus'><td colspan='3' class='toggle' id='make-"+id+"'>"+name+" (0)</td></tr></tbody>");
And then I add that to the page.... is there a more efficient way or is this pretty much it?
...
Problem as in subject.
Sample:
<div id="trigger">click here</div>
<div id="slider"> content goes here: form elems, divs, spans, a etc. </div>
How do I do it so far:
$(document.body).click(function(event){
var target = $(event.target);
if (!target.is("#trigger") && !target.is("#slider") && [all elems in slider...
When sending an array in a JSON object in a query string, is each array element supposed to have the same key? For example, if I have this JSON object:
{"sodas[]": ["coke", "sprite", "fanta"]}
Should the query string look like this, with all the keys exactly the same (sodas%5B%5D)?
sodas%5B%5D=coke&sodas%5B%5D=sprite&sodas%5B%5D=fan...
I lose the spinner feature of my textbox when the page posts back. I am setting up this way:
$("[id$='_txtSpinner']").spinner({ max: 60, min: 0 });
but after a partial postback the arrows are gone. I need something kind of like .live('click', function...) but I don't know the syntax to make it work for the spinner.
I know I can get ...
Hi Gods,
I have a little problem with jquery validation. In IE 6 and maybee in IE 7 i got an error message: Expected identifier....
I minimised my code and it seems, if i cut out the following part, then everything is works fine.
Whats the problem?
I dont really understand where is the extra comma, so i decided i paste the hole vali...
I am using jQuery, and in inspecting the DOM of my page in IE with the Dev Toolbar I see that many elements have sizset and sizcache attributes added to the element. I don't see these in Chrome or Firefox? Also, I see that many elements on the page share the same value for these fields leading me to believe it was a global value, but a f...
I got this so far:
$('.event-tools a').click(function()
{
var status = $(this).attr('id');
var id = $(this).parent().attr('id');
$.ajax({
type: "GET",
url: "http://localhost:8888/update/test.php",
data: "rsvp=" + status + '&id=' + id,
success: function()
{
$(this).parent(...
Basic question; I have this code:
var partipiansRow = '<div class="form-row "><input type="text" id="name" class="textbox" /> <input type="text" class="textbox" id="email" /></div>'
$(".button").live("click", function(){
$('.form-participants').after(partipiansRow);
});
It creates unlimited rows with 2 inputs, how can I ...
How can i know if all loaded in div using jQuery
i want to do this after load all img in #slider div
var imgHeight = $("#slider img").height();
alert(imgHeight);
...
I need a way to select elements via xpath (NOT CSSpath or any other method, must strictly be xpath)
$(document).find("/html[1]/body[1]/div[4]/div[2]/div[1]/h1[1]/a[1]").css("background-color", "yellow")
This doesn't seem to work.
...
I am trying to create an overlay, similar to the one that jQuery UI Dialog uses. I can create the overlay like this:
var $overlay = $('<div class="ui-widget-overlay"></div>').hide().appendTo('body');
//...later in my script
$overlay.fadeIn();
But the overlay cuts off when I scroll down. I noticed that jQuery UI is setting the width a...
So, I've tried to look around before posting, but I can't seem to find an answer. My dilemma:
I have an XML file that houses url links to various pages(all similar, diff products).
By using jQuery and AJAX, I am able to pull the links from the XML file.
I then want to be able to pass those links, in order, to another AJAX call that w...
I have a button that calls a javascript function after an onclick event is called. This function validates my entries, and then creates an ajax object to populate my table of information. Everything seems to work fine, except when I add this code:
echo "$(document).ready(function() { $(\"#newDate\").submit( function() {
Valid...