Anil Labs

Saturday, September 18, 2010

How to include external js,css files with javascript

4 comments:

  1. [...] Przeczytaj artykuł: how to include external js,css files with javascript « ANIL KUMAR … [...]

    ReplyDelete
  2. [...] http://www.anil2u.info/2010/09/how-to-include-external-jscss-files-with-javascript/ In some servers DOMDocument(); is not working. For this we have to change the code like below <?php // initialize a new curl resource $ch = curl_init(); // set the url to fetch curl_setopt($ch, CURLOPT_URL, $xml); // don't give me the headers just the content curl_setopt($ch, CURLOPT_HEADER, 0); // return the value instead of printing the response to browser curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // use a user agent to mimic a browser curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0'); $details = curl_exec($ch); // remember to always close the session and free all resources curl_close($ch); ?> [...]

    ReplyDelete
  3. "and in a php file starting of the page include below line to treat the php file as a javascript file."

    Do you mean the top of the php get file? Or Bellow the echo base path statement in that file.

    There realy is no clarity in what you have said or demonstrated. Sorry, I'm at a complete lose as to how to do this.

    ReplyDelete