jquery

jQuery delay between two animations

Code: $("#telecomGrayscale", this).stop().animate({ top: '467px' }, { duration: 400 }).delay(800).queue(function() { $("#boxcaptionTelecom", this).stop().animate({ top: '272px' }, { duration: 900 }); }); The above code is not working as needed. The 2nd animation that is inside the queue () is no...

How do you call a JavaScript (AJAX) function when the user reaches the end of a page to load new content?

Hi.. On twitter (new twitter) and facebook they now have the the ability to load new tweets and posts when you hit the bottom of the page.. Is there a JavaScript / jQuery event that you can call / add to a div so when the browser hits the bottom it does some ajax call to get the new data? Thanks Daniel ...

Jquery. Reload SWF object with new parameter

Hi, i'm assigning new playlist to the SWF object. Then it needs to be reloaded it with new param: sections.change(function(){ var current = $(this).val(); var fextention = ".xml"; //show the loading bar showLoading(); //reloading player with relevant playlist: xmlplaylist.val("xml=playlists/"+current+fextentio...

MVCContrib Grid - how to add and delete rows with ajax ?

Hello, I'm wondering what's the best strategy to delete a row in MVCContrib generated grid. Consider this grid: Html.Grid(Model.Proc.Documents).Columns(column => { column.For(c => c.Name).Named("Title"); column.For(c => c.Author.Name).Named("Author"); column.For("Action").Action( delegate(DocumentDto doc) ...

Making onpropertychange and domattrmodified work to detect when elements are changed

Something should trigger, no? I get not supported in IE8 and nothing happening in Fx 3.6.10 <html> <head> <script src="http://code.jquery.com/jquery-1.4.2.js"&gt;&lt;/script&gt; <script> // modified from http://pragmatec.blogspot.com/2009/06/google-toolbar-style-and-tooltip.html jQuery(function($){ $.fn.dommodhandler = function(opt...

How can I get tweets using Jquery?

I need to display new tweets from Twitter.Can It is possible to do using Jquery? Thanks in advance ...

ajax jqery updating div problem

I am trying to use ajax to update the views which simply checking results in database if there are results found, my html div will updated with section in that div if not found result, it will check after some time. the code is working without if else section but the client browser will crash at the certain point, the browser is froz...

how to trigger an event on onload of <textarea>

In my application there are few <textarea> presents and applied pagination to all these <textarea>. On a page one <textarea> is displayed. Assume there are 10 <textarea> exist, then there will be exist 10 pages, one <textarea> on each page. I have applied auto fit feature to these <textarea>, written below function for this : functio...

How to pass context in jquery ajax success callback function

var Box = function(){ this.parm = {name:"rajakvk",year:2010}; Box.prototype.jspCall = function() { $.ajax({ type: "post", url: "some url", success: this.exeSuccess, error: this.exeError, complete: this.exeComplete }); } this.exeSuccess = function(...

jquery math with radio button and text field

I'm trying to build a calculator that does some simple math based on a number you input and a radio button you select. I want to pre populate the number and pre select the radio button and show a sample outcome. When I hard code the value of the text field it works until I try and change the new number then my output value flashes cor...

How to get control values and modify them in Page Methods?

I have couple of controls in the page. I need to modify these value in Page method. How can I do that?. When I modify those values in page method should reflect in page? Please give me expample. ...

Jquery .delay().fadeOut cancel/clear queue.. Is it possible? How?

Hi, I need some help here.. Is it possible to cancel the chaining delay? Mn.Base.TopBox.show = function(timedur){ $('#element').fadeIn().delay(timedur).fadeOut(); } Mn.Base.TopBox.cancelFadeout = function(){ } I read about queuing and tried some different approaches but I hadn't success... $('#element').stop(); $('#e...

Scope of variables in Javascript

I'm having trouble understanding the scope of 'this' in this scenario. I'm able to call each one of these functions like: this.startTracking(); from within the time tracker switch object. However, when I try to execute the code: Drupal.timeTracker.prototype.stopTracking(); It loses all scope of variables and my GET request becomes undefi...

How to ignore click event when clicked on children.

So I have the following scenario: <div id="block"> Sample text. <a href="#">Anchor link</a> </div> <script type="text/javascript"> $("#block").click(function() { alert('test'); }); </script> When I click anywhere inside the div, I'm getting the 'test' alert. But, I want to prevent that from happening when I click on the "Anchor l...

Getting Database Image to JQuery Dialog

Hello, I have a SQL Server 2005 database. This database has a table named "GalleryItem". Each GalleryItem has an ID (an int) and a field called "Thumbnail" (an image). Because this field is an image type, it's stored as binary in the database. My problem is, my user interface is pure HTML with JQuery. The user runs a query and the resu...

What does clearQueue in jQuery do?

I was reading the code for AutoScroll plugin @ http://blog.insicdesigns.com/2010/08/an-ultra-lightweight-autoscroll-to-top-jquery-plugin/ There you will find var t = jq('<div class="'+ops.styleClass+'"></div>') then after some code t.clearQueue().fadeOut(ops.hideDuration || 200); What do clearQueue is doing here ? Or simply ...

PHP & Jquery - open a small div over others div when mouse go on a link

Hi. i need to open a div (or somethings other, dunno what) when mouse go on a link. But this div doesnt move other div. It must open OVER the others div (like this website...when there are the "popup/error" div over others div. How can do it? Transparent? Or somethings like it? for example, if i write somethings into title field in a li...

Access jQuery Datepicker array elements

Been having a poke around and I am trying to be able to get the individual sections of the date chosen by the date picker as vars, so they can be used outside the .datepicker function. Is there an array I can access to grab this data? You can format the date as one of the functions options using dateFormat: "dd mm yy" etc, so there m...

When you update a form, would save and replace text, or avoid updating the text?

I have a form in jQuery where I update all the images via a simple ajax call to reload the entire page. Unfortunately the captions are included in that form as well, and as I start writing, my captions are overwritten. What then would you do to keep them? Would you.. Save them before the ajax call and replace them after it? Avoid up...

Php display contents of pdf

Is it possible to print the contents of a pdf using php ,javascript or jquery ...