ajax

Using progressbars with percentage for AJAX requests

Hello, How do I use progress bar with percentage for EVERY AJAX request on the page? I've already asked about loading a whole page with one progress bar here But,now I want to know if its possible to use a separate progressbars for each AJAX request on the same page? Any ideas? Thanks. ...

A pro alternative to microsoft AJAX Update panel ?

hi, as you all know update panel send the same response to server as a full post back ( or maybe i am understanding wrong), it is true that it is much better than a full post back. so is there an alternative to send only response data ? like you have a method that ill return date, i think this is the only thing that should be sent and...

What should i choose? jquery, mootools, yui, scriptaculous or prototype?

Duplicate: Which Javascript framework (jQuery vs Dojo vs … )? I am totally new to javascript, but i want to implement ajax features into my website. Which JS framework should i learn? Please recommend or which one you are using and why you use it? ...

AJAX and MVC (C#)

I've never used AJAX and am, quite frankly, not much versed in JS either. I have a page (Product Browser) that has the following breakdown: Navigation (First, Prev, 1, 2, 3 Next, Last) - full post back Items per Page drop down - I want to AJAX this Left Column - Filters - I want to AJAX this Product Display area - displays products ...

How to cancel ajax request that has run (on server side)

I was wondering if there's a simple way to cancel an AJAX request? Beyond just calling an 'abort' on the XMLHTTPRequest on the client side, is there a way to easily stop the server process? The server is using Apache. Thanks ...

Page moves to top on postback of control in updatepanel

I have an update panel on my page and anytime I have a control postback in it, the page scrolls back up to the top of the page. Why would this happen? How can I fix this? ...

AJAX Image Upload & Crop (with ASP.NET & MVC)

I am looking for a component to allow the user to upload and crop an image, resize it and save it in .PNG (or .JPG) format (if it is in a different format). What is the best solution? ...

AJAX (prototype/php) getting partial status updates during script execution

I have a process I want to run in the background of a page. The process will take a while to run, lets say a few minutes. I have it set up so that from the page I can click on a button to start the process off, wait a bit and then it will finish and I can have the page update notifying me that the process was run successfully. I'm doing...

Get source of some http url with javascript

Please, I have another simple question for experienced programmers. Is it possible to get source code of any webpage with javascript at client side? With AJAX maybe? But I need that the server I am downloading the url from does see the IP of the client.. with AJAX it will show my script server IP, right? Thank you in advance. ...

Problem with ScriptManager.RegisterStartupScript in WebControl nested in UpdatePanel

Hello, I am having what I believe should be a fairly simple problem, but for the life of me I cannot see my problem. The problem is related to ScriptManager.RegisterStartupScript, something I have used many times before. The scenario I have is that I have a custom web control that has been inserted into a page. The control (and one or...

Auditing transactions in an eCommerce add-on

Hi I'm puzzling over how I might achieve the following: We deal with a number of customers that have various eCommerce implementations, some using paypal, eBay store, .net cart and various others. We want to provide the customers with some simple code that they can add to their checkout process that will track the transaction and prov...

Good PHP Text Pagination

Hi folks, First post here. I'm working on an information warehousing site for HIV prevention. Lots of collaborators will be posting articles via a tinyMCE GUI. The graphic designers, of course, want control over page lengths. They would like automatic pagination based on the height of content in the page. Anyone seen AJAX code to m...

Lazy loading parts of seam pages?

Hi All I'm working on a seam application (2.1.1.GA under JBoss AS 4.2.2) where a particular has a number of (sometimes large) sections that do not need to be rendered untill the user interacts with that particular section, think along the lines of an article title where the user clicks on the title and it expands to show a box containin...

Best practices for using AJAX without Rails' built-in helpers?

In my blog application, some posts appear as excerpts -- i.e., the user sees the first (say) 500 characters, and can click a link to view the entire post. Here is the relevant partial: <% href = url_for post_path(:id => post) %> <h1 class="title"><%= post.title %></h1> <h2 class="published_on"><%= post.author %> wrote this <%= time_ago...

How to test an AJAX application that is pulling data from a live website?

Hello, I'm working on a AJAX application that pull data from a live website, I can't replicate the complete application on my local environment at the moment so in order to test if the Javascript code is working as expected I need to be able to bypass the same domain restriction on the browser (without making changes on the web server) a...

Eliminating redundant code in a jQuery script

I've set up a page to load data via AJAX, utilizing the jQuery .load function. Upon loading each new file by clicking a link on a tab bar, I'm using jQuery to set the selected tab's color to yellow. I tried using a .toggleClass function to set the class of a li element to active, so that it would be yellow, but no dice, so I've resorted...

Telerik RadDock - ajax update returns a JSON error.

Trying to update RadDock (open/close it) by putting it in UpdatePanel however no luck....I'm getting the following response. 189|error|500|Invalid JSON primitive: {"Top":179,"Left":583,"DockZoneID":"","Collapsed":false,"Pinned" :false,"Resizable":false,"Closed":false,"Width":"300px","Height":null,"ExpandedHeight":0,"Index":-1} .| He...

AJAX (prototype/php) running 2 ajax process hangs until first one is finished

This question is a followup to my previous one: Previous Questions. So I setup my page to initiate an ajax call to initiate processing some records. And after each record it updates a row in another table to keep track of the status of this process. After that first ajax call is made, I have another start up. It's a Ajax.PeriodicalUpdat...

How to apply inline and/or external CSS loaded dynamically with jQuery

I have an Ajax control that is loaded into a Yahoo popup using jQuery. I just use a simple .get request to load the HTML. $.get(contentUrl, null, function(response) { $('#dialog').find('.bd').assertOne().html(response); }, "waitDlg"); Now the problem is that the content that is loaded needs its own CSS which is actual...

Bind data with CollapsiblePanelExtender

I want to bind the CollapsibleExtender with data from Db. Can anyone help me do that. A simple example is also useful. Thanks. ...