473,329 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,329 software developers and data experts.

open larger photo in new window

K.
Hello!

I have a question to you.

I have created a web page:

http://www.slub.zmyslowski.pl/index.php?typ=galeria#

When I validate my page by w3 validator:

http://validator.w3.org/check?uri=ht...p%3Dgaleria%23

I get a few errors in the javascript script, which I added to enlrage small
photo placed in my gallery.

Could you tell me how should I modify this javascript code to make it valid
and good in HTML standard.

Or maybe you have other script which work perfectly and is HTML valid and
return no errors and work the same as mine?

Thank you in advance for help
Marcin from Poland
Jun 8 '07 #1
1 1672
On 8 Jun., 11:10, "K." <halinaciern...@poczta.onet.plwrote:
Hello!

I have a question to you.

I have created a web page:

http://www.slub.zmyslowski.pl/index.php?typ=galeria#

When I validate my page by w3 validator:

http://validator.w3.org/check?uri=ht....zmyslowski.pl...

I get a few errors in the javascript script, which I added to enlrage small
photo placed in my gallery.

Could you tell me how should I modify this javascript code to make it valid
and good in HTML standard.

Or maybe you have other script which work perfectly and is HTML valid and
return no errors and work the same as mine?

Thank you in advance for help
Marcin from Poland
Hi,

a content inside a script or style tag should be marked as a comment,
otherwhise the validator will try to parse it. the result ar some
thrown errory by the validator.
Example:
[snip]
<script type="text/javascript">
/* <![CDATA[ */

// your javascript code here

/* ]]*/
</script>
[/snap]

But the nifty way is to outsource the whole script into an javascript
file, and to add an reference to this file inside the header.
Example:
[snip]
<script type="text/javascript" src="path_to_script.js"></script>
[/snap]

I suppose, this will solve a little part of youre validation errors.
It seems to be a long way, to get an valid XHTML-Strict content...

purcaholic

Jun 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Carol Lyn | last post by:
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to...
1
by: Erik | last post by:
Hello, I have a page with about 100 links in the form of thumb nails that open a small html page. It took a lot of time to define each link and I sure do not want to go though that again. I...
2
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: ...
10
by: Tom Jenkins | last post by:
I have looked at many JavaScripts and I cannot seem to find exactly what I am looking for. It might be so simple that it went right over my head but on the other hand, I am not sure if this can be...
1
by: jdapro | last post by:
Hi - thanks for reading this out there! I'll be quick about it: I've got this row of images (in the end there will be more rows of pics as well). When a user clicks on the image, I want a new...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
18
by: Roger Withnell | last post by:
I open a new window from the current window to display maps. Several maps of different sizes can be displayed. The function is given the size of the map and adjusts the window size accordingly....
2
by: RC | last post by:
I want to display photos and when the user clicks on one the photo gets displayed in its own window. This is what I"m currently using. <A id="picAnchor" target="_blank"...
0
by: thomas | last post by:
I found John Viescas's book "Access2003 Inside and Out" most helpful especially the section on Data Access Pages, and as such I have successfully launched a Intranet Web site whereby 4 remote sites...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.