jquery

jQuery - Animate element that has children absolutely positioned outside it - blinking

Hi there, Forgive me if this has been addressed before, couldn't find anything. I am animating a content bar that that has children absolutely positioned outside it (via negative margins). The idea is that the children will animate with the bar as it expands. What happens is as soon as the animation starts the children disappear, and...

JQuery: Check whether an Element is Hidden from the user

How to check whether a particular element is hidden from the user? In my code, under certain conditions, this code will be called: $("#VersionSelectField").hide('fast'); So I have to make sure that if $("#VersionSelectField") is hidden, then I would not have to validate the value inside it when I submit the form ( I use JQuery Validat...

Can somone help me understand this tutorial better?

Hi I am trying to go through this tutorial tutorial . This tutorial seems to do everything that I been looking for but I am having trouble trying to understand it. Maybe it is because I don't know enough of Xval, jquery.validate. 1st He seems to be using a typed view: RemoteValidation.Models.User. What happens if I want to pass some ...

edit-in-place problem with sending GET data

$('.textedit').editable('/challenge/skeleton/textedit/textedit/process', { loadurl: '/challenge/skeleton/textedit/textedit/loadraw', loaddata: {id: $(this).attr('id'), client: $(this).data('client')}, submitdata: {id: $(this).attr('id'), client: $(this).data('client')}, .... }); $('#textedit_footer').data('client', 5); $...

How to Delete Session Cookie?

How to dynamically, via javascript, delete a session cookie, without manually restarting the browser? I read somewhere that session cookie is retained in browser memory and will be removed when the browser is closed. // sessionFooCookie is session cookie // this code does not delete the cookie while the browser is still on jQuery.cooki...

How to manipulate form field values in jQuery

I'm trying to get the value of a few checkboxes and enter them in a hidden form field, is there a way to do that in jQuery, my checkboxes look like this <form> <input type="checkbox" name="chicken" id="chicken" />Chicken <input type="checkbox" name="meat" id="meat" />Meat </form> <form method="post" action=""> <input type...

Getting inner html with jQuery?

I have a javascript/jQuery block as a callback after $.get function: function myCallBack(data, textStatus) { var text1 = $(data).html(); document.write(text1); } The data contains html data ok. I'd like to strip the html and get only inner html into text1 variable. For some reason it doesn't work. Firebug kinda "crashes" upon exec...

Jquery html() and Internet Explorer Issue

The JS script: function ShowUploadingAnimation() { $('#info_msg').html("<div style=\"padding-top: 15px; height: 50px;\" align=\"center\"><img id=\"uploading-img\" /></div>"); $("#uploading-img").attr({ src: "images/uploading.gif", alt: "Uploading" }); } And the html usage: <input type="submit" value="Upload" onclick="ShowUplo...

I've got a trouble in css and jcarousel lite

I had this HTML code like that: <ul> <li> <div class="Items"> <div class="WrapImage"> <div class="caption-right"> <span class="icon1"></span> <a class="time" href="">4:03</a> </div> <div class="Images"> <img src="/images/images/rightColumnImg.gif" /> </div> </div> <div class="text"> <a href="">A good clips you should click to see</a> <p...

jQuery dialog + ASP.NET buttons - strange behaviour

Hi Having this div: <div id="advSearchDialog" style="visibility:hidden;"> <xx:search ID="searchUC" runat="server" /> </div> And a button: <input type="button" id="btnAdvSearch" value="Search" /> I turn it into a jQuery dialog, where the button opens the dialog: $(document).ready(function() { $('#advSearchDialog').dialog({...

writing XML files with jQuery

Hey, chaning xml attributes through jquery is easy-peasy, just: $(this).attr('name', 'hello'); but how can I add another tag into the file? I tried using append the JS dies silently. Is there any way to do this? Clarifications: this code is part of an extension to firefox, so don't worry about saving into the user file system. Stil...

Popup blocked, jquery window.open in success: AJAX? outside ok.

Hi there, can anyone help, I have some jquery and chrome is blocking the popup i am creating, after some investigation it appears to be an issue with window.open in sucess event of an ajax call.. Is there a way round this? My jquery ajax call needs to return the URL i need to open :-) ... so i am bit stuck... If i place the open.windo...

Use parent node not children - jQuery .each(function())

I am using jQuery to grab results from a webservice(3rd party can't change). A result set is something like: <result> <contactId>1234</contactId> <contactState>9</contactState> <contactStateSortOrder>5</contactStateSortOrder> <address> <addressId>568</addressId> <contactId>9801</contactId> </address> </result> Now...

Jquery - how to open a window and POST to it? (required for bank processing page - doesn't accept querystring)

Hi there, Is there anyway that i can open a new window in the browser using jquery and post to it. Reason being is my bank requires that i open there payment gateway and pass my values by POST and not GET. I have a bit of workaround at the moment but its not idea.. I used QUERYSTRING to an ASPX page withing some hidden forms and submi...

cannot get post values send with ajaxcall

Hello, My problem is the folowing: I am trying to retrieve the postvalue, but whenever I put that statement in the php code the ajaxcall will fail. I cannot see what I am missing here?? $.ajax({ url: "includes/livetabs.php?actie=sessiegebruikersnaam", data: {gebruikersnaam: tbgebruikersnaam}, cache: false, ...

back button scroll position

After I submit a form the position will return to the top of the window. Instead of going to the previous position. Looking at using scrolltop to rememeber the positon or do you have a better idea? I'm using stuff like PHP5, jQuery and MySQL. ...

getJSON callback QueryString Param Issue

This works fine: $.getJSON("http://localhost:59396/xxxWeb/ CarouselHandler.ashx?action=getproducts&ids=" + ids, function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfIm...

Fix row position or ignore row with jQuery Tablesorter

I'm using jQuery along with the tablesorter plugin to sort a table. Everything is fantastic, but I'd like to insert a few rows ever 5 or so rows, and have those stay in that position, no matter how the table is sorted. I've searched around on google, and have found nothing. I was thinking perhaps using a hidden table row along with a fo...

Total height of the page

I'm trying to get the total height of a page using JavaScript and jQuery so I can check if the page is long enough to display something, however in my testing I am unable to get the total height of a page. I've looked around on the Internet but things like this don't seem to be well documented, as all I can find is scrollHeight, which, ...

Passing complex JSON string to 1 parameter webmethod in c# - desearialize into object (json.net)?

I have been happy serializing with javascript objects into JSON using JSON.stringify And sending along to my "static" webmethod in c#/asp.net and sure enought it arrives .. I need the correct number of parameters hence if my json object has "startDate","endDate","reserve" then my webmethod needs these as parameters. "Basica...