473,408 Members | 2,087 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,408 software developers and data experts.

Xhtml and javascript

8
Hi

I have made a norwegian web page called Bomloveven.

The page is xhtml-based and also contains some
javascript that isn't viewable in any browser.
However, the principle was recommended
concerning xhtml validation.

The code is
<script type="text/javascript">

<![CDATA[
// src='http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?
id=hordaland&antall=10&bredde=160&js=1&pop=0'>
]]>

</script>

In the beginning I used:

<script language="JavaScript"
src="http://www.bomlo-nytt.no/style/jsfeed.php">
</script <http://www.bomlo-nytt.no/style/jsfeed.php">

But this code was not validated.

Does someone have a solution?
Dec 30 '06 #1
2 1347
b1randon
171 Expert 100+
Hi

I have made a norwegian web page called Bomloveven.

The page is xhtml-based and also contains some
javascript that isn't viewable in any browser.
However, the principle was recommended
concerning xhtml validation.

The code is
<script type="text/javascript">

<![CDATA[
// src='http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?
id=hordaland&antall=10&bredde=160&js=1&pop=0'>
]]>

</script>

In the beginning I used:

<script language="JavaScript"
src="http://www.bomlo-nytt.no/style/jsfeed.php">
</script <http://www.bomlo-nytt.no/style/jsfeed.php">

But this code was not validated.

Does someone have a solution?
What are you trying to do? The second code block won't validate because your </script> tag isn't properly closed. What is the purpose? Your code seems to be terribly wrong.
Jan 2 '07 #2
wr657
8
The problem in my first post is fixed, but I have another one.
The Opera browser doesn't show my pages as I want it to do.

In Explorer the page http://www.bomloveven.com/hordaland.html is shown as intended in 3
columns. The right column has content (header "NRK Hordaland) made with
javascript. In Opera the third column takes a step down under the first column.

The xhtml-code is:

<div id="hogre">

<script type="text/javascript"
src='http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?
id=hordaland&antall=10&bredde=160&js=1&pop=0'>
</script>

</div>

The css-code is:

#hogre {
width: 11em;
background-color: #FFE4C4;
margin: 0em;
padding-top: 1em;
padding-left: 1em;
padding-bottom: 1em;
}

I have found that if I substitute the javascript above with clean text, let's say
the word "Test", and delete "width" in the css-code above, "Test" appears
where the javascript was intended to appear. So I guess there may be
something odd in the relationship between javascript and Opera?
Jan 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
6
by: Jonny | last post by:
How can you validate Javascript generated HTML for XHTML 1.0 strict compliance? To avoid the "<" and "&" problem, all inline scripts MUST be enclosed with either: <!-- script --> Looked down...
2
by: Brian Idzik | last post by:
I've successfully setup a xhtml 1.0 strict page with Mozilla & Netscape to display links in a toolbar into an internal <div id='content'> within the same document. The toolbar uses some...
7
by: Simon Strandgaard | last post by:
There are no <iframe> tag in xhtml strict, instead I should use <object>. If I change <iframe> to <object> then my javascript stops working. I am curious to how to use <object> with javascript...
2
by: and | last post by:
Hi I have been validating all day most things are cool but I cant get by this problem. One I have listed the script (JAVASCRIPT ) in all the right placesnot a prob but the validator insists...
3
by: Frank Thomas | last post by:
So, where are we (as an industry) with regards to XHTML? I've been going through a book published in 2002 that promotes the idea that we should all be looking to create new projects as compliant...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
4
by: howa | last post by:
1. <script type="text/javascript"> alert("test"); </script> 2. <script type="text/javascript"> <!--//
10
by: Robert Huff | last post by:
Can someone offer suggestions why, on the same server (Apache 2.2.8), this works <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en-US"> <head> <link rel=stylesheet...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.