i load a form into a jquery ui dialog. i have a submit button (inside my form - NOT the actual dialog buttons) that calls a controller action but i can't figure out how to close the dialog after the submit is called as i dont have any event handler that i am attaching.
is there anyway of doing this besides changing the submit to inpu...
I have two functions
function ShowCrossWord(var randN)
{
randomnumber = randN;
$(document).ready(function() {
$.get("crosswords.xml",{},function(xml){
$('crossword',xml).each(function(i) { });
});
});
}
and
function ShowLegend(var randN)
{
randomnumber = randN;
$(document).ready(fu...
I have two combobox and one url which is sending me json data to populate inside the combobox. How can I use same url to populate the combobox.
`Can I use` $(".loctype").autocomplete({
source: function(request, response){
$.ajax..
}
});
I am not sure whether this is possible or not. I will appreciate if someone point me toward ri...
Hi.
I want to remove the default date in my JQuery Datepicker.
I try the following code:
$(this).datepicker({defaultDate: ''});
But it doesn't seem to work. Today's date is still selected as default.
...
I have a jQuery datepicker with format: dd-MM-yyyy.
By default the datepicker converts dates such as 1-2-3 and 1-2-99 to 01-02-2003 and 01-02-1999 respectively. However, this is only the case when you press enter or choose the date from the datepicker. I tried to auto format the field when leaving the field by using:
$j('.datepicker')....
I am using Jquery FadeIn/FaeOut to show and hide content on my page. Like so:
$('.subnav_company').click(function(){
$('.aboutcontent').fadeOut('slow');
$('.company').fadeIn('slow');
});
My problem is that because the div '.company' is positioned below '.aboutcontent' whe...
I have used LiveQuery to detect when an element is added to the page. The element is inside an .NET AJAX UpdatePanel. When the UpdatePanel is refreshed, live query does not detect the new element.
<asp:UpdatePanel runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="refresh" />
</Triggers>
...
I have a visitorID variable in ToDo function in external javascript.
I want to assign its' value in a user control. Front End Code:
<asp:HiddenField ID="hidVisitorID" runat="server" Value="-1"/>
<script type="text/javascript">
$j('#<%= hidVisitorID.ClientID %>').val(ToDo.visitorID);
</script>
In the back end it says, that hidVisit...
How do you organize large JS/jQuery codebases across your entire website? There are plenty of good resources on how to organize pieces of your code, but nothing really about how to pull it all together and fit each piece into place: side wide code organization, multiple pages using the same code, staying DRY with loose coupling, etc.
B...
So there are 4 main methods I'm aware of to execute javascript code from a link. For my requirements, I need to do so without moving the screen anywhere (linking to # and not returning false is bad). SEO for the executed javascript code, if possible, is important too. So what's the right way to do this?
method 1 (need to make sure my...
Hi I have shared the code here : http://jsfiddle.net/jTAZ4/
Why am i getting the length as 0 although I can see an li with the specified class. any help is deeply appreciated.
I know this will work with find but just wondering why children selector doesn't work.
...
Could you please tell me how to copy events, if I copy some html?
I have a function to copy:
function add_to_order( row, row_input_value ) {
$('#buffer').html( row ).find('td:first').remove(); // add row to buffer and remove the first td element
$('#buffer').append('<td class="delete"><span class="remove-from-order button minus...
I have this code:
$('#chkBox').click(function() {
$('#hiddenBox').val($('input').is(':checked'));
});
I want it to be where if i click on the checkbox, in my hidden field, I set the value to true else if it's not clicked, the value would be false. Can anyone help?
...
var userRows = new Array();
function removeUser(user) {
userRow = $("#user-"+user);
userRows[user] = userRow.html();
userRow.addClass("removed").html('<td>User removed</td>');
// I would give the td above the correct colspan
// Now the user will be removed using AJAX
}
When running the JavaScript/jQuery code above, somehow i...
Is it possible to change the CSS when a link is clicked and return it to its normal state when another link is clicked, changing that CSS, as well?
<div id="nv_wrap">
<a class="panel nv7" href="#item8"></a>
<a class="panel nv6" href="#item7"></a>
<a class="panel nv5" href="#item6"></a>
<a class="panel...
so is something like this possible?
Y.one("input.units").on("keyup change", function(e){
...
});
the jquery equivalent is
$("input.units").bind("keyup change", function(e){
...
});
...
Hello, I want to register a jquery-script dynamically on a master page,
but it doesn´t work, can anybody help me?
I got the script in a folder Materials/Scripts from the root of my web application,
and my master page looks like
public partial class Application : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, Eve...
I am adding a number of large images for a slide-show to a page, but I want to start loading these images only when the normal part of the page is completely loaded (including the images).
To do that, I am adding the images in the $(window).load() function:
var slide_total = 20;
$(window).load(function() {
for (i = 2; i <= slide_...
Does anyone know if jQuery UI's Sortable has built-in functionality to keep the original dropped item in it's original list?
For example, you have two lists (one 'source' and one 'group'). I'd like to select from the source and drop into the group, but keep the item in the source.
Make sense?
Thank you!
...
I am using ajax to load my website content and want to update the window location when ajax is successful.
How can I update the window location to "/newpage"?? I need users to be able to go back and to refresh. Is this possible??
...