I am looking into QUnit for JavaScript unit testing. I am in a strange situation where I am checking against the value returned from the Ajax call.
For the following test I am purposely trying to fail it.
// test to check if the persons are returned!
test("getPersons", function() {
getPersons(
func...
I used to work on a jQuery plugin named 'BeautyTips' and it was working just fine. But, since I've installed IE 8, this plugin stop working 'cause it needs Excanvas to make IE draw the vectors, images etc.
I've tried to download the newer version of Excanvas but it's not workint at all...
thanks
...
I have a div tag
<div id="theDiv">Where is the image?</div>
I would like to add an image tag inside of the div
End result:
<div id="theDiv"><img id="theImg" src="theImg.png" />Where is the image?</div>
...
I am trying to place a link into an Extinfowindow that obtains its content through an Ajax call. So, I click on a push pin marker, up pops the Extinfowindow with my ThickBox link in it, and when I inspect the DOM for the entire page at that point, I can see the element correctly showing up with the "thickbox" class. The link looks like...
Hi,
I'm using jquery validation with asp.net. The problem is, I have the search button and the comments button in the same form. When the users want to write a comment, the validation works perfect, but when the users want to make a search in the page, the required fields of the comments dosn't allow them.
So the question is how can I d...
I'm currently using Prototype, but I'd like to rewrite this function to jQuery:
function post(div,url,formId) {
new Ajax.Updater(div, url, {
asynchronous:true,
parameters:Form.serialize(formId)
});
}
HTML example that goes with it:
<form method="post" action="" id="foo"
onsubmit="post('result','getdata.php','foo');retu...
I'm using the jquery multiselect control from: http://abeautifulsite.net/notebook/62
I need to manually check one of the options via javascript on a specific event.
Whenever I try to change the checked attribute, or trigger a click, call the click function explicitely etc., I the checkbox gets checked but the CSS is never changed and t...
I have some (potentially) long-running ajax calls that I would like to abort if the user navigates to another page. The following jQuery code calls abort on all pending XMLHttpRequest objects upon navigating away from the page:
$.ajaxSetup({
beforeSend: function(xhr) {
$(window).bind('beforeunload', function() {
xhr.abort...
I need to change a value based on each browser since they all render differently.
if (navigator.appName == 'Netscape'){
top = 17;
}
This was working but unfortunately both Firefox and Safari show up as "Netscape"
How would I use jQuery 1.3.2 to detect all these? I couldn't find any info under jquery.support now that jquery.browser ...
I am trying to reference the jQuery library in my master page like so:
src="<%= ResolveUrl("~/Scripts/jquery-1.2.6.js")%>" type="text/javascript">
The source for the page shows:
<script src="/DocumentManagement/Scripts/jquery-1.2.6.js" type="text/javascript"></script>
which seems to be correct since my site's url is http://servern...
Is there a way to control the amount that the browser is scrolled in jquery? For example, if I wanted to add content to the bottom of a page and have it always be at the bottom, with everything else scrolling up (like a terminal)
...
If storing multiple (10+) values on a large number of divs, is it more optimal to store them all in a single object, or as separate values?
Single Object:
$("#div_id").data("data", {foo:1, bar:2});
Separate Values:
$("#div_id")
.data("foo", 1)
.data("bar", 2);
What are the trade-offs of each method? Some of these attributes wi...
I'm replacing one absolutely positioned dictionary term with another like so:
jQuery('#replaceme').fadeOut(150, function() {
jQuery('#withme').fadeIn(150);
});
It's pretty simple code that looks and works great in all browsers except IE8. In IE8, while fadeOut() is doing its thing, the entire text block shifts up 2-3 pixels, and t...
The Situation
I have a very compressed time schedule to write a simple (basically write-only web app). The app is to be a mostly jQuery-driven question tree. The questions and tree will probably need to change both before and after the site launches.
The answers will get emailed... I probably don't even need to store them, but I'm g...
Hello,
I am new to jQuery and already I'm seeing problems with the built in
slideDown()/slideUp() animations. I'm using a flexible width
element, and when I use the function, the element does not return to
it's full width. I am thinking this has something to do with the way
jQuery finds the width of the element. I am experiencing the e...
Here's what I'm looking to do:
I have an image, let's say of a room. This is going to be a static image.
I want the user to be able to do the following:
1. add a set of images, like a chair, desk, etc.
2. move items which are already on the image.
3. edit text attached to an image.
I need this image to be stored on the server, as wel...
I have a Master Page and a Content Page(SomePage.aspx). The Content page has a control called Button1.
I am calling the Button1 using jQuery in MasterPage like this
$('[id$=Button1]').click(function() {
alert('');
});
However nothing happens. I have added MasterType in SomePage.aspx.
The B...
How do I automatically click a Hyerlink or LinkButton using jQuery
<asp:Hyperlink id="ttt" PostBackUrl="Hut.htm">Click</asp:Hyperlink>or<asp:LinkButton id="ttt" PostBackUrl="Hut.htm">Click</asp:LinkButton>
...
I'm having some serious trouble getting Suckerfish working well in Safari.
I'm using Suckerfish to create a dynamic horizontal drop down menu. The problem is basicly that Safari doesn't change the css class like it is supposed to when a person click a different sub-menu. This only works if the sub-menu has children, if not – the old sub...
Why doesn't this work?
<script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.myButton').click();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LinkButton id="ttt" runat="s...