I just want to control a div by toggling a class on click, as well as removing it when the mouse leaves the div.
I had it working with mouseout, but when I entered over a child element, the mouseOut triggered, so I know I need to use mouseleave. I am just unsure how incorporate telling jQuery the mouse has entered.
UPDATE:
It seems f...
I have a lot of data being placed into a <DIV> with the overflow: auto style. Firefox handles this gracefully but IE becomes very sluggish both when scrolling the div and when executing any Javascript on the page.
At first I thought IE just couldn't handle that much data in its DOM, but then I did a simple test where I applied the visi...
I would like to render an event to take up the entire space in a cell. For instance in the month view.
Out of the box, the date is displayed on top, and then the event underneath. I want to ignore the date text and display the event over the intire cell, I don't want to hardcode the height of the event.
Hope to get some pointers, I hav...
Hi, I'm trying to work with decimal data in my PHP and MySql practice and I'm not sure about how can I do for an acceptable level af accuracy.
I've wrote a simple function which recives my input text value and converts it to a decimal number ready to be stored in the database.
<?php
function unit ($value, $decimal_point = 2) {
ret...
Is there a built-in jQuery function for encoding a string as HTML?
I'm trying to take the text a user types into a text box and then put that text into a different area of the page. My plan was to take the .val() from the text box and supply that to the .html() of the <div> element. Perhaps there's a good jQuery plugin to help with th...
Hi,
I stumbled upon an issue with event namespacing while developing a jQuery plugin.
here is the html
<div class="parent">
<div class="child">
</div>
</div>
<a class="btn-a">trigger a</a>
<a class="btn-b">trigger b</a>
<a class="btn-c">trigger c</a>
Here is the jQuery
jQuery('#content div.child')
.bind('a.a',function(...
I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?
...
Hi,
I have a website that changes his inputs ids, and I'm trying to make a semi auto-login, filling automatically the email and the password part...
I'm doing this with greasemonkey and jQuery...
I'm trying something like this
$("input[@type=text]").setValue("[email protected]");
but had no success...
The Page has only the login par...
I want to fadeOut the first div in a collection and then fadeIn the next div. The fade in out would trigger at a set time. The number of items in the collection is 1 to n. Here is an example of the html;
<div class="contentPanel">
<div class="content">
<div style="border: solid 2px black; text-align: center">
...
Hi guys,
I wanted to know it is possible to call a hosted .net web service from a HTML page using jQuery? I tried this piece of code, but it doesn't work for me:
$('#myForm').click(function() {
$.ajax({
type: "POST",
data: '{}',
url: "http://localhost:49590/Service.asmx?op=HelloWorld",
...
i found a site, which has some function that i need, in javascript. It's using jQuery, when i clicking tag, some function has been executed, so jQuery set a bind for tag.. but how i could found wich function is binded for it? Firebug didn't show it to me :(
...
Hi all,
I am implementing a "Quick delete" function into a page I am creating. The way it works is like this:
1: You click the "delete" button in the table row for the record that you want to delete.
2: The page sends a request to the ajax page and return a successfully message of "yes" or a failure message of "no".
My issue is that...
Does the serialize function in jQuery replace dots ('.') with underscores?
For example, I have a form field such as:
<input id="Project.name" name="Project.name" type="text">
When the form is POSTed, I'm serializing the form data and sending it to another PHP file to save. The dots seem to be converted to underscores. Is this norma...
I'm trying to accomplish something similar to Wikipedia's History history page, dynamically disabling radio buttons in a series.
Ie... if #4 in group two is selected, then 1-4 of group one are disabled, etc.
I know how to disable them individually or as a group, but I'm not sure how to do it in a series of say 1-4:
Individually:
$(...
Does anyone has an idea how could I add "myClass" class to some cell (for example, row 5, column 3) in a SlickGrid ?
...
Given a string of text that is both adjacent to a span and inside of a div, what are some methods to modify just that text, leaving the surrounding HTML intact? For example:
<div id="my-div">modify this text<span id="my-span"></span></div>
I have tried things like
$('#my-div').html(function(i, elem){blah;});
but this seems to caus...
I am chnaging the image src onClick event like below
IF the hyperlink is clicked then i need to change the image in a div box
<div id="left_img">
<img style="float: right;" src="/image/char.gif">
</div>
Jquery
$("#left_img img").attr("src","http://www.abc.net/image/2_char.gif");
Now i want that instead of...
Could someone please tell me what I am doing wrong? I'm not a newbie at programming but I feel like it tonight! Every time I increment the incrementing variable it throws a fit! When add one to it, it behaves fine, but if I try to add one more to it it wants to add 2 more. And then if I try to de-increment it wants to subtract from the o...
I'm trying to add a background color to a user submitted search result when a user enters a search term on a page (which is basically one big table). This is a text based search. I'm using jquery to show/hide the table rows that do not have the search term as text within the TR, but I'd ideally like to take the additional step of taking ...
I'm trying to learn jQuery by implementing a simple menu. I've got <div> elements that act as buttons and have links in them. I'm trying to add onclick events to the divs that navigate the browser to the link's address in the div. This is basically my pseudo-code. What would the real code be? How can I improve this? Any feedback apprecia...