javascript - PHP generated JS not running on IE7+ -


i've been playing around js generated in php , far i've had no luck ie. other browsers firefox , chrome parse , execute js code.

for example page

http://crusthq.com/projects/crusttalk/

loads javascript

http://crusthq.com/projects/crusttalk/_js/?page=demo

i tried sending following headers in php script http://crusthq.com/projects/crusttalk/_js/

content-type: text/javascript , content-type: application/x-javascript , content-type: application/javascript

with no luck. has idea why ie not parsing , executing js code?

i used this instance of google closure compiler service attempt pretty-print javascript.

it failed error:

number of errors: 1

jsc_trailing_comma: parse error. internet explorer has non-standard intepretation of trailing commas. arrays have wrong length , objects not parse @ all. @ line 190 character 183 in ?page=demo

...ully",delay:4,clear:false,method:"append",xbutton:true,onclose:function(){},}                                                                               ^ 

that stray comma things going wrong.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -