Hi all,
I have a list of elements (the X in the following examples) displayed either in a row or in a column of an HTML table.
In HTML code point of view, I have either (horizontal display):
<table id="myTable">
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
...
</tr>
</table>
or (vertical display):
<table id="myTable">
...
I'm working on a stripes app that uses a bit of jQuery to make the UI more dynamic/usable.
I set up an Error Resolution, so if an error is thrown, the user is redirected to an error.jsp page.
However, if an error is thrown during a jQuery Ajax call, instead of redirecting to the error.jsp page, I get html printed to the page where the ...
$('input[type=checkbox]').unbind().click(function(e){
$(this).attr('checked', true)
return false;
});
I NEED to return false because I have an event on its parent and I don't want to trigger that.
It just WON'T check that checkbox :|
Already it drive me insane.
I think I used this before on another project and I had no problems ...
I'm currently developing an html/ajax air app and am about to invest some effort into making animations using jQuery. I could do this quite a bit easier using the css animations if air had that recent a version of WebKit.
I know some people have alpha/beta versions of air 1.5. If you do, can you let me know?
...
I'm working with jQuery and looking to see if there is an easy way to determine if the element has a specific CSS class associated with it.
I have the id of the element, and the CSS class that I'm looking for. I just need to be able to, in an if statement, do a comparison based on the existence of that class on the element.
...
I'm writing some Javascript to resize the large image to fit into the user's browser window. (I don't control the size of the source images unfortunately.)
So something like this would be in the HTML:
<img id="photo"
src="a_really_big_file.jpg"
alt="this is some alt text"
title="this is some title text" />
Is there a ...
is there a difference in passing parameters to .load
$("#myDiv").load("myScript.php?var=x&var2=y&var3=z")
vs
$("#myDiv").load("myScript.php", {var:x, var2:y, var3:z})
also is there a size limit to how much .load can handle? can
myScript.php return a couple hundred rows of data without issue?
...
Hey all,
I'm playing around with ASP.net MVC and JQuery at the moment. I've come across behavour which doesn't seem to make sense.
I'm calling JQuery's $.getJSON function to populate some div's. The event is triggered on the $(document).ready event. This works perfectly.
There is a small AJAX.BeginForm which adds another value to ...
I need to pause for maybe 500 miliseconds before I submit a form. Here is what I have so far:
$(".rowqty input").bind("keyup", function() { $("#ViewCartPage form").animate({ opacity: 1.0 }, 3000).submit() });
so when someone changes the quantity of the input field it submits the form, but I want it to wait for a slight amount of tim...
I have an ASP.Net MVC Ajax.BeginForm that submits and updates my page properly when I click the submit button.
The problem is I need additional events to do the same thing, like when they change the text of an input. The additonal events do properly submit the form but they circumvent the onsubmit javascript generated on the form tag...
I'm using jQuery to handle all my ajax needs for an ASP.NET site coded in VB. When I use the built in $.ajax function to POST to a code-behind function and there is an exception, it simply exits the function, and shows an error on the client side.
Besides making debugging difficult when coding, the bigger issue is that the Application_E...
I have some html/jquery that slides a div up and down to show/hide it, when a link is clicked:
<ul class="product-info">
<li>
<a href="#">YOU CLICK THIS TO SHOW/HIDE</a>
<div class="toggle">
<p>CONTENT TO SHOW/HIDE</p>
</div>
</li>
</ul>
and my jquery...
$('div.toggle').hide();
$('ul.product-info li a').click(...
As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can Javascript be used while still meeting these requirements?
Along these lines, to what extent is Javascript, specifically AJAX and using pac...
I'm new to Jquery and I'm trying to use a div container to load a URL, however, I want to give a user an option to close it with an X sign on the top right corner like in Amazon.com. What's the best way to accomplish this?
Here's what I have and seems clumsy to figure out where the top right corner is and place the image X:
$("#url_lin...
I'm working on an ASP.Net application and working to add some Ajax to it to speed up certain areas. The first area that I am concentrating is the attendance area for the teachers to report attendance (and some other data) about the kids. This needs to be fast.
I've created a dual-control set up where the user clicks on the icon and via ...
Hi,
I'd like to know what are the most useful JQuery plugins. I'm particularly interested in those which are likely to be useful in general UI development, such as Tablesorter, rather than those which serve uncommon needs.
If you could provide a very brief description of the plugin's purpose, that would be really helpful.
Thanks,
Don...
Using jquery how do I focus the first element (edit field, text area, dropdown field, etc)
in the form when the page load?
Something like:
document.forms[0].elements[0].focus();
but using jquery.
Another requirement, don't focus the first element when the form has class="filter".
...
I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback.
I've got it all working, except I can't figure out how to pass the data so my controller method can accept a complex Wi...
I'm refactoring some old javascript and there's a lot of DOM manipulation going on.
var d = document;
var odv = d.createElement("div");
odv.style.display = "none";
this.OuterDiv = odv;
var t = d.createElement("table");
t.cellSpacing = 0;
t.className = "text";
odv.appendChild(t);
Is there a better way to do this using jQuery? I've bee...
I am evaluating several Javascript UI toolkits for building web applications that have a desktop-like feel, mainly because of dialogs and window management.
I looked at several options - here are my evaluations so far:
ExtJS - Great widget library, great docs! Not so great license.
jQuery UI - Lack of ready-made window and dialog cont...