jquery

JQUERY, Compare two Text Blocks, and then animate only the new text

I have two blocks of text Text Block 1 - Currently displayed on the page: "Ahd Hd ahaSdjdajs dadjs jasd adskadskl1lksad klasd klasd dsa Ahd Hd ahaSdjdajs dadjs jasd adskadskl1lksad klasd klasd dsa Ahd Hd ahaSdjdajs dadjs jasd adskadskl1lksad klasd klasd dsa Ahd Hd ahaSdjdajs dadjs jasd adskadskl1lksad klasd klasd dsa" But now Block 1 o...

Loading jQuery with Tapestry 5

Okay, so I'm not a Java guy, but I work with loads of them. We generally load Prototype with Tapestry 5, as Tapestry was built on this javascript library. As a UI/front end developer/engineer, I know the awesomeness of jQuery and the lack of prototype therein. (Feel free to debate that elsewhere -- this ticket doesn't concern that que...

what's this jquery syntax?

I see that quite often in some Jquery plugins $('#foo').myPlugin({ foo: 'bar', bar: 'foo' }); I'm talking about the {} in the .myPlugin() part. I see quite often anonymous functions like .click(function(){ }); but the above syntax looks different thanks for your help! ...

Hover/Fadeto/Toggle Multiple Class Changing

So my problem is rather simple and complex at the same time. I am trying to create links that fade in when you mouseover them and fade out when you mouseout of them. At the same time that you are going over them I would like a pic to slide from the left. This is the easy part, I have every thing working. The image fades and another image...

good book on Jquery and it's compatibility with asp.net

Any recommendations? I have used Jquery already but I would like to really delve into it and find out how I can use it with asp.net, specifically instead of updatepanel and ajax toolkit. I use asp.net forms. ...

Click GEvent.addListener with jquery

Created a google map with GMap2 and put pinpoints on there that open up a balloon with the address when the pinpoint is clicked. I would like users to be able to click text on the page itself and use jquery to open up the corresponding balloon. However I can't figure out the ID to use to call a jquery click event. Basically I've got a ...

question about jQuery droppable/draggable - part II

Since I will be storing the employees who are out on vacation and back at work in a database table, I need to call deleteImage($item,$unid) function on page load. Not sure how to. This is the function that is called when the suitcase icon is clicked (suitcase=out on vacation) $('ul.gallery > li').click(function(ev) { var $item = $(thi...

jQuery datepicker - Set display position of the calendar when displayed as an overlay

Is there any way to specify where will the calendar be displayed when the related input gets the focus? I didn't find a way of doing this in the doc. Thanks! ...

asp .net jquery

I am new to asp .net. I am trying to use the JQuery library scripts. So included them in my aspx page as follows <script src="<%= Page.ResolveClientUrl("~/jquery-1.3.2.js")%>" type="text/javascript"></script> <script src="<%= Page.ResolveClientUrl("~/jquery.validate.js")%>" type="text/javascript"></script> <script src="<%= Page.Resolv...

stuff viewmodel into html.actionlink

Hi All, Is there a way to stuff my ViewModel into an Ajax.ActionLink? edit I'd like to take my 5 search fields on my page which are bind to a view model and send it along my .ActionLink as my object value parameter. Thanks, rod ...

.click() callback references local variable from the calling method instead of copying by value

The following jQuery Javascript code is included on an otherwise empty page. var element; $(function() { for (var i = 0; i < 10; i++) { element = $('<div>' + i + '</div>'); element.click(function() { alert(i); }); $('body').append(element); } }); The desired behavior is that this code should generate 10 div e...

uncaught exception: Syntax error after jQuery upgrade

I am trying to upgrade an existing application from jQuery 1.3.2 to jQuery 1.4.2. When I do this, the page fails to load correctly and firefox's error console displays the error message "uncaught exception: Syntax error, unrecognized expression: Syntax error, unrecognized expression: search". How can I determine what is causing this exc...

how to get option title="sample" using jquery

Hi, I'm trying to update a hidden field based on the a title attribute on a select option, I've tried the code bellow and can't seem to get it to work. Thanks for any help! <form> <select id="selectbox"> <option name="test" value="one" title="title" selected="selected">one</option> <option name="test2" value="two" title="title2">two</op...

JSONP & jQuery Chunking

Hi Guys, I am wanting to utilize JSONP for a project with x-domain scripting but little concerned with the 2048 character limit in IE. Does JSONP support "chunking" automatically if character size exceeds 2048 ? If yes, does anyone have any examples they can share ? Thx ...

How do I vertcally align thumbnails of unknown height using jQuery?

Ok, I am a complete beginner to this, in fact I am still building my first website. I am attempting to do this all by hand-coding without a CMS in order to try and learn as much possible as quickly as possible. If this post is in the wrong place I apologise, and a pointer to right place would be appreciated. Here goes, I am trying to pi...

jQuery AJAX converting variable string to html styled text

I've got an AJAX transmission of a variable string in my primary coding language (Visual FoxPro 9) that looks like this: AjaxResponse = CREATEOBJECT("Custom") lcMessage = "<li class='hello'>Hello</li>" AjaxResponse.AddProperty("Reply", lcMessage) Response.ContentType = "text/html" Response.Write(AjaxResponse.Rep...

Prototype to JQuery - how to access originator of event

Hi there I'm coming from a Prototype background and looking into JQuery. I'd like to know the 'right' way to do attach a click event to a bunch of elements, but then know in the event handler which one of my elements was clicked. I've come up with the following: MYNS.CarouselHelper.prototype.attachImgHandlers = function () { $j("...

Jquery toggle should expand after Page reload

I wrote below code for Collapse/Expand some section. It is working fine. Finally If I click "Save" button and I am re-loading page again in asp.net. So then sections are going default Colleapse again. I need them back to expand. How can I do that? $(function() { $('tr.subCategory') .css("cursor", "pointer") ...

How do I force a postback on an ASP.NET button inside a jQuery modal dialog (div)?

I think my title says it all. I have a modal dialog showing up and the user can make some changes and then click a 'Save' button. I need that to totally post back the whole page. What would you suggest? I just assumed the button would fire off regardless of the jQuery. ...

Change a select list display value upon selecting description

Hello, I would like a select list that does the following: When the select list is open, display the list of descriptions. When the user selects an item, the select list will close an only the value will be displayed. The reason for this is to conserve space as the values will be much shorter. I'm hoping that there's an answer in jQ...