i have made a ajax request and the verious rows gotten i echo each into a dynamically created the div.now i want to bind a event to each of these divs like say e.g mousedown() .. do something but i am not able to access any of the divs. plis can any one help me on that. thanks in advance
...
I'm trying to access user's language preference w/o using server code.
I'm looking for some JavaScript like this:
var language_array = jQuery.languagePreferences();
//en-ca,en;q=0.8,en-us;q=0.6,de-de;q=0.4,de;q=0.2
I know I can use HTTP_ACCEPT_LANGUAGE on server side, but what about in JavaScript/JQuery client-side static (non-server...
Hello, javascript newbie here, I wrote a form in html and submitted it with an onchange event, but after I added a daterange picker in javascript the submission doesn't work. Here is my code:
<form id="dash_form" method="get">
<div>Select a Tag Bundle dimension:</div>
<select name="dimension" id="id_dimension" onchan...
i have created 2 divs and i want to drag an item from one of the divs and drop it in the other div.how do i implement the functions draggable() and droppable(). i am very new in jquery. thanks in advance.
...
Seriously. The simplest jQuery code ever simply isn't working.
<script type="text/javascript">
$(document).ready(function(){
$('.codeswitcher').click(function() {
alert("You clicked it");
});
});
</script>
And then, in my page structure, I have this:
<div class="codeswitcher">
<img src="http://mysite.com/images/codeswitch...
I was curious if there was anything for say PHP or Python that was able to generate jQuery components by using calls to a library.
So something like this:
import jQueryLib
Tabs tabContainer = new Tabs();
Tab page1, page2, page3;
page1.content = "bleh";
...
tabContainer.children.add(page1);
tabContainer.Render();
Does anyone know o...
I would like to center the titlebar text on a jqGrid without messing up the open/close image. But I've only been able to get both the text and open/close button-image centered. I would be grateful for some tips on how to get the text centered while keeping the anchor-image positioned.
Here's the markup that Chrome's Inspector shows:
<...
Hello!
I have the following situation. I have 2 frames (top and bottom). The upper frame monitors the current loaded page in the bottom frame. How can I know if the users changed the location of that frame (the url)? So I want to know when the user, press a link in that page, that goes somewhere.
I found something like this here: http:/...
Hi,
I have a Jstree populating a list of items. When I click a node a partial is loaded with ajax. Everything works fine until I include the jquery.validate script to validate my forms.
<script src="/scripts/jquery.validate.js" type="text/javascript"></script>
<script src="/scripts/MicrosoftMvcJQueryValidation.js" type="text/javascrip...
Possible Duplicate:
Difference between using var and not using var in JavaScript
Hello,
I am a self learned developer. Always, i write javascripts without the var for variables. But some javascripts use var for variables.
Both worked well for me. I am bit confused by this.
Is Writing scripts with var a standard form or the...
I am calculating rows with a total with the jQuery.Calculation plugin but the total is ignoring everything after the decimal symbol. I suspect the fix lies in the regex but I can't figure out where.
The following method should set the default correct for European decimals, it works pr row but the sum method for the calculation is ignori...
Is there a cross-browser way to detect live changes to an input field?
By live, I mean not when the field loses focus, and not on the next keypress, and so on. Immediately or something like it.
Using combinations of jQuery and .change(), .keyup(), .bind('paste') and so on I can get working live change detection in some browsers, but no...
I want to have a simple function where i can insert a sqlQuery and get a database answer in json-format like this:
function ExecuteQuery(query){
$.post("sql.php", { "query": query },
function(data){ return data; },
"json");
}
The response i get is undefined, I think i have misunderstood something quite basic but i ...
Hello,
I need some JQuery selector help...
My HTML is
<div id="Manager"><span>LastName, FirstName (UK)</span></div>
<span id=ctl00_PlaceHolderMain_g_4118aa1d_2690_4da8_b2b2_dc1943e73968_LineManager/>
I need to select the text from the div Manager and copy that into the span which contains the text LineManager.
I have the selecto...
Hi,
I want to make a POST request to my Controller with jquery.
function Send() {
$.post("User/Delete/1");
}
<a href="#" onclick="Send()">Delete</a>
It doesn't work, however if i write this code:
<%= Html.ActionLink("Delete", "Delete", new { onclick = "$.post('User/Delete/1')" })%>
it works fine. Unfortunetly i cant use this p...
Hi, I have a number of form sections which a user progresses through. Each one is handled via AJAX, and on success, the next form is loaded via AJAX. I now have a situation where on a couple of sections I want to show a dialog box once the form has been successfully processed via AJAX. The process would be the user fills out the form, cl...
Hi,
I have searched but cannot find the jQuery selector that gets an element by a title. So I would be trying to get a handle on the dropdown with title =='cars'
Eg:
<select title='cars'>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi...
Jquery auto refresh is using up a LOT of browser memory. Is there a way to stop this. I had a 2 div refreshing every 3 seconds but I moved it up to 9 and 15 seconds, It helped a little bit the longer the window stays open on my site the more memory it takes until finally the browser crashes.
<script type="text/javascript" src="http://aj...
Using javascript with or without Jquery, I need to a create a gradient of colours based on a start and finish color. Is this possible to do programmatically?
The end colour is only ever going to be darker shade of the start colour and it's for an unordered list which I have no control over the number of li items. I'm looking for a solut...
I have a contact form script, and I added a few fields to it, identical to the rest, but the new variables on submit give 'notices' of undefined index, and the variables do not populate. I grab them POST like this,
$name = $_POST['name'];
$website = $_POST['website'];
$company = $_POST['company'];
$addy = $_POST['addy'];
$ema...