This function call ResizeableTextbox('myRT'); works well inside javascript(produces a resizeable text box) but doesn't work inside jQuery code.Why?
This produces the resizeable textbox.
<script type="text/javascript">
ResizeableTextbox('myRT');
</script>
But if I give it like this in the jquery code,I dont get the resizeable textbox...
I am creating an ASP.NET MVC application that has postcode lookup functionality. I capture the postcode from the user send it to a web service and have an array of addresses returned. I wuold like to display the array of addresses in something like the jQuery UI Dialog. The user can then select the correct address which is returned and p...
i have the following html , and i want to hide all lsHeader which has no next elements with class contact using jquery.
<div id="B" class="lsHeader">B</div>
<div id="contact_1" class="contact"> B.Contact1</b/>
<div id="contact_2" class="contact"> B.Contact2</b/>
<div id="contact_3" class="contact"> B.Contact3</b/>
<div id="conta...
I'm bulding some drag and drop widgets in jQuery, once they've been dropped I need to check if my drag and droppable widget are inside another div.
<div id="droptarget">
<div class="widget">I'm a widget!</div>
</div>
I've had a look at $('#droptarget').each but can't seem to figure it out. Any ideas?
...
Hi,
var htm = $.ajax({
type: "GET",
url: "./viewforms",
async: false
}).responseText;
var myObject = eval('(' + htm + ')');
alert(myObject.attributes[0]["type"]);
$("#updateDiv1").html(myObject.attributes[0]["type"]);
alert($("#updateDiv1").text());
l=$("#updateDiv1").text();
alert(l);
if(l =="String")
{
alert("if...");
}
In...
I have some "mega menu" style menus on a site I maintain. These are essentially a set of nested <UL>s. Since there are about 150 to 200 entries in the complete menu, it adds a lot of bulk to the page and makes screen readers painful.
I plan to change the menus so that only the top level of the menu is output on the page, which will cut ...
I want to make an ajax call, but I want to make sure it will be cached.
I am using jquery.
Is there a way to make sure the request stays in the cache for most popular browsers?
...
Possible Duplicate:
How to query an XML string via DOM in jQuery
DUPLICATE: how-to-query-an-xml-string-via-dom-in-jquery
I have an image gallery which uses PHP to look at text files and then show certain images. Now I want to do this in JavaScript instead with no server side requests.
I have been working in jQuery. Since I ca...
I have been looking at many ASP.Net MVC client side validation ideas including xVal. This doesn't provide a ValidationSummary at the moment so I chose to do an AJAX post which loops through ModelState errors and update a DIV with the error messages on a successful AJAX post.
The problem with this is your ValidationMessage * next to t...
Hi,
How do you replace an element in jQuery and have the replacement element returned instead of the element that was removed?
I have the following scenario. I have many checkboxes and once you click one of them, that checkbox is replaced by a loading icon. Once some AJAX stuff happens, the loading icon is replaced by a tick icon.
Usi...
I'm really baffled with the following.
When the gallery is created in FF/Chrome etc, clicking next moves the image on one and the hover state remains for you to click again. In IE7, the image moves on one, then the hover state fails, and doesn't reappear. Other effects I have on my page continue to function.
My jQuery may not be th...
I'm a jQuery newbie, and I have trouble with a little script I created.
First of all, I have a table with 5 default rows. These are sortable, using a plugin called "Table Drag'n'Drop". A column in that table consists of a linked X which removes the table row when clicked.
The table looks like this:
<table id="tracks">
<thead>
<t...
referring to Franek's question found here I have one more question.
The solution on the link above worked for me until I introduced another menu to my page. In this case, there are two menus next to each other. When I click on one of them, the relevant div is displayed showing possible options to select. Then, when I click on the docume...
I have the following (javascript/jquery) code to show a busy indicator (after a delay) while an image is loading:
function imgUpdate(arg) {
var loaded = false;
$("#image").one("load", function(){
loaded = true;
$("#busyIndicator").hide();
});
setTimeout(function(){
if (!loaded) {
$("...
Table UserData (UserID, Sales, Credits)
I need to return the SUM of sales, sum of credits and the # of rows returned for a given date range.
Is it possible in 1 query?
...
The HTML looks kind of like:
<dl>
<dt>
<img src='Images\Something\expand-close.gif' /> Something 1
</dt>
<dd>Something 1 Text</dd>
</dl>
This HTML is repeated 1 or more times so there could be many instances of the HTML on the same page.
The Jquery I am using to expand the dd and replace the image is:
$("dl").find("dt").cl...
Hi
Works perfectly in FF (as you'd expect) but for some reason when I do this:
$('#objectname').attr('data', 'newcontent.php')
...absolutely nothing happens in IE.
When I do an
alert($('#objectname').attr('data', 'newcontent.php'))
it shows the new data source but doesn't change it...
Any ideas please?
...
Hi. I'm trying to add a transition to a site where the page fades to black when a user navigates through the site. Here's an example of what I have so far.
I decided the best way to achieve this was to create a div which will mask the page in blackness and then animate it with jQuery.
So far I've managed to create the code for the "fad...
$('#global').show("explode", { number: 50}, 2000);
I tried this code but it doesn't seem to work properly.
It looks like it's limited i never got more than 8/10 exploding blocks.
Are there a maximum ?
Any ideas ?
the explode effect is a native effect from the jquery-ui
...
To be clear: I am not asking how to put existing hooks onto new DOM elements. I know about the live() function and the old livequery plugin. I am asking something else.
What I want to know is how to hook onto the very creation of new DOM elements. The reason I'm asking is I'm creating a third-party user JS script that doesn't have co...