Hey,
ich habe in eine Contao-Seite ein eigenes Javascript-File eingebunden. Der Code schaut folgendermaßen aus und erstellt einfach tooltips.
Eingebunden ist er über
Safari spuckt mir 2 Fehlermeldungen aus.
"Ressource wurde als Skript interpretiert, aber mit MIME-Typ text/html übertragen."
"SyntaxError: Parse error"
Der Parse error ist in Zeile 1 des Scripts und im Debugger ist der Inhalt der datei auch nicht das Kavascript von oben sondern dieser Inhalt:
Kann mir jemand helfen?
Vielen Dank schon voraus
Der Dose
ich habe in eine Contao-Seite ein eigenes Javascript-File eingebunden. Der Code schaut folgendermaßen aus und erstellt einfach tooltips.
Code:
// ###Allgemeine Javascripts und Funktionsaufrufe der Plugins
window.onDomReady (function(){
// ###Tooltips
new Tips($$('.tooltip'),
{ showDelay: 0, //default is 100
hideDelay: 50, //default is 100
className: 'tool', //default is null
offset: {'x': 0, 'y': 0 },
fixed: false,
onShow: function(toolTipElement){ toolTipElement.fade(.96); $('show').highlight('#FFF504'); },
onHide: function(toolTipElement){ toolTipElement.fade(0); $('hide').highlight('#FFF504'); }
});
});
Code:
<script type="text/javascript" src="/js/blattner.js"></script>
"Ressource wurde als Skript interpretiert, aber mit MIME-Typ text/html übertragen."
"SyntaxError: Parse error"
Der Parse error ist in Zeile 1 des Scripts und im Debugger ist der Inhalt der datei auch nicht das Kavascript von oben sondern dieser Inhalt:
Code:
<html><head><title>Sorry, we are unable to translate the page you requested.<blockquote>http://www.cms.blattner-fewo.de/blattner.js</blockquote></title><style>body{font-family:arial,sans-serif}div.nav{margin-top:1ex}div.nav A{font:10pt arial,sans-serif}span.nav{font:bold 10pt arial,sans-serif}div.nav A,span.big{font-size:12pt;color:#00c}div.nav A{font-size:10pt;color:#000}A.l:link{color:#6f6f6f}A.u:link{color:green}</style></head><body text=#000000 bgcolor=#ffffff dir=ltr><table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap><b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font> </b></td><td> </td></tr><tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr><tr><td> </td></tr></table><blockquote><h2>Sorry, we are unable to translate the page you requested.<blockquote>http://www.cms.blattner-fewo.de/blattner.js</blockquote></h2><p>Please choose from the following:</p><ul><li><a href="" onclick="javascript:history.back();">Go back to the previous page</a></li><li><a href="" onclick="javascript:history.back();">Back to Translate</a></li><li><a href="http://www.cms.blattner-fewo.de/blattner.js" target=_top>See original page</a></li></ul></blockquote><table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table></body></html><!-- generated by GTranslate on Mon, 13 Dec 2010 11:21:06 +0100 visit http://edo.webmaster.am/gtranslate -->
AllesDokumenteStyle-SheetsBilderSkriptsXHRSchriftenAnderes
GRAPHEN
Zeit
Größe
RESSOURCEN
1.html/fewo-katalog/Haus
slideshow.css/plugins/slideshow2/css
blattner-fewo.css/css
mediabox_white.css/plugins/mediabox/css
contao.css/system
tinymce.css/tl_files
mootools-more.js/plugins/mootools
mootools-core.js/plugins/mootools
slideshow.js/plugins/slideshow2/js
2
blattner.js/js
bg_main.png/images
de.gif/system/modules/changelanguage/media/images
katalog.css/css
stylesheet.css/css/font
gridpc.css/css
basic.css/css
en.gif/system/modules/changelanguage/media/images
02_blattner-810d317d.jpg/system/html
1
texgyreheros-regular-webfont.ttf/css/font
Blatter_4-e055a898.jpg/system/html
Blattner_5-62af4fc1.jpg/system/html
Blattner_7-1e917d25.jpg/system/html
icon_elevator.jpg/images
03_blattner-70ba3be4.jpg/system/html
02_blattner-6f4de03c.jpg/system/html
loader-1.png/plugins/slideshow2/img
sterne_3.png/images
loader-0.png/plugins/slideshow2/img
loader-3.png/plugins/slideshow2/img
loader-4.png/plugins/slideshow2/img
loader-6.png/plugins/slideshow2/img
loader-5.png/plugins/slideshow2/img
loader-2.png/plugins/slideshow2/img
icon_web.jpg/images
loader-11.png/plugins/slideshow2/img
loader-10.png/plugins/slideshow2/img
loader-7.png/plugins/slideshow2/img
loader-9.png/plugins/slideshow2/img
bg_button.png/images
logo_header.png/images
loader-8.png/plugins/slideshow2/img
lupeKlein.jpg/images
blattnerradiobox.png/images
chk_off.png/images
Blattner_2-f5afc497.jpg/system/html
Blattner_6-d937beb5.jpg/system/html
Blattner_8-03ee42cd.jpg/system/html
03_blattner-2864033e.jpg/system/html
favicon.ico
Blattner_3-8497cc04.jpg/system/html
Vielen Dank schon voraus
Der Dose
Kommentar