ajax

how to return variable from the function called by onreadystatechange=function()

I'm using the ajax technique in combination with php and I want to know how to get the return variable from the function that is called by onreadstatechange. A java function is called onsubmit to then call a php script to verify some things in my database and return true or false depending on the results. Here is where I run into probl...

Facebox - Jquery 1.2.1 close function broken in 1.3.2

I am using "facebox" which uses jQuery 1.2.1 on my website here http://www.pointclickshoot.com/beta2 The rest of my site is using jQuery-1.3.2.js. I need to update the following functions to work with jQuery 1.3.2: /* Bindings */ $(document).bind('close.facebox', function() { $(document).unbind('keydown.facebox') $('#faceb...

jquery address how do you use it?

im trying to understand how to use the jquery address plugin for handling deep linking with ajax. but the documentation is very poor and i cant find any good tutorials explaining what is going on. i think a good documentation with good examples is important with every plugin. could someone explain or give some useful links for explana...

Light Blogging system sans database

Hi, This is a general programming question. What is the best way to make a light blogging system that can handle images, bbcode-ish styling and text without a database back end? Light means not more than 50 to 100 posts in extreme cases. What language(s) should be used? Is there any preferred data format for the information? How does s...

AJAX Script Only Works in Firefox, But Not IE.

My ajax script only works in Firefox and not ie why?? ======================================== <html> <head> <script language=Javascript> function Inint_AJAX() { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE try { return new XMLHttpR...

innerHTML size limit

I want to use AJAX to load an htmlfile into a <div> I will then need to run jsMath on this. Everything I have done so far with innerHTML has been a paragraph or two, maybe a table and/or image. Nothing too fancy. What potential problems may occur when I set innerHTML to an external 25k file, with all sorts of complex css formatting?...

Tools for managing complex relationships in mysql databases, more specifically for manual data insertion

Hello, Sometime you have many relationships in a table, and you need to insert data. It becomes a painful task when you constantly have to go check the ids of your parent rows for each foreign keys. Is there a tool that make this task easier, by allowing me to do a kind of ajax search for ids while I am inserting data? For exemple, ...

if Ajax request don't finish, html links can't click

I have a jquery ajax request in my website page, and every page i need to post this request to server to get the status. But it have a issue: after i open the page in browser, before this request return the data, my page all link can't works, they can't click.But it render normal. so anybody have a solution for that? such as: make the pa...

Loading external page using jquery/ajax - loading external page's jquery scripts as well.

Ok, this is killing me. I'm loading an external page with jquery: var response = $.ajax({ url: "example.php", dataType: "html", async: false, }); $("#content2").empty().prepend(response.responseText); This part is working perfectly. Now I know that if I I want to interact with the new content I would have to bind any...

if cookies are disabled, does asp.net store the cookie as a session cookie instead or not?

basically, if cookeis are disabled on the client, im wondering if this... dim newCookie = New HttpCookie("cookieName", "cookieValue") newCookie.Expires = DateTime.Now.AddDays(1) response.cookies.add(newCookie) notice i set a date, so it should be stored on disk, if cookies are disabled does asp.net automatically store this cookie as...

ajax remembering page: # vs ?

im trying to use jquery bbq for remembering page with ajax. but i wonder, why should i use # values and not ? values for remembering pages eg. ?country=1&region=2 then get the values with $_GET and display the appropiate info vs #country=1&region=2 cause the latter one i cannot get it with php right? ...

Ajax with jquery is not working.

In view page: <script languge="javascript" type="text/javascript"> $(document).ready(function() { $('#delete').click(function(e) {; e.preventDefault(); var parent = $(this).parent(); mainParent=parent.parent(); $.ajax({ type: 'post', url: "<?= site_url('controller_Test/fnDelete') ?>", data: ...

CKEditor, AJAX Save

Can you provide an example on how to setup CKEditor to save via AJAX using the Save button in the CKEditor toolbar? I'm interested in creating a CKEditor AJAX save page but am not seeing any examples on their site. Thanks! ...

javascript variables to html?

here is the case: ive got 2 lists on my website. country and region. when the user first enter the options are ALL and ALL. then he picks a country and a region. and i use jquery bbq to hash the url with different variables for remembering the unique ajax rendered pages. for example: webpage#country=1&region=3 webpage#country=2&region=...

Tree Datagridview

Is anybody who knows datagirdview for c# web application or ajax that show data as tree for example I have some general information about contacts and I want to show each row has extra information like activity for that contact and ability to hide or show extra information. ording to relational database model ! ...

Ajax settings for cakephp

Hi everybody, I'm relatively new to CakePHP, but I am proficient in Rails. So I know the concepts of AJAX and everything else. In a site that I'm working....a particular URL works fine when requested from the client/browser. The same URL doesn't work when requested via AJAX calls. Do I have to make any configuration changes? Here i...

ASP.Net Ajax - PageMethods Synchronous call and retrieval of results

How to ASP.Net Ajax - PageMethods Synchronous call and retrieval of results ? Currently i am doing following async call and working with data : function checkName(name) { PageMethods.IsAvailable(name, onSuccess); } function onSuccess(result, context, method) { //... do something with result .... } How can i do same synchro...

Adding MS AJAX to existing Custom Controls

Hello there! Currently im in the process of upgrading a number of asp.net 1.1 custom controls (all inherit from System.Web.UI.WebControls.WebControl, please not this is NOT a user control) to asp.net 4.0 and would like to use partial rendering. We used to use Anthem .net controls (these operated in a similar way to the UpdatePanel cont...

JQuery AJAX post - how to send extra form variables?

Hi, I'm using ajax for the first time and have hit a bit of a brick wall. I've created a single big function with lots of smaller functions inside it which handles all ajax requests. I'm passing a POST variable to tell it which function to process the request with. For example if(_is_ajax()) { if($_POST['save_company']) { // Do s...

no ajax call after the session remove in MVC

hi, I have two MVC applications. I go to the MVC2 application from MVC1 application, I pass a token. When the MVC2 applications is loaded, its fetch the token and create the session. There are two button Logout and Save. I open MVC2 application in a IE browser and open the same application on the another tab. I just click the Logout butt...