[TYPO3-dev] external jQuery js not working

Henjo Hoeksma hphoeksma at stylence.nl
Wed Apr 15 10:19:44 CEST 2009


On 2009-04-15 10:02:24 +0200, Henjo Hoeksma <hphoeksma at stylence.nl> said:

> Hi dev's,
> 
> I am working on a site using jQuery and have it included as Dmitry 
> proposes in his book (via the html template).
> 
> When I put the jquery js in that file surrounded by script tags it 
> works as a charm. But when I put it into an external file, it doesn't.
> 
> The external file is loaded, and it's path is correct.
> 
> This is what my header is looking like:
> 
> <head>
> 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> 
> <!--
> 	-- header comment --
> -->
> 
> 	<base href="http://products.lsgc.com/" />
> 	<link rel="stylesheet" type="text/css" 
> href="typo3temp/stylesheet_8192c2092f.css" />
> 	<link rel="stylesheet" type="text/css" 
> href="fileadmin/templates/res/styles.css" media="screen, projection" />
> 	
> 	<title>Products</title>
> 
> 	<meta name="generator" content="TYPO3 4.2 CMS" />
> 	<script type="text/javascript" 
> src="typo3temp/javascript_b9328db19d.js"></script>
> 
> 	<script type="text/javascript" 
> src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

 
> 
>   <script type="text/javascript" 
> src="typo3conf/ext/flexproducts/res/pi1.js"></script>
>     <link rel="stylesheet" type="text/css" 
> href="typo3conf/ext/flexproducts/res/pi1.css" />
> 
> 
> <script type="text/javascript">
> 	/*<![CDATA[*/
> <!--
> 	function openPic(url,winName,winParams)	{	//
> 		var theWindow = window.open(url,winName,winParams);
> 		if (theWindow)	{theWindow.focus();}
> 	}
> 
> // -->
> 	/*]]>*/
> 
> </script>
> </head>
> 
> Or is it because it is a restricted area? (htaccess restriction)

Forget it, by accident I discovered when having 2 plugins on the page 
it screwed up...
Will get to how that happens at a later stage...

Henjo

-- 
Stylence | webdevelopment in style
www.stylence.nl





More information about the TYPO3-dev mailing list