Could somebody suggest me a widget that can take an existing DOM object (like a table row) and clone it/add it to DOM after the existing original object and also allow to remove it or add others.
To explain myself better about what I want here is an example.
Lets say I have a table with one initial row (contains a number of empty field...
I have an aspx page that contains a checkbox, and a button. The button is disabled by default until the user checks the checkbox. It looks like when I add the attribute enabled="false" to the button, it removes the validation. When the button is enabled, I still want the validation to work. Here is the code and markup for the differe...
When putting code samples in my blog I would like the code to have all the appropriate colours. How can I do that?
Basically if I write:
foreach (ListItem item in items)
{
item.Text = "something";
}
I want it to appear in the correct colours like it does in my Visual Studio or here at stack*overflow*.
I'm bored of styling the co...
Chad Smith came out with a jQuery plugin designed to crash the IE6 browser.
;jQuery.crash=function(x){for(x in document.open);};
What is this doing exactly to cause the problem?
...
I have a jQuery UI Dialog that gets displayed when specific elements are clicked. I would like to close the dialog if a click occurs anywhere other than on those triggering elements or the dialog itself.
Here's the code for opening the dialog:
$(document).ready(function() {
var $field_hint = $('<div></div>')
.dialog({
...
Hey guys quick question, I have a function and it works when you click close, it slides up. However I want it to slide down by default when you first go to the page and it is just appearing right now, not sliding down.
$(document).ready(function(){
$("#related2").slideDown();
$(".close2").click(function(event) {
event.p...
I am calling a WebMethod from this code:
if($(this).attr("checked")) {
..
MyWebMethod(variable1, variable2, onSuccessFunction);
}
The MyWebMethod returns an integer, and I want to set $(this).attr("id") of the jQuery object above to the returned integer. Basically, I'm trying to do the equivalent of an MVC Ajax.ActionLink...Ajax...
Hi Guys,
I'm parsing an xml file and I want to wrap children divs into a div called "new":
I have something similar to below:
function parseXml(xml)
{
$(xml).find("hotel").each(function()
{
$('<div class="wrapme"></div>').html($(this).find("hotel_name").text()).appendTo('#foo');
});
}
$('.wrapme').wrapAll('<div class="group" />');...
JQuery UI tabs are implemented by named anchors in an unordered list. When you hover over one of the tabs you can see this in the link shown at the foot of the browser:
http://mysite/product/3/#orders
Above would be the "orders" tab for example. JQuery obviously intercepts the click to this anchor and opens the tab instead.
However ...
I am developing a small web-utility that displays some data from some database tables.
I have the utility running fine on FF, Safari, Chrome..., but the memory management on IE8 is horrendous. The largest JSON request will return information to create around 5,000 or so rows in a table within the browser (3 columns in the table).
I'...
Hi
Having two forms, each in it's own jQuery UI tab, how can I post the form in the deselected tab when clicking a new tab?
This I need to do to maintain state at the server side when the user navigates between tabs.
I have looked into something like
$('#tab-container-id').bind('tabsselect', function(event, ui) {
...
});
but ha...
I'm embarrassed by the 'basicness' of this question, but after wasted hours, here goes.
In an effort to do something with the jQuery Calculation plugin, I am playing with the basic example of the order form on the plugin site. I want to have the grand total as a form field,rather than text, so I can use the value.
The function that ca...
The simplified version of the problem I am seeing in IE7 can be demonstrated using FireBug Lite.
On a page loaded with jQuery, I open FireBug Lite (via bookmarket) and I enter the following:
image = $('<img src="http://example.com/boofar.jpg" border="12"
width="95" height="95" title="Booya">')[0];
and the result...
In my xml file comments are listed as
<Comments>
<CommentID id="1">
<CommentBy>efet</CommentBy>
<CommentDesc> Who cares!!! My boyfriend thinks the same with me. tell your friends.
</CommentDesc>
</CommentID>
<CommentID id="2">
<CommentBy>tetto</CommentBy>
<CommentDesc> xyz.... </CommentDesc>
</CommentID>
</Comments>
I need to ap...
Hi I was trying to mobilise my website and I ran into an issue with Jquery. When I was trying to perform a jquery call (.$ajax) it was not getting rendered. This is the part of the code
var returnData = '';
$.ajax({url: './indexSubmit.php',
async: false,
dataType: 'json',
...
Hey all,
I have a repeater that's bound to a SQL Data Source (using ASP.NET). Are there any JQuery plugins/efficient way of converting my repeater into something that can be sorted via drag and drop? i.e. users can rearrange the order of the data, which updates the database?
Thanks
...
can we remove history points created in web browser.
or is it possible not add history point when a sample link "some link"
is clicked and url in browser changed
...
The jQuery ajax script below doesn't work on my site if url is without www. I checked Firebug and it doesn't send the ajax call.
$.ajax(
{
type: "POST",
url: "http://www.mysite.com/beta/products.php",
data: "page_type=index&sort=relevancerank&CartId=<?php echo $CartId;?>&HMAC=<?php echo $HMAC;?>",
suc...
How do I default the "Firstpane" set to open and the others are closed....
I copied the same code from this sample but on mine everything is open view here
Script
<script>
$(function() {
$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
});
</script>
<script>
// add new effect to the ta...
Is it possible to have tooltip in jquery ui slider? Or is there other/better slider plugins with this in it already?
Also if i use jquery ui's range slider, is it possible to have two different kind of tabs (the thing that you slide)?
...