javascript - Load php in local html -


i have problem local file, don't know if it's possible know if its...

my code in local html is:

$(document).ready(function(){ $("#load").load("http://localhost/prueba.php",{estado:"ok"});}); 

and php online is:

<?php echo '<script>alert("' . $_post["estado"] . '");</script>';?> 

if run local html "http:// localhost /prueba.htm" runs fine! if try run local file "c:\documents\prueba.htm" not run php code , need.

this example, want run query in php , me info html file.

can me? sorry english bad i've no more options... idea how it?

the main problem request not allowed because of browser's same origin policy. please have @ jquery ajax request local filesystem (windows file:///)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -