Forum Moderators: coopster

Message Too Old, No Replies

Calling php on jsp

         

JuicyScript

10:09 am on Mar 1, 2010 (gmt 0)

10+ Year Member



Please i want to load my php pages into jsp to reduce the load time...can someone help me

I found this on the internet but still can't get it to work
[applicationdeveloper.net...]

<script src="jquery.js"></script>
<script type="text/javascript">// <![CDATA[
$.get("/location/to/file.php", function(data) {
$("#posthere").html(data);
});
// ]]></script>

Matthew1980

11:21 am on Mar 1, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there JuicyScript,


$("#posthere").html(data);


The tutorial states: #posthere is key. The
is where what you want to load will show up.

Leaving it as #posthere would result in nothing happening.. And making sure that the path to the php file is correct too,

I have never tried this before so I'm wondering, is the load time a lot quicker using jsp, or is there any discernible difference?

Cheers,

MRb