jquery

facebook ease effect w/ jquery

Hi, Can anyone recommend how to go about creating the "ease down" effect facebook implements today when you AJAX-load updates in your news feed? (When it reads "load x new news feed articles") if I use prepend, the new updates will be inserted all at once. I'm looking for a way to ease/slide down the old updates smoothly in order to ma...

Javascript Event Synchronization

I'm building a concert calendar that's very heavy on javascript (using jQuery). I'm having trouble synchronizing various events throughout the app, and I'm looking for suggestions for how to do this. An example of a simple use case: User clicks a month Calendar skips to that month An example of a more complex use case: User selec...

How to get height of the highest children element in javascript/jQuery?

Hi, I need a function to get the height of the highest element inside a div. I have an element with many others inside (dynamically generated), and when I ask for the height of the container element using $(elem).height(), I get a smaller height than some of the contents inside it. Some of the elements inside are images that are bigge...

User upload profile pictures on django/jquery website in .jpg/.gif/.png format. How can I scale/crop them down when displaying them?

I'm letting users upload a profile picture for themselves on my site. These images are coming in on all different formats and sizes. When I display these profile photos I want them to be of a uniform pixel size without distortion. Do I have to have the user crop the image right when they upload it? Given a randomn image, how can I sc...

jquery tab ajax loading new page

Hi, When I ajax load a new page on the tab the jquery script that is contained is within $() doesn't get triggered . Is there a better solution for this. <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="ajax_page.html">Ajax Tab 1</a></li> </ul> <div id="tabs-1"> <p>Proin elit ...

JQuery UI disabling reorder in sortable lists

So I have two sortable lists in a web app I'm writing. What I want to do is make one of the lists not be reorder-able, but allow it's items to be dragged onto the other list. Items from list one can be dropped on list two, but items on list one can't be rearranged. Another thing I want to do is to make it so when items are dragged off o...

ajaxFileUpload & document.domain

Hi, Does anyone know why ajaxFileUpload callback (succes) is not working on a page which use document.domain ? I'm using document.domain in order to proceed to main/sub domain AJAX request. UPDATE iframe on main domain : <iframe style="display:none;" src="sub.main.com" width="0" height="0"></iframe> <div id="stuff"></div> <script ...

How to get XML from Ajax jQuery Instead of json

Hi I write a method on my page that return a XMLDocument.This is my method: [System.Web.Services.WebMethod()] public static System.Xml.XmlDocument MyGet() { string cnn=System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString.ToString(); SqlConnection cn = new SqlConnection(cnn...

How would I go about appending to a table row from within a jquery each function

In the following code $j is the jquery object. I was wondering why I can append to the tbody tag fine, however I cant to the tr tag via either of the selectiors: tr tbody or tr. How can I append to the table row correctly? Thank you for your help. var $this = $j('<table><thead></thead><tbody><tr></tr></tbody></table>'); $j.each(setti...

How do I pass a Dictionary as a parameter to an ActionResult method from jQuery/Ajax?

I'm using jQuery to make an Ajax call using an Http Post in ASP.NET MVC. I would like to be able to pass a Dictionary of values. The closest thing I could think of was to pass in a multi-dimensional array of strings, but the result that actually gets passed to the ActionResult method is a single dimensional string array containing a str...

Wicket & jQuery Overlap/Collision

I am currently working on a web app using Wicket and started using jQuery core (UI also) in it today. I ran into an issue I troubleshooted as a jQuery function (show(), slideDown()) colliding with some of the javascript Wicket auto-generated for an external form link. Before I get deeper into this project I am wondering if anyone has ha...

How would you code Gmail's "Labels" text searchable checkbox list selection drop down control in ASP.NET/Ajax/JQuery?

I imagine having to interact with Gmail is a necessity for most programmers. Gmail's control for associating labels to emails is monumentally effective UI behavior. For those unfamiliar with the behavior, it's basically a button-initiated pop up panel (drop down UI effect) containing: 1) a text entry box 2) scrollable multi-checkbox li...

Finding whether the field conatins a class with required in JQuery

Hi, i am having a input field with a class = "required" .Now i want to check in JQuery whether the field which is having the class as "required" contains value or not.If not like alerting.. I tried it with. $("#ResultSubmit").submit(function(){ if($("#"+<?=$r['Attribute']['id'];?>).fieldValue()=="") { ...

How to send jquery $.post with alert

Hi All I have a problem with following script. It generates a list of places which are editable, deletable or you can even create a new one. I want to send a $.post request when creating a new place to a php file which makes an entry into a database (MySQL) and then lists this entryes in html. Now why doesn't even the $.post send an a...

How to add height to wrapper with jquery?

I need to add css height to each page dynamically with jquery. So far I got the following code, but it does not add height to #wrapper. Can anyone help me please? Thanks in advance. function getPageSizeWithScroll(){ if (window.innerHeight && window.scrollMaxY) {// Firefox yWithScroll = window.innerHeight + window.scrollMaxY; xWith...

AIR javascript class extension - air.URLLoader and static events

I am using multiple asynchronous air.URLLoader objects, and would like the events fired to be aware of the urlloader's "myId". The objects i am downloading have ids per se, so i'd like to know in my event listener callback function from which download id the progress/finished/error event came. code: # loader addonLoader = new air.URLLo...

Jquery Ajax problem

I have updated the html of a div using the Jquery Ajax. It is working fine: but after that when i see the html of the div in fire bug the html is not updated. I mean to say that this Jquery Ajax is working fine when i see it as a user, but when i see the html using the Fire bug it is not updated. This has blocked my further functiona...

Jquery: how to register an event on all pages?

I want to run the following jquery code on every page in my website. $(document).ready(function(){ $("#more").click(function(){ $("#morediv").slideToggle("slow"); return false; }); }); In all my pages I have the more and morediv elements defined, for every page I have different js file and adding this code in ev...

jQuery send HTML data through POST

I am using jQuery to make a POST to a PHP file with the HTML content of a div. The HTML content contain tables, inputs, smaller divs and I would like to grab the content of the main DIV and send it to the database. The only option I could think of is the POST method but I don't know if I can send plain HTML with it. Are there any other o...

How can I make a function wait until an animation completes?

I have used JQuery for a small animation work: a table #photos contains 9 photos and I would like to increase the width and height using the animate function on mouseover. But while the animation is running if the user moves to mouse to another photo it automatically triggers the next animation, so it's totally confused. What should I do...