external javascript problem

This is a discussion on "external javascript problem" within the PHP Forum section. This forum, and the thread "external javascript problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 5th, 2007, 09:44
New Member
Join Date: Aug 2007
Location: London
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
external javascript problem

Hi

I'm using a freely available php script to host my rss1.0 but, because php is forbidden on our main websever, I have to convert the html generated by this free script into javascript and externally invoke this from whatever page on the main webserver, using the method outlined here...

http://www.javascriptkit.com/javatut...ernalphp.shtml

<script type="text/javascript" src="http://[...]feed2html.php"></script>


This works fine in Firefox but not in IE 6 or Opera. What happens when I call the php file directly in the browser is that it promts me to download it, giving me an "unknown file type" alert. It seems as though the header function...

header("Content-type: application/x-javascript");

doesn't work in IE. Am I doing anything wrong here?

Damian
Reply With Quote

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
can anyone solve my external php problem? dilby PHP Forum 3 Apr 19th, 2007 21:04
Problem with IE, think its external javascript includes rewind1000 JavaScript Forum 5 Aug 19th, 2005 12:00
Problem with latency when loading external movies ST Flash & Multimedia Forum 10 Aug 4th, 2005 11:19
External Javascript MikeV JavaScript Forum 5 Aug 11th, 2004 08:12


All times are GMT. The time now is 07:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43