I have an image slider that I built for my website, and I have it set to slide every 3 seconds (will be slower after diagnostics, but I don't like waiting 10 seconds to see what's wrong). I also have it set so that before it auto-slides, it checks if the toSlide variable is set to 1 (default) or not. When the user clicks on a next/previo...
I have a unordered list:
<ul id="sortable">
<li id="1" class="ui-state-default">First <a href='#' title='delete' class="itemDelete">x</a></li>
<li id="2" class="ui-state-default">Second <a href='#' title='delete' class="itemDelete">x</a></li>
<li id="3" class="ui-state-default">Third <a href='#' title='delete' class="itemDelete">x...
I have a <div> element containing an image. Inside that div, I have a <p> element which holds some information about the image. I want to hover the <div> containing the image and then show or hide the <p> element.
<div class="box">
<img src="img/an_039_AN_diskette.jpg" width="310px" height="465px" />
6 Pharma IT
<p class="ho...
I have a window.onbeforeunload event that I wish to disable when I am clicking on a specific hyperlink.
I am using the following JQuery:
$(function() {
$("a#<%= lockUnlock.ClientID %>").click(function() {
window.onbeforeunload = null; });
});
But when I click on other links the event doesn't fire.
Is the...
I have a dropdownlist with values. On a click of a button a unordered list gets appended with an <li> with details from the selected item in the dropdown list.
The <li> has an <a> tag in it which will remove the <li> from the <ul>.
I need to repopulate the dropdown list with the item removed from the <ul> when the <li> is removed.
Any...
Hi all,
Quick html / Jquery question. Here's my situation: I want to hover over a table element, and display a popup box in a position exactly to the right of the element.
I can display the popup correctly according to the position of my mouse coordinates, but I'd like the coordinates to not move, i.e., I'd like to position the popu...
I am trying to create a dynamic pagination system for my website and I've decided on using ajax callback function to dynamically show the comments when the user clicks on different page elements..
So I'm pasting the code below as an example as to how I am doing it...I would like to ask you guys if I'm doing it right or if their is any be...
I'm building some simple web apps and using jQuery to call .net webmethods.
The more I put together, the more I wonder where I draw the line between the aspx page and what I can produce with jQuery/jTemplate and a few ajax calls. It seems I can do everything on the client now, and easily too. At the moment I've just got one default.htm...
I'm running a database query to load a dropdownbox using jquery. Is there a way to display the words "Loading..." in the dropdownbox while the query is running?
Thanks.
...
I have a form with two text_fields:
<input type="text" id="post_name" name="post[name]" />
<input type="text" id="post_email" name="post[email]" />
And I have an observe_field on the name input box but I also want to pass the email value with it. In prototype this is done via:
<%= observe_field :post_name,
:url => { :controller => :...
I have been trying to make a div fade in evey 30sec and out after 30sec
setInterval(function(){$('#myDiv').toggle();}, 300);
$("#popupboxdis").fadeIn("fast");
$("#popupboxdis").fadeOut("fast");
...
Hey, I have been trying for over a week now to slideToggle a table row when the 'more info' button is clicked but nothing seems to be working at all.
I'm new to Jquery so if anyone ca help me slideToggle the 'more-info-1', 'more-info-2', 'more-info-3' tr tags. the main problem is that those id's are created dynamically through php and I...
Looking for something like:
$("input:radio:checked").previous("name", "original_name").attr("name","new_name");
I tried a few different seen around here but mostly get the error: Object Expected
Any help is appreciated.
...
Besides showing and hiding a <div>, are there any better solutions or replacements to a javascript pop-up windows? Thanks!
...
Hi,
I am working with a Java application, and I have ajax form submission from a modal window.
I would like the code to load either success or error page in the modal depending on the server side processing results. The following code is working for the success scenario only.
$.ajax({
type: "POST",
...
Alright. I have a create form where people are able to create businesses which are then added to the database. Everything worked fine. Rails was throwing it's errors if things weren't filled out correctly and if they were, you;d be directed to another page that would show you the business you just created. Now with that, I have to be ab...
Several new UI/Query frameworks allow you to "bind" UI elements to data structures. When data in the structure is updated, the change propagates to the UI element, automatically.
Some examples of this include the [Bindable] tag in Adobe Flex, and the "Bindable LINQ" extension for .NET .
Is anyone doing this in JQuery?
...
Hi,
I'd like to use model binding to keep my controllers looking cleaner, you can see how much nicer it is using model binding:
public ActionResult Create(Person personToCreate)
{
//Create person here
}
vs
public ActionResult Create(string firstName, string lastName, string address, string phoneNum, string email, string postalCo...
I am working on site where users get a 30 minute cookie and after it expires, any calls to the server redirect to a "session expired, click here to re-login screen." Here's the wrinkle:
When the user gets to the session expired page, the URL of that page is that of the page they were trying to reach. Clicking the "Login Again" link tak...
I have an HTML table with one column being email addresses; spambot issues aside, I'd like to convert each <td> element in this column to a mailto: link.
Here's what I've got:
$("table.data tbody tr td:last").each(function() {
var email = $(this).val();
$(this).html('<a href="mailto:' + email + '">' + email + '</a>');
});
And...