As a solution to the "has a SelectedValue which is invalid because it does not exist in the list of items." error caused by null values in the database being bound to a radio button, I want to add an extra radio button with a value of '' that will allow nulls to bind to the RadioButtonList.
I am going to have lots of these, so I want to...
I'm displaying articles on a page. The article titles sometimes spill over onto two lines, and may even have only a single word on the second line. This is very undesirable. Using jQuery/CSS, what would be the best method to programmatically determine a new font-size for the titles to keep them on one line?
...
My form has a list box that asks for the user's country but I only want to populate the list box, via an AJAX call, if the box doesn't already show the user's country. Initially the list box contains just one country - the country returned from a ip-to-country lookup on the server.
It appears that the default action of the list box occu...
Hi
Is it possible to animate a pseudo class when it is activated, for example:
I have to the following in my css:
#gallery a span {
border:#006553 3px solid;
position:relative;
overflow:hidden;
display:block;
top:0px;
left:0px;
height:89px;
width:89px;
}
#gallery a:hover span {
border:#f3bd2f 6px s...
Hi,
I'm creating a web application which uses jQuery to modify and HTML to represent the data. There can be several representations in the document related to a single data node. The user can dynamically create them.
For example, data will be represented and can be modified in tables. Additionally the user has the opinion to extend a "q...
with the markup like:
<ul>
<li><a href="#">Link 1</a></li>
<li>
<a href="#">Link 2</a>
<ul>
<li><a href="#" class="active">Link 2.1</a></li>
<li><a href="#">Link 2.2</a></li>
</ul>
</li>
</ul>
i want to add a class "active" to , Link 2 (line 4), or links that have inner a.ac...
I am creating a UI in which users have the ability to change color values of their pages. What I would like is to take the value assigned to their background color and lighten it a certain amount. I am just looking to achieve a highlight line without having to make new images every time.
Example: The user set the background color to #E...
Hi to all
I'm aware of various image crossfade plugins, but i need to crossfade text. Like, I have text A within a , a or a element and I want it to fade away while, fading in, B takes its place.
Any help really appreciated.
...
Is there a method for showing a loading image for dynamic images that are generated using flickr? I have come across a working version of this at the http://community.wacom.com/ site but I have not been able to locate the code to see what they are doing.
...
I apply:
$(".newContentLink").click(function() {
$("#test").append("1");
});
On this:
<span id="contents">
<input class="newContentLink" type="submit" style="width: 100%;" value="CREATE A NEW CONTENT"/>
<span id="content1" class="content study">
</span>
<input class="newContentLink" type="submit" style="width: 100%;" value="CREAT...
I have created a table in ASP MVC and populate it with data from a database. I have alternating row colors using the following code:
<% if (count % 2 == 0) { %>
<tr class="offeven" onclick="this.className='onclick'" onmouseover="this.className='on'" onmouseout="this.className='offeven'">
<% } %>
<% else { %>
<tr class="offodd" ...
I have an admin page for a store where a user can modify item data. I'm trying to implement something for the admin to add and remove images by dragging them to and from a div.
I can submit the data just fine until I add the "images" object to the mix as follows:
$("#saveButton").click(function() {
$("form *, button").attr("disabl...
I cannot understand why it doesn't work now, I write:
$(function() {
$('a').click(function(){
$('div#box').animate({
opacity: 1
});
});
});
div {
width: 250px;
height: 250px;
background-color: #000040;
display: none;
}
and it doesn't fadeIn().
How to do these simple things? Thank you very much)
...
I am trying to set up a sites navigation which extends over several levels. I have built one option for the client where the different levels open using jquery and want to now see how this looks within a modal window.
However,
I am using FancyBox FancyBox which I have used to load the navigation from an ajax call. It displays fine unti...
Hello everyone,
I am trying to get the infoWindow to display in just the right place on a Google Maps integration I'm working on (just above the top right/top left corner of an image). Whenever I try to adjust the "infoWindowAnchor" it doesn't seem to be working? However, the "iconAnchor" seems to be working as expected. I am wondering ...
I have recently made the switch from HTML to XHTML... don't get me started on the "why" - let's just say it wasn't an option. Anyhoo...
This function worked fine in IE and FF when I was HTML, but now with XHTML I get the following error in FF:
heightElement is undefined
now here is the statement where I define heightElement
functio...
Does anyone know how to make a method within jQuery Validation Tool to require an exact text string? (upper/lowercase doesn't matter)
Also where does the method actually get placed?
-Brad
...
Beside the official JQuery web site, what are some of the best online directories (listings) for JQuery plugins? There are some plugins I never knew existed so I wanted some resources, hopefully with RSS feeds, which notify me of new cool JQuery plugins.
...
I am having quite a hard time trying to find some answers with this particular dialog box action. The problem is when the user presses the "enter" (keyCode = 13) button, the dialog closes...as if the 'esc' key was pressed. I want to keep the dialog box open even when "enter" is pressed.
Fairly simple code, simple dialog box from jque...
A few days ago I posted this question: http://stackoverflow.com/questions/1169387/switch-statement-and-loops-using-jquery-javascript
which ended up with me creating a series of divs using this code
for (var i = 1; i <= $("#play option:selected").text(); ++i) {
$("#play_"+i).slideDown().find("input").addClass("someClass");
}
...