ajax

Updating a MySql database using PHP via an onClick javascript function

I am creating a web game for learning new words aimed at children. I have a set of four links each displaying a specific word retrieved from my database and a clue, I need to check that the word which has been selected matches the correct word for that clue. I know that I need to use javascript because of the onClick function and I can...

Need help handling multiple jquery $.get calls at once

Hi. I'm new here and I'm very stuck. I need help. Hopefully someone can tell me there's a very simple solution to my problem Smile I have a site where you can click links and open the relevant content in a "window" so to speak. It's all from the same domain. Anyways, my problem occurs when you click on lets say... 5 links very fast. Wha...

Tile scrolling / preloading (Google Maps style) of HTML layers with Ajax

I am looking to replicate the panning (not necessarily the zooming) effect of the Google Maps API, but without the images. Essentially, I want to position HTML elements in a large coordinate system and be able to navigate around them, Prezi style (though without the rotation). Preferably, I'd like to preload the elements dynamically thr...

Why not just using ajax for Page Requests to load the page content?

Very much Webpages loading all their content to change little informations. Now i would like to know why shouldn´t the developers use ajax for the main page requests? I will like to develop the main requests on my webpage with ajax but i dont know any cons. Has anybody an idea why anybody shouldn't use ajax so much? ...

Reference asp.net control by ID in javascript?

When asp.net controls are rendered their ids sometimes change, like if they are in a naming container. Button1 may actually have an id of ctl00_ContentMain_Button1 when it is rendered, for example. I know that you can write your javascript as strings in your cs file, get the control's clientID and inject the script into your page using ...

JQuery 1.3.1 doesn't find dynamically generated rows

I have just installed in the ASP.NET MVC RC2 and with that also using the JQuery 1.3.1 library. Before I was using the 1.2.6 library. Our application works fine under that library. But now I have strange problem. We have a grid view that we build up with the result of an AJAX call. With the result returned we add new rows to a table thr...

using __dopostback(UpdatePanel) from a UserCtrl in a WebPartZone

I hope someone can offer a little assistance with this. I have a button which when clicked presents a javascript generated OK or Cancel. Once the user clicks on OK it fires a __DoPostBack clientside and targets an UpdatePanel which processes the postback asynchronously. I then use ScriptManager.RegisterStartupScript() and pass in a jav...

ASP.NET Ajax feature in existing ASP.NET website

I have a ASP.NET Website which was developed in ASP.NET 2.0. Now I want to add a new page to the project which will make use of the ASP.NET AJAX features like Partial page updating. Is there any options to do this ? Do i need to change any settings for this in my already existing project /Solution ? ...

Dynamically Scrolling a Textarea

Hello All I have a textarea html element on my page that gets reloaded via ajax. The whole textarea is returned each time not just its content, and the content grows over time. Along with the textarea i return the following piece of javascript: <script type="text/javascript" > var textArea = document.getElementById('outputTextResult...

Setting location.hash in frames.

I am using ajax to update the location of a page in a frame. But when setting the location of the hash (on Chrome and some versions of IE (5.5) specifically, but occasionally on IE7) the page is being reloaded. The following html demonstrates the problem. the main frame.... frame.html is <html><head> <frameset rows="*"> <frame src=se...

"Please wait ...", "Loading", "Saving", "Generating" Implementations

In the browsers using HTML, Ajax, or YUI (JavaScript in general) what are successful and preferential implementations of the 'please wait we are working on your request'? Additional context is that the Web Application I work on has a few requests that can require significant IO/CPU time (10 - 30 seconds) and has the need to communicate...

Jquery onclick on ids not working for the ids returning from the ajax request

I have document.ready function for image hover. When the image id sign_up_close is there in the document the hover is working. If the same id is coming from the AJAX request then the hover is not working in JQuery. Please give a solution, I have so many functions like this to be worked on AJAX request. The AJAX request is coming with ...

How do I get access to the ASP.NET Client-Side API at all times?

Some background. The project is a VS 2005 Web Application using ASP.NET AJAX Extensions 1.0. Question, How can I reference the JavaScript files that are used by the Scriptmanager control, without using the ScriptManager control or how can I load the ScriptManager JS files earlier (I don't think this is possible as the ScriptManager has ...

AJAX and Javascript cache efficiency question

I am building a simple blog which is viewed single-page (do not worry, it is progressively built) and thus I am sending AJAX requests which return HTML to be inserted into the page. What is the most efficient way to store/cache information (HTML) to be added at a later time into the DOM? How much information (old entries which the user...

Calling typeface.js on HTML fetched by jQuery?

I have a page where I'm fetching a Wordpress main index to handle my 'news feed', imported via jQuery.ajax. I'm also using typeface.js on the same page to have better typeface control. I want to call typeface.js on the elements in the Ajax'd HTML. The problem is that I'm not sure how to do that, since the structure of it is unfamiliar...

[Django] inlineformset_factory custom form id

I am writing a web application that uses ajax to add new forms on the page. Existing forms are made using inlineformset_factory. When client side gets the form it inserts it in the right position and updates the value of #id_form_type-TOTAL_FORMS" (form_type is name of the form in this example). Existing forms have name for each field l...

Making a website/project Portable - Check List

Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in VWD 2008 Express, I am also using MS SQL Server 2008 Express, I used ajax tabs and a textBox characters counter control developed by http://www.4guysfromrolla.com/ The database is attached with MS SQL Server Management Studio Express and the files ar...

Jqmodal isn't working in the Updatepanel

I have a method named raise_alarm() which, show a message box based on jquery. But when I call this method from an event of a control(such as submit button) which is inside of Updatepanel, it isn't working. Related codes are below. How can I fix it? Public Sub Raise_Alarm(ByVal p_Page As Page, ByVal p_Message As String, Optional ByVal ...

AJAX and the MVC pattern

Hi all. Please redirect me if a similar question exists.. I haven't been able to find anything, though I'm sure that my problem is fairly common... I have a page that has 5-6 divs that can be individually loaded through Ajax requests. Through a prototype ajax.request(), the server (php) echoes back the HTML code for the division before ...

Eval is evil... So what should I use instead?

An ajax request returns me a standard JSON array filled with my user's inputs. The input has been sanitized, and using the eval() function, I can easily create my javascript object and update my page... So here's the problem. No matter how hard I try to sanitize the inputs, I'd rather not use the eval() function. I've checked google for...