In an earlier question I worked out how to store object as properties.
Now I am trying to access those properties when the object is passed through an event but can't get it to work:
<script language="javascript">
$(document).ready(function() {
//create a TestObject
function TestObject() {
this.testProperty = "green";...
Hi,
$('#content td#foo').show();
$('td#foo').show();
The td is somewhere deep in the content div.
What is faster?
...
Hi
at http://lunatestsite.co.uk my jQuery roundabout near the bottom of the homepage is problematic in IE7 and 8 - book cover images blurred/pixellated.
http://stackoverflow.com/questions/1985303/ie-image-display-problems/2355921#2355921
suggests something to do with em sizing in IE being the root of it but I don't really understand ...
Hello,
I'm in the process of writing a Mediawiki extension. I'm actually at a very very early stage ;). You can find the code here (okay, i can only submit one link, so imagine a github url) /eugenkiss/discussion-extension
I've got a weird jQuery problem that I just can't resolve even by utilising firebug and trying to debug my code. I...
Hello,
I just saw this cool feature of JQuery which is JQuery Portlet
http://jqueryui.com/demos/sortable/portlets.html
I was just wondering how do i persist this to my database? so that it's available even for future sessions to all users of my website?
...
jQuery 1.4:
$('#menu li:last:not(.ignore)').addClass('last');
HTML:
<div id="menu">
<ul>
<li>item 1</li>
<li>item 2</li>
<li class="ignore">item3</li>
</ul>
</div>
.. last class is not applied to item 2. What am I doing wrong here?
Thanks
...
Suppose an ASP.NET .NET 3.5 Site.
There is an asp:TextBox defined with this jquery *javascript* attached to it:
$("#myTextBox").change(function() {});
which means that if the user changes the text value, this function will be called.
And of course it works.
The problem is that I've made a button in which's EventHandler it automatica...
I am trying to communicate with Google's spell check service using jQuery. Google's service requires that you post XML and it will in turn return an XML response. In IE, the success callback gets hit every time, but in non-IE browsers (tested in Firefox and Chrome) the error callback is getting hit every time.
The biggest difference is ...
I tried to use jquery.corner.js and it works well in FF but on IE, it adds several breaks and makes the div look "longer". I found several ways of rounding corners using images, but it really gets tedious trying to create images for every corner.
There are some approaches that work only on FF, Opera (and other Mozilla based browsers) bu...
I've got a function to parse some data, and get a result which is the same as the previous, with just some classes thrown here and there.
$(document).ready(function() {
$("div.rating div").click(function(){
var str = $(this).attr('alt');
var b = str.split("-");
var book = b[0];
$("div.book-" + book).load("sites/al...
Hi all,
Can anybody help me letting me know what is wrong with the following code?
$(document).ready(function(){
$("img").attr("alt")=='minimize'.click(function(){
alert("he");
});
});
thanks.
Addition:
Sorry guys, I am trying to add an event to a image inside of a table, so when its clicked it collapse the div under ...
hi all,
i'm using the jQuery Print Element plugin for printing but i think it's a general css issue:
how can i print out a hidden element? (with css set to display:none;)
when trying, i'm gettin only a plain sheet. is there any solution?
thanks
...
// clickable blocks
$(".product").click(
function () {
window.location = $(this).find('a').attr("href").css("cursor", "pointer");
return false;
});
The container is made clickable but the cursor remains the same. Why isn't the css selector working?
...
Suppose I have the following (shortened for simplicity):
jQuery("#grid").jqGrid({
...
ondblClickRow: function(rowid) {
// I want to access the fields of the double-clicked row in here
}
...
});
Inside the ondblClickRow event, I want to access the fields of the row.
How is this done?
...
Sorry guys, I am trying to add an event to a image inside of a table, so when its clicked it collapse the div under need.
I am facing several problems here.
all tables and div use the same class.
it may be a minimum of two tables and divs.
first table should no be click able, only its images (for show and hide div under)
rest of tab...
Hi Guys
I have the following $.post() function that expects JSON as its return value.
$.post($(this).attr("action"), $(this).serialize(), function(data)
{
if (data.returnData)
{
//do stuff with data.returnData
}
}, "json");
This piece of code does the trick so long as the return type is JSON.
The question I ha...
Ok, this might be a really odd problem. I am writing a web application, and I want to change the value of a certain select box:
<select name="type" class="type">
<option value="word">word</option>
<option value="digit">digit</option>
<option value="letter">letter</option>
<option value="single">single character</option>
<option value="...
Does anybody know how to force resize the image that opens in lightbox either in CSS or by hacking lightbox?
I know it's not a good solution to having a fixed image size (should be done on upload) but it is a specific requirement of a client.
Thanks.
...
I am newbie to jQuery,
can someone explain what this code does:
$("#currency form").submit(function(e) {
triggers.eq(1).overlay().close();
return e.preventDefault();
});
...
Why is it when i am looking at tutorials, or examples, when i just essentially do a cut and past onto my HTML page, i get the "Object doesnt support this property or method" on my page, but the site that i copied the script from does not give this error?
is my jQuery library old?
not sure what to do...
here is what i am working on......