Hey guys, i'm having a problem with this little script. When i hover over the div "item" both divs shows the "dark-overlay". But i only want the dark-overlay there's inside the div i hover to show. How is that possible? thanks :)
.item {
position:relative;
width:680px;
height:140px;
}
.dark-overlay {
position:absolute;
width:680px;
he...
So there is a a table and a text box in one of the cells
<td>
<asp:TextBox ID="tbSomeTextBox" Columns="5" runat="server"> %
</td>
This textbox gets shown if a certain selection is made in a drop down. The problem is that I would like the "%" character to also be hidden or shown with the textbox.
I have tried putting the whole t...
As jQuery devs know, jQuery allows easy dynamic HTML creation like this
var d = $('<div/>')
.append('some text')
.append(
$('<ul/>').append(
$('<li/>').text('list item')
.css("color", "blue")
.click(function() {
// do something
...
I have a function which I need to appear within a jQuery $(document).ready(function() {} - I am au fait with javascript but not really worked with jQuery. How can I jQuerify this function?
function populateContext()
{
contextTxtBox = document.getElementById('searchContext');
pathArr = window.location.pathname.split( '/' );
...
I have a situation whereby I have a series of connected sortable lists, and a list can have no more than 2 items at any one time.
Therefore I need to somehow disable the "full" list, but still allow an item to be dragged away from it.
// If this list has two items, disable it, otherwise enable it
if ($('li', this).size()==2) {
$(th...
In jquery, I need to reference a form, change the action url, then post it.
So I can get my form using the ID like:
$("#frmtest")
Now I want to change the action url, then post it.
...
Ok, so i have a few <div1> elements with static content inside of them. Then if you hover over the <div1> another <div2> pops up over top of it. (note: how this happens is the "display" property changes from "none" to "block") This <div2> has data that is relevant to <div1>. It populates dynamically based on the <div1> that you over o...
Within my body tag, I have this:
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAkh87y8Hjhg76ty" type="text/javascript"></script>
Is it possible to add Javascript or jQuery in the head of the page to change the "key" parameter in the script source. I am trying to do this before the render reaches the ...
I use Cytoscape Web for generating gene maps. It needs string to draw and I have XGMML files so I used JQuery for getting the XGMML file and turning them into strings. Here is my codepiece:
$.get("ENSG00000148606.xgmml", function(data) {
if (typeof data !== "string") {
if (window.ActiveXObject) { // IE
data = data.x...
Hi all,
Here's the problem, in abstract terms: i have three input fields (A, B, C). two of them need to be text inputs (A and B), the third is of irrelevant type. I need to enable the third if A is not empty and B is not empty. I need to disable C if A is empty or B is empty.
The code
// empty is the empty function from the phpjs pro...
Can anyone spot what is wrong with my code? I'm getting a 404 Not Found on firebug when i use jQuery to call a WCF SOAP service.
I'm on Win7 using IIS7. I have the wcf running on a virtual directory application as (http://localhost/csw). I can access the service.svc file with no problem here at this url: (http://localhost/csw/service.sv...
I have the following snippet of code:
$('input#teamName').live('blur', function() {
var value = $(this).val();
if (value) {
$.getJSON('api/event_company/'+value, function(data) {
console.log('why does this not want to work?');
});
}
});
Basically all it's doing is requesting some data from the server when a form fi...
Hi,
Why I want to block a JS file download in HTML? Well, this is my time-chart for the page load:
jQuery (1.2) loaded
jQuery plugin loaded (extends the current jQuery object)
custom JS loaded
custom JS uses document.write to add extra scripts
the added extra script loads a new jQuery (1.4, but it doesn't matter)
-> so my extension is...
Hello,
I like to work with JSON and jquery. When I test the script offline on localhost it works fine, but when I change this json file to a server it doens't work al all
jQuery(function($) {
$.ajax
({
type: "GET",
url: "test.php",
contentType: "application/json; charset=utf-8",
dataType: "j...
When user tries to submit form without entering data in a required field (class="required"), field is highlighted and given focus. Except when the field is a select option. The field is highlighted but user is not returned to the field. User has to scroll up in this case.
I need the form to scroll up to the highlighted field as it do...
I am getting this error message:
Bad Request - Invalid Header HTTP
Error 400. The request has an invalid
header name.
When using local proxy for testing. The only difference I noticed in Request Headers in Firebug is:
Connection keep-alive
is changed to
Proxy-Connection keep-alive
Is this Ajax security related? How can...
Hi,
After using jQuery for a long time now I have a question, I'm writing a simple code using the jQuery pattern(style),
(function(window, undefined) {
var jQuery = function (s, c) { ... }
}) (window);
As we all know jQuery is defined in a self Executing anonymous function, I guess its scope (jQuery) should be restricted to tha...
Hi.
i've these div on my html page :
// CSS
.trackon{width:710px; height:26px; color:#CCCCCC; font-weight:bold; float:left;}
.trackoff{display:none;}
// HTML
<div class="trackon" id="trackline1">Line 1</div>
<div class="trackon" id="trackline2">Line 2</div>
<div class="trackon" id="trackline3">Line 3</div>
<div class="trackoff" id="t...
How can i find the next element by class.
i tried with $(obj).next('.class'); but this return only classes in $(obj) parent
I need to take the next element anywhere throughout the code by class name.
Because my code looks like
<table>
<tr><td><div class="class">First</div></td></tr>
<tr><td><div class="class">Second</div></td></tr>
<...
Is there any way to detect IE7?
I don't have any problems with my codes in IE8, but I have a problem with IE7.
So what I thought is that I can add a class with jquery when a browser is IE7 detecting it by javascript.
I want to change from
<div id="system">
to
<div id="system" class="ie7">
Thanks in advance.
...