tags:

views:

62

answers:

1

i have script.html, which submits a POST ajax. with following alert messages

success: alert("success");

i load script.html in an iframe on index.html. AJAX post is successful. Firebug throws no error. However, i dont see success alert message.

i load script.html by itself. AJAX post is successful. Success Alert Message pops up.

please help. i need to load script.html via iframe.

A: 

Does the iframe come from the same domain as index.html? You might be running into cross-site scripting security restrictions.

Are you able to tell on the server if the ajax call has been received from the iframe (by logging it or just looking at the access logs)? This should help narrow it down.

cletus
yes. it comes from same domain.