ajax

Is there any better approach then using Ajax Update panel in SharePoint WebParts ?

we are using Ajax Update Panel in SharePoint web part to avoid postback, Certainly it is the easiest approach out there to provide ajax functionality.But at times it feels like the performance is horrible!! Are there any better approach where in you get better performance then ajax update panel. thanks. ...

Jquery ajax hash return page fragment

Hi, I have an application with URLs like this: domain.com/category1/category2/ etc. I see that ajax understands the # and can pass the params to my php script. I am wondering if there is a way in ajax to do the following URL: domain.com/#category1/category2/ If so, is there a function that I can use in jquery to do this? I have seen...

Some ideas on indicating the active cells (or passive cells) of an HTML table (by coloring or by bluring or other)

Hello all, I have an html table, which includes let's say 1 row and 5 cells (C1, C2, C3, C4, C5). (Cells have specific content) C1 - C2 - C3 - C4 - C5 Usage 1: C3 is used with C1 and C2 at the same time, Usage 2: C3 is used with C4 and C5 at the same time, When I am using "C1, C2, C3" then C4 and C5 is not used or When I am using "C3...

JQuery Cycle and JSON with JQuery

Hi everybody, I found the jQuery Cycle plugin which is very interesting. So, there is the following script that should return the images: $(function() { // retrieve list of slides from server $.getJSON('slidelist.php', startSlideshow); function startSlideshow(slides) { /* server returns an array of slides which looks like this...

ajax dropdown(country, state, city)

Hi friends, I need some ajax code to do some functions with drop down. I have three table of values one for country, then state and city. And i have three dropdown to show these values first it should show select country select state select city in that drop downs(slect) respectively. when i select united states from the firs...

ajax rating script - avoid voting again

What's the best approach to achieve this? With cookies or with IP control? ...

Optimizing for Internet Explorer

Hi, Being a web developer I have noticed that anything I create works absolutely great in all browsers, but always always always has a speed issue in Internet Explorer. Please note I am referring to speed, as I always take care that it displays and works across all browsers. Is there anywhere, or does anyone have, good programming tip...

Table to autorefresh on "check"

I've been reading and trying to figure out a way for half a day yesterday, and any solutions seems to fit to this. Overview: My solution is building up xml files from different folders on another server. After the xml is built up, I can run a "File Mapping" which will grab the appropriate information from the a specific xml selected wi...

What is the cleanest way to design form processing to support AJAX-capable browsers and non-AJAX browsers?

I'm using PHP, and am wondering what the best way is to handle simple POSTs and AJAX POSTs without repeating code in the simplest way possible. Thanks! ...

JQuery Not Parsing Properly attr("href") in IE

I have a really wierd issue that I'm hoping someone can shed some light on. I am using Jquery to retrieve an Http Response from another website (which I own). Once I receive the DOM, I parse through it in order to get certain information. However, when I try to get the href attribute of a link, IE is adding the local domain to the beginn...

What is the proper way to update all elements of a rendered page via AJAX?

I have a complicated page being rendered by PHP and would like to keep all elements of the page up to date via AJAX long polling. Is there some kind of general / clever way to design an infrastructure to support this without having to specify manually each element to update? Just looking for ideas. Thanks! ...

When does the browser execute Javascript? How does the execution cursor move?

I was wondering if there are any available resources that describe how a browser's cursor executes Javascript. I know it loads and executes tags when a page loads, and that you can attach functions to various window events, but where things get fuzzy is when, for instance, I retrieve a remote page via AJAX and put its contents into a d...

AJAX with Struts 1.x Version

I am having an application developed with Struts1.3, Jboss4.X version and jdk1.5 Now as an enhancement we are planning to implement AJAX to the web application Can you please suggest me Whether I can use AJAX with Struts1.3 Framework? Which Jar I need to use if I Can implement AJAX? At Some website, I realised struts2-dojo-plugin.jar...

Preload images for AJAX content using jQueryUI-tabs

So I've got a pretty nice application going using ui-tabs.. problem is, I cannot for the life of me figure out a way to pre-load images in my ajax content before the tab panel is shown. The only way I can think of is to create my own ajax functionality for the loading of tab-panel content, and adding something like this to the ajax call...

jQuery Post to PHP to Redirect?

Hi all, I'm trying to figure out if I can do the following: User submits form to script via jquery post Depending on what was processed, script may or may not return errors If the script did not process any errors (i.e. SUCCESS), I want to redirect to a SUCCESS page I know it's possible to redirect the browser via javascript, but I'...

ASP.NET MVC and strongly-typed partialview

I'm loading a partial view with an AJAX call: public ActionResult LoadServerForm() { //data stuff ViewData["ApplicationID"] = appID.ToString(); ViewData["Servers"] = ServersList(appServerRep.Session, null, appServers); return PartialView("Application_AddServer"); } This ...

jquery ajax: headers seem to not be working

hello, i am trying to get the headers of an ajax request i made through jquery $.get(url, function(response, textStatus, headers ) { console.log("Response: %o", response); console.log("TextStatus: %o", textStatus); console.log("Request: %o", headers); } ); this does not seem to be working however: th...

How to use Jquery ajax to set $_SESSION?

I am trying to create a simple log in system that uses ajax but the problem I am having it wont set the $_SESSION. login.js: $('#bt-login').click(function(){ var login = $('#login').serialize(); $.ajax({ type: "POST", url: 'widgets/Login/loginFunction.php', data: login, c...

Ruby on Rails with Plupload

I am looking for an upload solution for Ruby on Rails where I can upload multiple large image files simultaneously and show the progress to the uploader so they know the files are being uploaded. I stumbled onto Plupload which seems perfect for what I'm trying to do, but I can't find any Ruby on Rails examples on how to incorporate into ...

How to loop through table cells with jQuery and send the data to database

What's the best method for looping through a table, grabbing all the data in the cells, but skipping the <th>? Do I put the data in an array? ...