ajax

Check that your page is not requested via ajax?

Hi guys, I have some pages set up so that they respond only to ajax requests. The thing is that how can I set it up so that if someone tries to send the requests via a browser window i.e by typing them out - they don't run and that they run only when an ajax call is made. The pages are in php here ...

can you access $_SESSION[] values in an ajax'd page?

Hi there, if on a page i have echo $_SESSION['user_id']; and it echo's 1 can i access that value on a page called using ajax (on the same server & domain) or do i need to pass that value through with the ajax request? ...

The most strange error in the world (PHP $_GET, $_POST, $_REQUEST and ajax)

I hope you'll able to help me. I'm fed up of trying things without any solution and php it's just driving me crazy. I'm looking for help because I have a html document where I use ajax thanks to jquery api. Inside this file, in a js function I have: $.ajax({ type: "GET", url: "c.php", data: "dia="+matriz[0]+"&mes="+matriz[1]+"...

Ajax function not working

Hello, I have a contact form i want to use Ajax for. My contact.php script works fine, and the query string is being built fine, but when i click submit button, the page just refreshes and shows the query string in the url bar after index.php, not contact.php this is my code: <form name="myform"> <input class="field" ...

ASP.NET Update Panel vs. jQuery AJAX

Is there a significant difference in performance between the two for relatively small post-backs? I'm taking in user input on a website, calculating some values from it and the returning it. Adding AJAX with update panel was really really quick obviously, but I'm wondering if I should just use jQuery instead. Also, how to the two metho...

ASP.NET MVC 2 AJAX vs. jQuery

What better to use in ASP.NET MVC 2: - Ajax-forms created with the AjaxHelper class or - jQuery ajax? I think it's a little more straightforward to use the AjaxHelper, but I don't know if it's a good practice to have many forms on the page (AjaxHelper creates a form, whereas the jquery doesn't). ...

jQuery .ajax call shows success when computer disconnects. How to induce ajax error state?

I have the following bog standard jQuery ajax request. I've been trying to induce an error state by disconnecting my computer from the network mid-request (the server takes 10 seconds to reply so this is simple). When I disconnect alert('Success: '+ json); is called, with null for the response json. I would expect the error part to be ...

jQuery Tools: How to prevent a submit event from a form that is rendered dynamically into a page

I have an Index.aspx page with a button. If you click the button a create overlay pops up. In this overlay lies the form. So the create overlay form page and the Index.aspx are seperated. The whole form is rendered into the Index.aspx using jQuery Overlay plugin from http://flowplayer.org/tools/overlay/index.html (in $(document).ready(fu...

Dynamically Load Google Map AJAX Tutorial

I am sure there is a tutorial somewhere on the net on how to dynamically load markers to Google Maps while Zooming In and Out through AJAX. Some like this site is doing http://www.visualtour.com/p_findahome.asp?q=toronro+ontario ...

Strange behavior when loading page using XMLHttpRequest

I have a script like this: var xml_http_request = new XMLHttpRequest(); xml_http_request.addEventListener('readystatechange', PageReady, false); xml_http_request.overrideMimeType("text/xml"); xml_http_request.open('GET', "index.xml", true); xml_http_request.send(null); function PageReady() { if(this.readyState != 4) return;...

usage of ajax in a product

Say I've been tasked to architect a product that will have a browser-based front end. The sales team wants a snazzy app. The product management team want to make the product cost effective (right through the maintenance phase) Now assume that the technical team gets to make the call (i wish :)) whether to give the users a 'rich' look...

Async xmlhttprequests failing, synchronous aren't

I'm running into a strange problem. In the following sample code, if I set asynchronous to true the request fails and Chrome tells me 'failed to load resource'. However, if I switch it to synchronous it goes through fine. Additionally, if I do multiple xhr requests using this code and its set to async, all requests exhibit the same prob...

using CompositeScript to combine scripts

I am using CompositeScript to combine JS into one file for sending. But I have the AjaxScriptManager in the masterpage and not in every aspx page. So should I include all my javascript file references inside the CompositeScript in the masterpage, or should I place an AjaxScriptManager in every aspx page and add to the CompositeScript on...

creating a Virtual tour

we need to add a simple virtual tour to our web site. Is there any simple way to do this? do we have to create it from scratch? is there any service provider to do this on cloud? ...

setInterval with other jQuery events - Too many recursions

Hello, I'm trying to build a Javascript listener for a small page that uses AJAX to load content based on the anchor in the URL. Looking online, I found and modified a script that uses setInterval() to do this and so far it works fine. However, I have other jQuery elements in the $(document).ready() for special effects for the menus and...

AJAX Chat, implement server with DB or as a windows service?

I am implementing an AJAX chat. No worries there but I was thinking of how to implement the server side code. At the moment I write from a DB when a user sends and reads from the DB when a user requests his messages. I am thinking that this is not the most efficient way as I am writing and reading all the time. My plan was to implement...

technilcoa Doubt on ms access application

dear sir, how can i know whether my .DBs file password beaked or not? is there any software tools available to know it? please answer my question. thanking you. ...

Is there a way to refresh an image after an ajax file upload in jQuery?

I have an image on the page. I'm using the AJAX form plugin to upload a single image, and after the photo has uploaded I'd like to refresh the image that is already on the page. $("#profilePicForm").ajaxForm(function() { alert("Photo updated"); $("#newPhotoForm").slideToggle(); $("#profilePic img").load(function() { ...

Any good RADAR (RESTful Application, Dumb-Ass Recipient) applications?

I would like to study the client code of a RADAR web application. (RADAR stands for RESTful Application, Dumb-Ass Recipient). This means that there are only a rellatively small handful of HTML pages, the application backend spends most of its time sending out data in JSON or XML format in response to AJAX requests from the browser clien...

How to refresh the part of jsp page using ajax with struts?

I want to reload the table of data from server without refreshing it. How to achieve it using tsruts2 and ajax.?Please help. ...