ajax

xmlHttp Request problem in IE7

Hi all, I have a bit of a strange problem. For one of my clients I've added some ajax functionality to their website. To get the context; it's a website for a travelagency and pricetables are generates by ajax-calls to reduce serverload and improve user experience. Only now I received an email where they say it is not working in IE7. ...

Problem with extjs

i wrote a code that really worked perfect on local host but on my production server , i was showing error that Response.Result parameter on the success event attached to the submit button was not define but everything was ok on my local server, i re-posted the main extjs package on the server , thinking some files are corrupt , the p...

Jetty, preflight and ajax

Having a Jetty server set up programmatically which I try to access via ajax and xmlHttpRequest. Without authorization, the call works fine but with, I get 401 Unauthorized. Any suggestions. Javascript call looks like this (shortened): var auth = base64encode('name','pwd'); try{ var xmlhttp = new XMLHttpRequest(); xmlhttp.open(...

zend, php session, jquery ajax problem

Here is what happens to some users of IE8 when using the website i am responsible for: person logs in, credentials are verified, zend auth is created. After login, user is redirected to the default page. the default page has 5 ajax request that start on document ready. The ajaxes somehow don't have the php session in the request and r...

Please Help ==> Ruby on Rails -- JavaScript

I have a button on my Ruby on Rails view file. Firstly when the button is clicked an ajax call is made which in response gives a json string. So far I have accomplished this task. I am stuck here: The button also redirects me to another action of the same controller. Now I want to send the json string received by javascript as a parame...

Ajax in bookmarklet :action done but answer not given

Hi there fellow SOers, I'm trying to do my own bookmarklet and I already tried to read some response in SO but nothing to answer the weird reaction I got from my script. I'm doing an AJAX call from my bookmarklet, so I do the little trick : var newScript = document.createElement("script"); newScript.type = "text/javascript"; newScript...

I thought cross-subdomain AJAX requests were allowed, but this Chrome error seems to indicate otherwise

I know that cross-domain requests are disallowed for security reasons, but I was under the impression that only the top-level domain needed to match, that different sub-domains were okay. However, I am getting this error from Chrome 7: "Unsafe JavaScript attempt to access frame with URL http://foo.somedomain.com/dir/page.html from fram...

Create custom CakePHP Pagination Route

I am trying to use Ajax pagination in CakePHP and have read you can pass the variables along in the URL however I cannot seem to set the route. When I click on next I get an error about the category not existing (because of a custom validation method I created) because the route isn't being followed. I would like the $paginator->next()...

Sequential AJAX Requests

I have a situation where I need to make sequential AJAX requests represented by an ordered list (<ol><li>..) on the page. I use jQuery. Requirements: Each request has to wait for the previous one to complete with a successful status. The success or error message needs to be appended to the corresponding list item. The process should h...

Access model objects from view in Spring 2.5

Is there a way to access the objects in the model set by a Controller on a View in Spring 2.5? I'm using a SimpleFormController but instead of using a proper Validator, I perform the checks directly into the onSubmit() method because I'm working with jQuery on the client side and I don't want the whole ViewForm (a complete page) to be sh...

Parse XML response from API, Javascript, Ajax

I have a rails app and i wanna to parse the xml response from API using Javascript (ajax). I tried: $(document).ready(function() { $.ajax({ type: "GET", url: "http://localhost:3000/users/mike.xml", dataType: "xml", success: parseXml }); }); function parseXml(xml) { ... } but don't ...

EpiTwitter getAuthorizeUrl() via AJAX call not working

I'm using the EpiTwitter getAuthorizeUrl() for Twitter authorization. On one of my pages, the user can click a 'tweet' button which makes an ajax call. Within the PHP script that ajax calls, I determine if the user has linked to their Twitter account. If they have not, I call getAuthorizeUrl() and send the URL back in the resposeTex...

Using the back button to reverse the effects of AJAX in my web application

I am using ajax to load into an element on my page, but I want this action to be reversed with the back button ... I'd rather the URL change to a real URL like mysite.com/page1 rather than mysite.com/page#page1 I read somewhere about using a hidden iframe to achieve this ? Can anyone help me out? ...

Loading New Content with Ajax

This is a situation I've run into several times, not sure what the best approach is. Let's say I have some kind of dynamic content that users can add to via Ajax. For example, take Stack Overflow's comments - people can add comments directly on to the page using Ajax. The question is, how do I implement the addition itself of the new c...

Removing loaded jQuery AJAX element

I was working on a dialog with content loaded by AJAX, but I'm not able to remove it. A must was to have a multiple, php-supported, drag-able and close-able dialog. (.center() function present) $('a.event').click(function() { var url = this.href; var getrel = $(this).attr('rel'); var getid = $(this).attr('id'); var dialo...

Encoding problem between jQuery and Java

My encoding is set to ISO-8859-1. I'm making an AJAX call using jQuery.ajax to a servlet. The URL (after it has been serialized by jQuery) ends up looking like this: https://myurl.com/countryAndProvinceCodeServlet?action=getProvinces&amp;label=%C3%85land+Islands The actual label value is Åland Islands. When this comes to the servlet, ...

jquery/Ajax loading

Hello, Was wondering if someone could point me in the right direction, i need to be able to page through content using something similar to Coda-Slider but with the data being loaded with ajax? Thanks Phil ...

Why is XMLHttpRequest.status == 0 on all the browsers except IE?

Hi guys! I'm getting insane with this one... I made a RESTful.NET webservice with C# and is running as a standalone service. When I make a XMLHttpRequest to retrieve JSON data, all browsers fail, except IE, because the status flag of the instance of XMLHttpRequest is always 0 -- it should be 200, that it's what's happening with IE. I ...

Ajax lightview multiple instances

Hi, can i call multiple times the lightview for different content? Can anybody help? If i can't do it I think i will try the jquery ui modal window, is the better way? ...

restrict direct linking to AJAX pages in a certain directory

I don't want to allow people to go directly to the pages in the AJAX directory but they still need to be served from their parent page. I have tried numerous .htaccess lines but they all block it from the main page as well. to sum up, I dont want people to be able to type in http://www.mysite.com/AJAX/page1.html and view it but page1.htm...