Jump to content


- - - - -

Javascript won't load in the header


  • Please log in to reply
3 replies to this topic

#1 patty

patty

    Novice

  • Members
  • PipPip
  • 7 posts
  • IPB Version:v2.3.x

Posted 16 August 2010 - 04:23 AM

Put this code in the header & footer wrapper but it won't load...

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="main.js"></script>

not sure where I should put it, help?

Thanks!

#2 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 16 August 2010 - 08:49 PM

Do you see these lines in the HTML source? And are the javascript files located in the IP.Board root folder (where init.php and conf_globa.php are)?

#3 patty

patty

    Novice

  • Members
  • PipPip
  • 7 posts
  • IPB Version:v2.3.x

Posted 17 August 2010 - 01:49 AM

html source? the files are uploaded there (init.php & config_global.php)

currently using another skin, so other users won't see the new layout (?)
this is how my header & footer wrapper looks:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>

<meta http-equiv="content-type" content="text/html; charset=<% CHARSET %>" />
<link rel="shortcut icon" href="favicon.ico" />
<title><% TITLE %></title>


<% GENERATOR %> 
<% CSS %>
<% JAVASCRIPT %> 

<link rel="stylesheet" type="text/css" href="main.css" />
	<link rel="stylesheet" type="text/css" href="jquery-ui-1.8.4.custom.css" />

	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="jquery-ui-1.8.4.custom.min.js"></script>
	<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div id="wrapper">
	<div id="top">
		<div id="informacion">
			<ul>
				<li><a href="#noticias">Noticias</a></li>
				<li><a href="#imagenes">Imágenes</a></li>
				<li><a href="#videos">Videos</a></li>
			</ul>
			<div id="noticias"></div>
			<div id="imagenes"></div>
			<div id="videos"></div>
		</div>
	</div>
	<ul id="nav">
		<li>
			<a href="http://forums.tvxqperu.com/index.php">Foro</a>
			<span>Descripción - foro</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?autocom=daffiliates">Afiliados</a>
			<span>Descripción - afiliados</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?act=members">Miembros</a>
			<span>Descripción - miembros</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?autocom=arcade">Arcade</a>
			<span>Descripción - arcade</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?autocom=gallery">Galería</a>
			<span>Descripción - galería</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?act=calendar">Calendario</a>
			<span>Descripción - calendario</span>
		</li>
		<li>
			<a href="http://forums.tvxqperu.com/index.php?act=Search">Busqueda</a>
			<span>Descripción - busqueda</span>
		</li>
	</ul>
</div>



<% MEMBER BAR %>
<% BOARD HEADER %>
<div id="ipbwrapper">
<div class="tableborder">

<% NAVIGATION %>
<!--IBF.NEWPMBOX-->
<% BOARD %>
<% BOARD FOOTER %>
<% STATS %> 


<% COPYRIGHT %>

</div>
</body> 
</html>

tried to create a <% TAG %> but when I edit the class_display.php, the forum won't work D:

Thanks !

#4 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 17 August 2010 - 01:57 AM

When I'm trying to open those JS files in my browser, I get this error
Content Encoding Error
	  
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

Get that sorted, and your javascript files will load.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users