tsilenzio Posted August 5, 2007 Share Posted August 5, 2007 I tried to use javascript code without having to load it between script tags (As in loaded from a js file) file like so: <?php // index.php include("some/file.php); ?> <?php // file.php ?> <html> <head> <title>Emtpy</title> <script language="javascript" src="some/file.js"></script> </head> <body> <script language="javascript" src="some/file.js2"></script> </p> </p> </p> <?php echo("Queries: " . $_SESSION['queries']); ?> </body> </html> I was wodnering if its possible to get this to work without having to use ajax, if i do have to use ajax is there a tutorial i can use that shwos how to use javascript with it? Also is ajax secure to use or are there alot of security issues i must worry about =/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.