I'm always looking for a modern Java library that makes creating valid (X)HTML snippets easy.
Yes you could use a templating language but there are times when you do not want to do this because Java has some advantages over insert your favorite templating language.
I have seen lots of in-house HTML builders in many projects but there i...
I can't seem to delay the showing of a div. I want to delay the animation by about 20 seconds is this possible???
$("#microcharcounter").delay(10000).show();
...
I'm using the jQuery UI Autocomplete plug-in to make an ajax call and retrieve data. As well as passing the text of the input element I'm trying to pass in the 'id' attribute of the input element as an additional parameter. An extract of my code looks like this -
$("#autocomplete input").autocomplete({
source: function(requ...
Hi guys !
Just a quick question. Does any of you know of a good plugin to make a sidebar using jQuery ? I'm not talking about CMS-style sidebar (WP, Drupal, ...), but more like Youtube's or Grooveshark's playlist on the bottom of the screen.
I found something http://sideroad.secret.jp/plugins/jQuerySideBar/, but it doesn't exactly corr...
Hi
I have created a ASP.NET WebForms Gridview and I need to access each row (e.g. the <TR>) of the table in javascript/jquery....
Unfortunately it looks like the <tr>'s generated by the gridview all have the same ID!
Is there a way to change this? Any ideas how I could access a particular row in javascript (basically I am trying to ca...
Im using the following jQuery, which sets the id of the last item in a UL to 'last_item'.
function oldest() {
j('ul li:last-child').addClass( 'last_item' );
oldestName = j('.last_item').attr('id');
alert('last ID is:'+ oldestName +'.');
}
j(window).scroll(function(){
if (j(window).scrollTop() == j(document).height() - j(window)...
Hi
i have a radiobutton list and on click on the radio button item i have to change text of a label. But for some reason its not working. Code is below
<asp:Label ID="lblVessel" Text="Vessel:" runat="server" ></asp:Label>
<script language="javascript">
$(document).ready(function() {
$('#rblDiv input').click(function()
...
I have some content on my page that I require to be loaded via ajax. The page that I want to load is requesting some php variables I have stored on the main page.
How can I send these variables to the page then load the page via ajax???
Code so far:
$('#microblogposts').load('posts.php', {postmessage="+ postmessage +"& from_user="+ fr...
Hi!
I try to post some data via json objects to my asp.net mvc view, here is the code
$("#submitButton").click(function () {
var name = $("#name")[0].valueOf();
var price = $("#price").valueOf();
var url = $("#url").valueOf();
var product = { Name: name, Price: price, Url: ur...
This has got to be an easy one...
I have a list. I want to show the one element in each list item, with an option to see more (if there are any). Like this:
<li class="item">
<div class="elementToShow">Shown Element</div>
<div class="elementsToBeHidden">Hidden Element</div>
</li>
<li class="item">
<div class="elementToShow">Shown...
Hi all - I need to programatically show qtip tooltips as error notifiers in a form I am working on. The form submits via ajax, and returns an object with an action, and if there are error an array of field names with error text to be show.
if (response.action == 'error') {
// We would put tooltip on appropriate items here
for (var k...
Hi,
I am trying to create a re-ordering of the page drag and drop feature on my CMS. As some of the pages have sub pages, we have a lot of lists nested within lists. An example of the code:
$(document).ready(function(){
$(function() {
$('#contentLeft ul').sortable({
update: function() {
va...
When passing the contents of a <div> to another <div> with jquery as below, the original is removed.
Is there a way to do this and still retain the original?
Example Here - I want the document to read Item One, Item Two, Item One.
function display() {
$('#display').html($('#ItemOne'));
}
display();
...
ASP.NET 2.0 had the following property MaintainScrollPositionOnPostBack and it could be used to maintain browser position on post back. Can this be achieved using jQuery and if yes how?
I have read a few articles mentioning that MaintainScrollPositionOnPostBack doesnt work in some browsers like Chrome/Safari etc.
...
I am looking for a simple jquery script to validate a simple form exactly like this:
in my form, i have only one checkbox, if that checkbox is checked, i want to enable the second checkbox and if the second checkbox is checked, i want to enable the third checkbox, etc. there will no more than one single checkbox for this form.
<script ...
I've inherited some javascript, and it's not all working as expected at the moment. This is one sticking point:
jQuery("#theForm")
.find("input[@checked], input[@type='text'], options[@selected], textarea")
.each(function() { ... });
I'm not familiar with the [@] syntax (though it seems clear what it wants to have happen), and I'...
I would like to know if there is a prebuilt slideshow for jQuery that will allow me to set longer a longer pause on some images than others.
I have bracketed photos and would like to fade through from the dark one to the medium exposed on. I think it will look groovy.
Cheers,
Ben
...
For some reason this jQuery function is not working properly. Here's my code... the response div is not updating with my response.
WHEN AJAX FUNCTION IS CALLED
if ($action == 'sort') {
echo 'getting a response';
return 0;
}
JQuery FUNCTION
function sort() {
$.ajax({
type: "POST",
url: "contributor_pane...
I have the code provided below. I've tried using jquery to select to make something happen but eventually what I have doesnt work or may be incorrect.
$("#emailList option").click(function() {
alert("OMG");
});
<select id="emailList" multiple="multiple" name="emailList">
<option>[email protected]</option>
</select>
can someone provi...
We are new to JQuery but have quite a bit of programming experience.
We have a web application that performs load-on-demand AJAX calls. Whenever a user scrolls up or down, it makes small requests to the server to request more data. The AJAX call is made whenever an empty div (each having a unique ID) appears on-screen, then the correspo...