Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
ajax system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2012 at 09:46 UTC
Updated:
24 Jan 2016 at 02:12 UTC
Jump to comment: Most recent
Comments
Comment #1
rfayWell, a 200 is not an error - that's a success. So I'd say you need to rethink your AJAX. Have you patterned it on the AJAX Example in the Examples project? That's the easiest way to get going.
Comment #2
reachurajay commentedThanks for your quick reply. The response code shows the actual login screen content(html content of the login screen). How should i redirect it to that screen without showing the alert?
Comment #3
rfayIf you're getting the HTML content, that means that your ajax callback URL is not working. That could be because you need to rebuild the menu cache. It could be other reasons. But if you just hit /vll3c_latest/system/ajax with your browser, you'll see that it's not returning what you want.
Again, I recommend starting with the Ajax Example.
Comment #4
reachurajay commentedThe "Introduction to AJAX-enabled Forms" created by you was much helps me... Thanks a lot. The AJAX callback(get_form_callback) function was not trigger if the browser kept idle for 1 hour. The code i have used for Ajax callback as given below,
I have tried with single return statement to that function. But still i am getting the same result.
Comment #5
rfayWhy don't you try the AJAX Example. Enable it on your site. See if you get the same problem. If you don't, then just re-implement using AJAX example as a starter.
I'm afraid I don't have much more to offer.
Comment #6
reachurajay commentedI just followed the "Ajax Example" given by you and restructure my Ajax form. Still the same problem exists. I think the URL expired because of Session timeout. If i refresh the page, it shows PNF error. Thanks for your offers.
Comment #6.0
reachurajay commentedBrakets removed
Comment #7
cilefen commentedSupport requests are never more than Normal priority.