Hello. I have a web site where users register to access the content of the web site. I want to create a chat like Facebook. So when a user clicks on a button called "CHAT," it displays a list of users that are online, and so he can chat with other users. Please give me a suggestion how to create a chat like this in AJAX and jQuery. Pleas...
I've got the selector below:
$("#<%=GridView1.ClientID%> td:nth-child(5)").hover('doSomething)
Which is selecting the 5th td that is generated by a GridView. This is working fine.
My problem is I have paging enabled, and its also selecting the < Prev 1 2 3 Next > at the bottom, any ideas how to exclude this?
...
Hi,
I got this example from a blog, but every time I do this:
$(':input[name=' + inputName + ']').each(function(i, selected)
{
alert($(selected).text());
});
I got all an alert with all the options together :(
I have to search by the input name always, the inputs have no id.
Which is the right way to do it?
Kind regards.
...
I have a set of span elements as below
<div>
<span class='foo'>foo0</span>
<span class='foo'>foo1</span>
<span class='foo'>foo2</span>
<span class='foo'>foo3</span>
<span class='foo'>foo4</span>
</div>
I have attached mouse in and mouse out events to each of the span elements. Now, on mouse in event is it possible to find ...
I'm trying to select the H2 that contains the most characters, or is the widest in width, whichever one is simpler, or if you know how to do it could you put both? I'm not sure of the syntax.
...
Hi in one of xhtml page containing select box having more that 10000 option list I am facing one issue select box opening at slow speed in firefox3.5 working fine in IE 7/8
When I remove this class .ui-widget :active { outline: none; } from JQuery UI CSS
its started to work fine in Firefox 3.5. Any idea for this behavior?
Thanks,
Am...
I need to problematically (do you mean programmatically?) check a radio button given its value. The form has an id and the input type obviously has a name (but no id). The only code I managed to get working so far is:
$('input[name=my_name]:eq(1)').attr('checked', 'checked');
But I'd like to be able to check it by explicitly providi...
I want a part of my HTML page to be visiable to users with enabeld JavaScript only after clicking on to some button, while users with no JS support will seeit always.
So I mean we have a normal page with header and body but with no footer unteel some button is clicked. (while wievers that use no JS modes will see footer always.)
...
Here's my problem: Consider the following html:
<div id="item1" class="green_large">
<div id="item2" class="green_large">
<div id="item2" class="green_small">
<div id="item4" class="yellow_large">
<div id="item5" class="yellow_large">
How do I check if $(this) contain a class name with the substring "yellow" for example using jQuery?
...
Hello.
I have a LI element to which I have added a "Toggle" event handler
$("#myUL li").toggle {}
Inside the LI there is an anchor (link) element:
<ul id ="myUL">
<li>Click anywhere to initiate toggle handler <a href="/">(Except here)</a></li>
</ul>
How can I tell jQuery not to initiate the Toggle event if the user clicks on the ...
Hello,
i have a js function which gets html to create new employee from controller, inserts it inside a form tag (for later .serialize()), and then inserts this html to createDialog div and shows this div as dialog.
<div id="createDialog" style="display:none;">
</div>
$.get('/Employee/Create',
function (html) {
html = "<f...
I am trying to create a dynamic background color in a certain range on a td. This color has to be based on the value that is inside the td.
For example:
<tr>
<td>40%</td>
<td>70%</td>
<td>30%</td>
</tr>
Let's say the 0% color is: #ff0000 and the 100% color is: #00ff00
For the table cell containing the value of 40% I'd like the backg...
How to catch mouseover event on whitespaces (blanks between text words) in a div? The div can contain html also.
...
How can you navigate to a page without adding it to JQTouches internal history stack?
I have something like:
<div id="section1"></div>
<div id="section2"></div>
<div id="section3"></div>
and using javascript I navigate from #section1 to #section2 using:
jQT.goTo($('#section2'), 'slide'); //with history tracking
and then to #sectio...
I have a table with multiple rows, and each row contains three cells. Each cell contains a textbox, so it looks like this:
XXXX XXXX XXXX
on the keyup event of the first textbox, I want its contents to be copied into the second textbox, but not the third textbox.
my keyup event I can get a reference to the first textbox. Doing .p...
Hallo
I am using cluetip and it works perfectly. but I want all the tip to open on the exact samt spot on the site.
my clue tip looks like this atm
$('a.btn').cluetip(
{
cluetipClass: 'jtip',
local:true,
sticky: true,
dropShadow: false,
hoverIntent: true,
closePosition: 'title',
sticky: true,
leftOf...
We have a few places where we include inline <script> blocks which run code, wrapped by $(document).ready(). Several of these blocks use methods dependent on other external scripts. During normal page execution this technique works fine, but when the user navigates away from the page before it's completely loaded, the $(document).ready()...
Hi,
I am using the jquery validate plugin, in combination with some custom field types (custom select boxes)
default behaviour of the jquery validation plugin is to insert the error message element, right after the form element.
though that would render the error message inbetween the hidden select element, and the replaced ul element ...
This question has been posted on Stack before, but none so specific as to what I'm trying to understand.
The simplest way to check if a URL is corrrect to send a http Head request. But how do you use that to specify the URL ?
I found this in a previous post :
function UrlExists(url) {
var http = new XMLHttpRequest();
http.open('HE...
A jsfiddle of this code can be found here. Pretty basic code. I just want an autocomplete list for the list of sites in the Stack Exchange network with their favicon. The source function works fine. I can type in sta and see the matches. If I hover over them or select one, but the focus and select functions report that ui.item is un...