ajax

jQuery 1.4 breaks my program

Hi, I am pulling html from my database with a jquery ajax request. However, if there is a single quote ('), I get a parsing error. Regular quotes work fine ("). For example, in my database I have: style=font-family:"times' new roman" (I put the ' in there after times for testing). With the ' gone it works... I start the request: ...

send keystrokes with ajax after 1s?

i wanna send keystrokes typed in a text field but only in 1s interval. this is to reduce the load of sending an ajax request on each keypress. so eg. if the user types 4 letters within a sec the request will send all these 4 letters. and lets say he types nonstop in 1 min, then the script will send on 1s interval till he stops typing. ...

Messagebox in ASP.NET 3.5 with AJAX

I have a ASP.NET 3.5 web site with an AJAX update panel. I simply need to process some server side code and then issue a user prompt that says "Code processing complete". I know there is supposed to be support for Msgbox-esque methods in ASP.NET but I can't find them and any other JavaScript based solutions don't work effectively when ...

Sharepoint ajax web service compatibality

I have a Sharepoint publishing site that is configured to use ajax 1.0 to use some third party controls (RadEditor, Bamboo). My problem is I have created a custom web service (.asmx) in a visual studio wspbuilder project and deployed it to the ISAPI folder. The project is set up to use .net 3.5 framework. This works fine for our custom ...

2 connections per server?

i´ve read somewhere that you can just have 2 connections (eg. ajax requests) to the same server. is this correct? so you can´t run 3 ajax requests simultaneously? what will happen to the 3rd one? and if I´ve got one iframe, then i can just run 1 ajax request at the time? what is the easiest way to get around this? what keywords could...

Can I place a jQuery UI dialog box in dynamically loaded HTML?

I have the following code for a simple jQuery UI dialog box. When I place this on a webpage, it works beautifully. However, If I call I insert this code dynamically onto a page using an AJAX function, it doesn't work and the dialog div just appears on the page. Is there any way to make it work in dynamically inserted code? File Dialo...

Is more ajax better for resources on a web app?

I know this seems like a really subjective question, but from what I'm reading, I'm generally confused. We are developing a web-based application that has tabbed windows, etc-very much a "desktop-like" application graphically. About half the page never or rarely changes, and the other half is content that could be handled dynamically w...

check if user got new message in the background?

im using comet to push new data to the user. 1: but i wonder how i should check if new data (new messages, new replies etc) is available? should i in the php in the background use a while loop and sleep it for 1 min so it can check every one min if new data has come in? or should i have a trigger in the database for this? what availa...

try to open a page every 10 seconds

Using Javascript (or Ajax) I want to connect to a page (a .php page) every 10 seconds. This will be done in user-side (browser) within a web page. Just, I'm trying to see the online users. I have about 1-2 visitors daily, in my personal web site. ...

jQuery, AjaxForm and success option

I'm using the jQuery Form plugin and more specifically the ajaxForm method to hijack a normal form and post it using ajax. I have a form with lots of rows. Each row has edit and delete options and each section has an add option. Hijacking the form I can work out on the server whether to add, edit or delete but would like the ability t...

Asynchronous output buffer for calendar (c#)

Ok, I'm currently writing a scheduling web app for a large company, and it needs to be fast. Normal fast (<1s) doesn't cut it with these guys, so we're aiming for <0.5s, which is hard to achieve when using postbacks. My question is: does anyone have a suggestion of how best to buffer calendar/schedule data to speed load times? My plan ...

jquery ajax call for asp.net mvc application getting two unauthorized reponses then Ok

I am executing the following jquery ajax call to an asp.net mvc controller which works, however on the firebug console it seems it is getting executed three times. The first two times it returns 401 Unauthorized and the final time it return 200 Ok. Could anyone shed some light on what is happening when I make this request and how I could...

Dynamically populate a list in Div

I want to dynamically populate an un-ordered list in a Div section. But, I want it on page load and I couldn't find any onload event in the Div tag. I want to make an AJAX request to load list from a .php file. Which event to capture? ...

Looking for a jquery recently viewed solution

I am coming up dry with my searches all morning for a starting place with this. I will throw out a very rough example of what I am looking to do. I want a div populated with cumulative id elements from previously visited pages within the site. Think recently viewed products @amazon for instance. So I want to grab 2 elements for each pr...

jQuery AJAX Redirection problem

Hello please consider this: On page A I have a link that takes you to page B when JS is off, but when JS is on, I want to replace content on current page with content from the page B. Pages A and B are in fact the same script that is able to tell AJAX calls from regular ones and serve the content appropriately. Everything works fine, ...

Depend on Javascript/AJAX?

In quite a few answers to questions related to sending requests to servers, I see the use of Javascript/AJAX being advocated. I'm still kind of a purist, in the sense that I try to develop sites that fully work without the use of Javascript/AJAX first and only add it to decorate the user experience. I assume that quite a few people tha...

generalist book for web2.0

I need to learn web20 frontend. Javascript, jquery, dom, ajax, css. A quick search reveals the best JS books which don't cover all of my goals. From reading the table of contents: JavaScript-Good-Parts-Douglas-Crockford is the defacto JS intro book, but covers syntax only, no intermediate web JavaScript-Definitive-Guide-David-Flanagan...

Best way to show notifications and messages LIVE on a webpage?

I am interested in a really good way of doing instant messaging like meebo and facebook and myspace all have, also for notifications on a page. Example on my site now, when a user receives a new mail message, photo comment, profile comment, friend request, some other things, they will receive a notification message and link on the page ...

Return value from query statement - jQuery

Hello, I have a ajax, jquery form which works fine, but returning a message from <div></div>. I want to return a value from a db query, a single value. How do I go about doing it. Thanks Dave ...

get_file_contents refresh div

Hi, I loaded a content into a div using php get_file_contents, now i want to refresh it using ajax but i can't figure how to do it. Sample code: <script> function refreshmydiv(){ ... } </script> <div id="mydiv"> <? echo nl2br(htmlspecialchars($myfile)); ?> <div> <a href="#" onclick="refreshmydiv();">Refresh My Div</a> ...