0

this script

$(document).ready(function() { 
  $("selector").load('loader.php')

})

loader.php

echo '<script src="ads.rels.js"></script>';// here coming .swf file

how can we work like this think

1

1 Answer 1

2

Why wouldn't you just load the javascript without using PHP? Like this:

$.getScript("ajax/test.js")
.done(function(script, textStatus) {
  console.log( textStatus );
})

Ref. http://api.jquery.com/jQuery.getScript/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.