I want to pass to an array of controls' IDs to a javascript script function so it will switch control's enable state.
For example, in C# it would be like this:
func(false, new[] { "Control1", "Control2", "Control3" });
In that function I want to find corresponding controls and disable/enable them. For one control I do this next way:
...
Given this HTML:
<div class="OpenIDSelector">some text</div>
Why does this JQuery selector match it on some browsers and some pages, but not on others?
$('.OpenIdSelector)
NOTE: I ran into this problem and solved it myself, but it was annoying and I didn't find it on StackOverflow already, so I'm posting it as a Q&A pair so someon...
im having trouble figuring out how to bind mouseout() to my entire nav bar including the links.
when a user hovers over a link in #nav a sub menu is shown. all is well there.
what i want to do is fadeOut that sub menu when the user hovers out of the entire #nav.
my code for the mouseout:
$('#nav').mouseout(function() {
setTimeou...
Please see: http://flx.me/h/0504/
Source: http://pastebin.com/bDh5k3Qd
jquery.preload-min.js: http://jquery.com/plugins/project/Preload
jquery.jplayer.min.js: http://www.happyworm.com/jquery/jplayer/0.2.4/developer-guide.htm
I'm using jquery.preload-min.js to preload images and to send a play trigger to jquery.jplayer.min.js to start...
Whenever a call is made to a RelyingParty, DotNetOpenAuth gives a redirect (as expected). This looks something like this ...
return request.RedirectingResponse.AsActionResult();
This works alright - but I'd like to catch it and put it in a dialog, not redirect the existing page. Is there any way to do this? I'm trying to use jQuery UI...
I'm looking for a jQuery plugin or a standalone script that will take a javascript object and create a navigatable tree like the FireBug plug in does.
Does this exist, or will I need to write one? Googling hasn't found much yet.
...
I am trying to calculate the innerwidth of jquery dialog (ui-1.8)
For somereason it is always returning 0. One reason perhaps is that the dialog is still hidden and not open??
Was using
$('#dialogId').innerwidth()
Any help?
...
hi
I have this simple function:
<script type="text/javascript">
//<![CDATA[
jQuery(function($){
function here(b){alert(b);} ;
here(6);
});
//]]>
</script>
and i have this button on page:
<button onclick="here(7);">TEST</button>
The alert fires on page load, but not on button click. If i replace the here(7) ...
I have a table, but it is not in a list format, meaning not a column/row format. I look for specific cells to add a hover event that displays a description of the cell.
$("#TableID td").hover(function(){
//ifCellThatIWant
$(this).append("<span>Message that was brought in</span>");
},
function(){
$(this).children().remove();...
I am trying to have one input on my page that I would like to have a U.S. phone number mask by default. If a end user clicks a checkbox specifing they would like to enter a International phone number I want the mask to be removed.
I have tried multiple ways and have been unsuccessful thus far. In the current project I am using jQuery to...
I'm making a very simple content-management system in Javascript. It uses plugins which are individual .js files which live in a "modules" folder. Currently I'm loading them with JQuery's getScript() function, but I have to manually define the list of available modules.
Is there any way to dynamically load the list of Javascript files s...
JQuerry data grid with items&columns drag&drop, Items sort. Is there any?
So I need Dragable\Dropable Items
Drag and drop sorting of table columns
Sort Items in columns
You can taste how sweeet is Adobe Flex builder Data Grid and Its Drag-Drap here: http://blog.flexexamples.com/2007/09/19/dragging-rows-between-two-different-flex-dat...
I have a table where every row has a unique id.
The last table cell has class="status" where I want to show the user the result of their action.
In my $.ajax call, I have:
,success: function(result){
$('tr#'+result).td('.status').text('Updated');
};
result is the id of the row that was updated.
It's just ...
We are using jquery for pagination. We are pulling millions of records from the database and then th jquery does the pagination on the front end. that is a very slow process. Can someone advice us of a solution in php and jquery where we pull 50 records at a time?
Thanks
...
I'm trying to sort a list with the help of jQuery and the TinySort-plugin, and it works good but one thing is not working as i want. My Code is:
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>TinySort problem</title>
<script type="text/javascript" src="http://so.volmar.se/oldstatic/jquery....
Hi everyone,
I'm looking to find the Javascript Event I need to put into jQuery's .bind function in order to have the function triggered when a selection is made from a <select> element.
At the moment I'm using .bind('change',function() { ...}) but I need the event to trigger when the selected option is chosen again.
Any suggestions?
...
I'm using the jQuery Validation JS
I have two contact forms, the main one that appears on one page only, and a quick-contact that is on all pages.
How can I prevent quick-contact form to show the error messages ONLY on submit (without effecting the other form)
...
I have a table made up of a row of 3 input elements: Price, Quanity, and Total. Under that, I have two links I can click to dynamically generate another row in the table. All that is working well, but actually calculating a value for the total element is giving me trouble. I know how to calculate the value of the first total element but ...
On my portfolio page I have this setup:
<div id="portfolio">
<ul id="sites">
<li>
<h3><a href="#">MotorSomethin</a></h3>
<img src="http://dummyimage.com/265x100/000/fff" />
<p>
We tried going for a very dark but flashy look for this website. Hence the reason we used fla...
I've been using this tutorial to make an autocomplete function. (UPDATE: I ditched the jQuery UI Autocomplete route because there isn't much documentation for it.) The following code works (FINALLY). I also managed to get the suggestion links to work as well. I plan to make some type of blog post to help other noobs like myself figur...