Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Archives > Bug Report 1.4.x

Post Reply
 
Thread Tools
  #1  
Old 08-16-2005, 05:35 PM
Muho's Avatar
Muho Offline
forum loafer
 
Join Date: Jun 2005
Posts: 5
Talking Java script

Hi
My english is very bed, but i'm just confused.
What is korrekt?
<script language='javascript' type='text/javascript'>
or
<script type="text/javascript">.
__________________________________________
version1.4.2
In admin/index.php line 180
<script type="text/javascript">
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>

but in templates/image_template.html
line 13

<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>
Thanks
Muho

http://www.bosnafolk.com/mozaik/slike/
Reply With Quote
  #2  
Old 08-16-2005, 06:25 PM
Connie
Guest
 
Posts: n/a
you must not be confused because of these small differences, both is ok

here in german:
Quote:
Mit <script type="text/javascript"> leiten Sie einen Bereich für JavaScript innerhalb einer HTML-Datei ein (script = Quelltext, type = Seite MIME-Typ). Die Angabe zum MIME-Typ ist seit HTML 4.0 Pflicht. Mit type="text/javascript" bestimmen Sie den typischen MIME-Typ für JavaScript-Dateien.
Zusätzlich können Sie zur Kennzeichnung der JavaScript-Sprachversion das language-Attribut verwenden, z.B. language="JavaScript" oder language="JavaScript1.2".
in english:
Quote:
<script type="text/javascript"> opens a java-script section inside a HTML-file.
(script =source-code, type = MIME-Typ).
Since HTML 4.0 information for MIME-Type is obligatory.
Using "type="text/javascript"" you define the typical MIME-type for Javascript-Files.
Additionally you can define the Javascript-Version by using the language-attribute, e.g. language="JavaScript" or "language="JavaScript1.2"."
so you see, both is correct. Otherwise our script output would not validate...
and that is something I am very carefully with...
Reply With Quote
  #3  
Old 08-16-2005, 06:45 PM
Muho's Avatar
Muho Offline
forum loafer
 
Join Date: Jun 2005
Posts: 5
Java script

Thank you so much for your help.
Muho
Reply With Quote
  #4  
Old 08-16-2005, 07:11 PM
Connie
Guest
 
Posts: n/a
you are welcome!
Reply With Quote
  #5  
Old 08-16-2005, 08:11 PM
Muho's Avatar
Muho Offline
forum loafer
 
Join Date: Jun 2005
Posts: 5
Thumbs up Java script

Thanks Connie one more.
My page www.bosnafolk.com/mozaik/slike is now valid.
The document located at http://www.bosnafolk.com/mozaik/slike/index.php was checked and found to be valid XHTML 1.0 Transitional.
Great. I like Pixelpost.
Muho
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:20 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs