By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,069 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,069 IT Pros & Developers. It's quick & easy.

Opening link in a new template/aready defined/ window

P: n/a
I am trying to open a link in a new template window :
<a onclick="windowopen('example.html','example');retu rn false;"
href="http://www.example.com" target="_blank"example link</a>

such that clicking on the example link will open it in a new window in an
already saved template/site/ called example.html

Jan 15 '07 #1
Share this Question
Share on Google+
26 Replies


P: n/a
ASM
Nospam a écrit :
I am trying to open a link in a new template window :
<a onclick="windowopen('example.html','example');retu rn false;"
href="http://www.example.com" target="_blank"example link</a>

such that clicking on the example link will open it in a new window in an
already saved template/site/ called example.html
soluce 1 :

<a href="http://www.example.com" target="example"example link</a>
soluce 2 :

<a onclick="window.open('','example');"
href="http://www.example.com" target="example"example link</a>

soluce 3 :

<a onclick="window.open(this.href);return false;"
href="http://www.example.com"example link</a>
I do not understand : open a html file in a template.

Some softs can help to create a new html file with a template.
Idea in php :
http://dosimple.ch/articles/Template...ate.class.phps

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 15 '07 #2

P: n/a
I do not understand : open a html file in a template.
I mean lets say I have an animation
animation.swf

and I want to open it in a new window, but not a _blank window, a window
that I have already made that has my logo and text and in the middle I want
the animation to show, I understand I can just create a webpage call it
template.html and have some text title e.t.c but I am confused how I show
the animation in this page as a popup
Jan 15 '07 #3

P: n/a
ASM
Nospam a écrit :
>I do not understand : open a html file in a template.

I mean lets say I have an animation
animation.swf

and I want to open it in a new window, but not a _blank window, a window
that I have already made that has my logo and text and in the middle I want
the animation to show, I understand I can just create a webpage call it
template.html and have some text title e.t.c but I am confused how I show
the animation in this page as a popup
Let's suppose in your 'template.html' you have a div 'content' :

Code in your mother page :

<script type="text/javascript">
var truc = false;
function loadFlash(myFlash) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('template.htm');
truc.onload = function() {
var cible = truc.document.getElementById('content');
var flash = document.createElement('OBJECT');
flash.type = "application/x-shockwave-flash";
flash.data = myFlash;
flash.width = '128'; // here put correct
flash.height = '128'; // width and height
// params of your swf :
flash.innerHTML = '<param name=movie value="'+myFlash+'">';
// empty the div 'content' of popup
while(cible.firstChild) {cible.removeChild(cible.firstChild);};
// display the flash animation
cible.appendChild(flash);
truc.focus();
}
return false;
}
</script>

<a href="bidule.swf" onclick="loadFlash(this);">bidule</a>
<a href="foo.swf" onclick="loadFlash(this);">foo</a>

The popup has not to be closed before to open a new swf in it
(Here sizes of these swf are same)
Variante with sizing :

<script type="text/javascript">
var truc = false;
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('template.htm','','width=600,height=55 0,'+
'resizing=1,scrollbars=1');
truc.onload = function(){opener.flashy(myFlash,w,h);};
truc.focus();
return false;
}
function flashy(myFlash,w,h) {
var cible = truc.document.getElementById('content');
var flash = document.createElement('OBJECT');
flash.type = "application/x-shockwave-flash";
flash.data = myFlash;
flash.width = w; // here put correct
flash.height = h; // width and height
// params of your swf :
flash.innerHTML = '<param name=movie value="'+myFlash+'">';
// empty the div 'content' of popup
while(cible.firstChild) cible.removeChild(cible.firstChild);
// display the flash animation
cible.appendChild(flash);
}
</script>

<a href="bidule.swf" onclick="loadFlash(this,128,128);">bidule</a>
<a href="foo.swf" onclick="loadFlash(this,360,240);">foo</a>

Not tested ...

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 15 '07 #4

P: n/a
I am wondering how it could be done with more than one animation
link:

:
<a onclick="windowopen('','example');return false;"
href=http://www.example.com/animation.swf target="example"example link
1</a>
<a onclick="windowopen('','example');return false;"
href=http://www.example.com/animation2.swf target="_blank"example link
2</a>

such that clicking on the example link 1 or link 2 will open it in a
new window in an already saved template/site/ called example.html, how
could I amend your code so that
<a href="bidule.swf" onclick="loadFlash(this);">bidule</a>
<a href="foo.swf" onclick="loadFlash(this);">foo</a>

bidule.swf and foo.swf are not the only ones to show in a new
template (any link with animation in the url)

thanks
Jan 15 '07 #5

P: n/a
ASM
Nospam a écrit :
I am wondering how it could be done with more than one animation
link:

:
<a onclick="windowopen('','example');return false;"
href=http://www.example.com/animation.swf target="example"example link
1</a>
<a onclick="windowopen('','example');return false;"
href=http://www.example.com/animation2.swf target="_blank"example link
2</a>

such that clicking on the example link 1 or link 2 will open it in a
new window in an already saved template/site/ called example.html,
With what you give up there :
1) will open 'animation.swf' in :
- if JS a new normal window containing html target 'example'
- if no JS in a new normal window
using same window for each call targeted 'example'
witch is html name of new/old window
2) will open 'animation2.swf'
same as above (1)
but, in html without JS, each call will fire in a new blank window
how could I amend your code so that
<a onclick="loadFlash(this);" target="example"
href=http://www.example.com/animation.swfexample link 1</a>
<a onclick="loadFlash(this);" target="example"
href=http://www.example.com/animation3.swfexample link 3</a>
<a onclick="loadFlash(this);" target="example"
href=http://www.example.com/animation4.swfexample link 4</a>
<a onclick="loadFlash(this);" target="_blank"
href=http://www.example.com/animation2.swfexample link 2</a>
<a onclick="loadFlash(this);" target="_blank"
href=http://www.example.com/animation5.swfexample link 5</a>

Or use the variant witch specify width and height of flash
<a onclick="loadFlash(this,360,240);" target="example"
href=http://www.example.com/animation.swfexample link 1</a>

How it is supposed to work (remember: not tested) :

On calling loadFlash() :
- if popup already open :
- close popup
- if no popup (or closed popup)
- open new popup with file 'template.html'
- when file 'template.html' is loaded
-insert in div 'content' of this file
your flash called in href of the link
- put popup in front
- abort html call

Example for canvas file 'template.html'

<html>
<head>
<title>My beautiful flash</title>
<link href="styles.css" type="text/css">
</head>
<body>
<h1 id="header">welcome</h1>
<div id="content">
<p>Place for swf file</p>
</div>
<p id="footer">bye</p>
</body>
</html>
You can also open an empty popup
then fill it with html code :

function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+
'resizing=1,scrollbars=1');
var htm = '<html><link href="styles.css" type="text/css">';
htm += '<h1 id="header"><img src="logo.jpg"hello<\/h1>';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'" ';
htm += 'width='+w+' height='+h+'><param name=movie ';
htm += 'value="'+myFlash+'"><\/object>';
htm += '<p id="footer">bie bie<\/p><\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
return false;
}

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 15 '07 #6

P: n/a
I have in the main page:
<html>
<body>
<script type="text/javascript">
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+

'toolbar=no,status=no,menubar=no,scrollbars=no,res izable=no,directories=no,l
ocation=no');
var htm = '<html><link href="styles.css" type="text/css">';
htm += '<h1 id="header"><Hello<\/h1>';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'" ';
htm += 'width='+w+' height='+h+'><param name=movie ';
htm += 'value="'+myFlash+'"><\/object>';
htm += '<p id="footer">bie bie<\/p><\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
return false;
}
</script>

<li>
<a onclick="loadFlash(this);" href="http://www.example.com/animation1.swf"
target="one">
First animation</a</li>
<li>
<a onclick="loadFlash(this);" href="http://www.example.com/animation2.swf"
target="one">
second animation</a</li>
<li>
<a onclick="loadFlash(this);" href="http://www.example.com/animation3.swf"
target="one">
Third animation</a</li>

</body>
</html>

...

But each time I click on any of the links it opens it in a new window and
not in the new popup.
Jan 15 '07 #7

P: n/a
so far I have amended the code, but it only shows the popup on the first
click (without the animation, just an empty popup), every other click shows
the animation in a new window
<html>
<body>
<script type="text/javascript">
var truc = false;
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+

'toolbar=no,status=no,menubar=no,scrollbars=no,res izable=no,directories=no,l
ocation=no');
var htm = '<html><link href="styles.css" type="text/css">';
htm += '<h1 id="header"><Hello<\/h1>';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'" ';
htm += 'width='+w+' height='+h+'><param name=movie ';
htm += 'value="'+myFlash+'"><\/object>';
htm += '<p id="footer">bie bie<\/p><\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
}
</script>

<li>
<a onclick="loadFlash(this); return false"
href="http://www.example.com/animation1.swf"
target="one">
First animation</a</li>
<li>
<a onclick="loadFlash(this); return false"
href="http://www.example.com/animation2.swf"
target="one">
second animation</a</li>
<li>
<a onclick="loadFlash(this); return=false"
href="http://www.example.com/animation3.swf"
target="one">
Third animation</a</li>

Jan 16 '07 #8

P: n/a
ASM
Nospam a écrit :
so far I have amended the code, but it only shows the popup on the first
click (without the animation, just an empty popup),
Of course you did have forgotten sizes of swg
every other click shows
then JS is broken
the animation in a new window
and only html is still working
function loadFlash(myFlash, w, h) {
(snip)
htm += '<h1 id="header"><Hello<\/h1>';
htm += '<h1 id="header"Hello <\/h1>';

(snip)
<a onclick="loadFlash(this); return false"
<a onclick="loadFlash(this,255,174); return false"
that bellow would have to work :

<html>
<script type="text/javascript">
var truc = false;
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+
'toolbar=no,status=no,menubar=no,scrollbars=no,'+
'resizable=no,directories=no,location=no');
var htm = '<html><link href="styles.css" type="text/css">';
htm += '<h1 id="header">Hello<\/h1>';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'" ';
htm += 'width='+w+' height='+h+'><param name=movie ';
htm += 'value="'+myFlash+'"><\/object>';
htm += '<p id="footer">bie bie<\/p><\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
}
</script>
<ul>
<li>
<a onclick="loadFlash(this,128,128); return false"
href="http://www.example.com/animation1.swf"
target="one">
First animation</a</li>
<li>
<a onclick="loadFlash(this,320,240); return false"
href="http://www.example.com/animation2.swf"
target="one">
second animation</a</li>
<li>
<a onclick="loadFlash(this,160,90); return false"
href="http://www.example.com/animation3.swf"
target="one">
Third animation</a</li>
</ul>
</html>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 17 '07 #9

P: n/a
I am unable to see the animation just a big X that means a broken link, this
is what the code looks like:

<html>
<script type="text/javascript">
var truc = false;
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+
'toolbar=no,status=no,menubar=no,scrollbars=no,'+
'resizable=no,directories=no,location=no');
var htm = '<html><link href="styles.css" type="text/css">';
htm += '<h1 id="header">Hello<\/h1>';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'" ';
htm += 'width='+w+' height='+h+'><param name=movie ';
htm += 'value="'+myFlash+'"><\/object>';
htm += '<p align=right<script type="text/javascript"><!--';
htm += 'google_ad_client = "pub-45886979038586"';
htm += 'google_ad_width = 120';
htm += 'google_ad_height = 600';
htm += 'google_ad_format = "120x600_as"';
htm += 'google_ad_type = "image"';
htm += '//2007-01-14: creen';
htm += 'google_ad_channel = "6541907411"';
htm += '//--><\/script>';
htm += '<script type="text/javascript"';
htm += ' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">';
htm += '<\/script><\/p>';
htm += '<p id="footer">bie bie<\/p><\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
}
</script>
<ul>
<li>
<a onclick="loadFlash(this,128,128); return false"
href="http://www.example.com/animation1.swf"
target="one">
First animation</a</li>
<li>
<a onclick="loadFlash(this,320,240); return false"
href="http://www.example.com/animation2.swf"
target="one">
second animation</a</li>
<li>
<a onclick="loadFlash(this,160,90); return false"
href="http://www.example.com/animation3.swf"
target="one">
Third animation</a</li>
</ul>
</html>
Jan 17 '07 #10

P: n/a
ASM
Nospam a écrit :
I am unable to see the animation just a big X that means a broken link,
function loadFlash(myFlash, w, h) {
myFlash = myFlash.href;
if(truc && !truc.closed) truc.close();
truc = window.open('','','width=600,height=550,'+
'toolbar=no,status=no,menubar=no,scrollbars=no,'+
'resizable=no,directories=no,location=no');
var htm = '<html>\n<link href="styles.css" type="text/css">\n';
htm += '<h1 id="header">Hello<\/h1>\n';
htm += '<object "application/x-shockwave-flash" data="'+myFlash+'"\n';
htm += 'width='+w+' height='+h+'>\n\t<param name=movie ';
htm += 'value="'+myFlash+'">\n<\/object>\n';
htm += '<p align=right>\n<script type="text/javascript"><!-- \n';
htm += 'google_ad_client = "pub-45886979038586";\n';
htm += 'google_ad_width = 120;\n';
htm += 'google_ad_height = 600;\n';
htm += 'google_ad_format = "120x600_as";\n';
htm += 'google_ad_type = "image"; ';
htm += '\/\/2007-01-14: creen/n';
htm += 'google_ad_channel = "6541907411";\n';
htm += '//--><\/script>\n';
htm += '<script type="text/javascript" ';
var u = 'http://pagead2.googlesyndication.com/pagead/show_ads.js';
htm += 'src="'+u+'">\n';
htm += '<\/script>\n<\/p>\n';
htm += '<p id="footer">bie bie<\/p>\n<\/html>';
truc.document.open();
truc.document.write(htm);
truc.document.close();
}

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 17 '07 #11

P: n/a
ASM
ASM a écrit :
Nospam a écrit :
>I am unable to see the animation just a big X that means a broken link,
in line :

OK with my IE Mac :
http://stephane.moriaux.perso.wanado...opup_flash.htm

OK with my FF (without google's syndication that beak all) :
http://stephane.moriaux.perso.wanado...p_flash_ff.htm
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 17 '07 #12

P: n/a
For some strange reason, it shows the popup and that it is loading the
animation, but nothing happens, it just keeps showing the loading page
forever, I think because the animation link, is a redirect to the actual swf
i.e

http://www.example.com/link

will redirect to http://www.example.com/animation1.swf

but nothing happens.

I am also wondering why the google ads won't work:, I have tried with
another banner and nothing happened:

htm += '<SCRIPT language="PHP">';
htm += 'include ("b-rotater.php")';
htm += '<\/SCRIPT>';
htm += '<script type="text/javascript"><!--';
htm += 'google_ad_client = "pub-576697787878"';
htm += 'google_ad_width = 728';
htm += 'google_ad_height = 90';
htm += 'google_ad_format = "728x90_as"';
htm += 'google_ad_type = "image"';
htm += '//2007-01-14: advert';
htm += 'google_ad_channel = "6541907411"';
htm += '//--><\/script>';
Jan 17 '07 #13

P: n/a
I have tried to implement it another way with a template.html

The files are at:

http://illuvia754.tripod.com/sample2.html

http://illuvia754.tripod.com/template.html

However it doesn't show in the template
Jan 19 '07 #14

P: n/a
ASM
Nospam a écrit :
I have tried to implement it another way with a template.html

The files are at:

http://illuvia754.tripod.com/sample2.html

http://illuvia754.tripod.com/template.html

However it doesn't show in the template

1) I dn't know with what you create your web files ... ?!
They are full of errors, with a code not enough good for pigs.

2) Couldn't you put your page on another FAI
this one poluate your html

3) Is it really indipensable to destroy what you show
with all these advertissements ?

4) I did make it working
for me ... (with Firefox only)
but I can't see if that can work with IE

here :
http://stephane.moriaux.perso.wanado...er/sample3.htm
http://stephane.moriaux.perso.wanado.../template.html

I think it's a little bit not easy,
flash files are not easy to display with all these browsers and systems
(windows, mac linux)
and to be more difficult you want to show flash via JS in a template
filled up with advertissements as a lot of body have anti-popups

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 19 '07 #15

P: n/a
I tried it with another host:

http://watchanimation.awardspace.com/sample2.html

I tried it with firefox and it works but I still can't see any of the google
adverts, and don't understand why it shouldn't work, or why it doesn't show
up in IE
Jan 19 '07 #16

P: n/a
ASM
Nospam a écrit :
I tried it with another host:

http://watchanimation.awardspace.com/sample2.html

I tried it with firefox and it works but I still can't see any of the google
adverts, and don't understand why it shouldn't work, or why it doesn't show
up in IE
The popup has an 'onload' to active the function of insertion.
Perhaps IE doesn't understand that ?

By other way : how object with a flash must be coded for IE ?

Have you a 'normal' page where object with your external flash works ?

I've seen it is :
http://joliclic.free.fr/html/object-...ect-flash.html

But doesn't work with my Safari, so :

<object type="application/x-shockwave-flash" data="data/test.swf"
width="320" height="240">
<param name="movie" value="data/test.swf">
alt : <a href="data/test.swf">test.swf</a>
<embed type="application/x-shockwave-flash"
src="data/test.swf"
width="320" height="240"></embed>
</object>
And this what we have to insert via JS in div 'content' of popup
replacing correct path to flash file and correct sizes

function loadFlash(url, w, h)
url = url.href;
htm = '<object type="application/x-shockwave-flash" '+
'data="'+url+'" width="'+w+'" height="'+h+'">'+
'<param name="movie" value="'+url+'">'+
'alt : <a href="'+url+'">test.swf<\/a>'+
'<embed type="application/x-shockwave-flash" '+
'src="'+url+'" '+
'width="'+w+'" height="'+h+'"><\/embed>'+
'<\/object>';
popup = window.open('template.html');
popup.onload = function() {
popup.document.getElementById('content').innerHTML = htm;
}
popup.focus();
}

Try this code by copy-paste in JS of sample2.htm
(suppress old function before !)
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 19 '07 #17

P: n/a

"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
Nospam a écrit :
I tried it with another host:

http://watchanimation.awardspace.com/sample2.html

I tried it with firefox and it works but I still can't see any of the
google
adverts, and don't understand why it shouldn't work, or why it doesn't
show
up in IE

The popup has an 'onload' to active the function of insertion.
Perhaps IE doesn't understand that ?

By other way : how object with a flash must be coded for IE ?

Have you a 'normal' page where object with your external flash works ?

I've seen it is :
http://joliclic.free.fr/html/object-...ect-flash.html

But doesn't work with my Safari, so :

<object type="application/x-shockwave-flash" data="data/test.swf"
width="320" height="240">
<param name="movie" value="data/test.swf">
alt : <a href="data/test.swf">test.swf</a>
<embed type="application/x-shockwave-flash"
src="data/test.swf"
width="320" height="240"></embed>
</object>
And this what we have to insert via JS in div 'content' of popup
replacing correct path to flash file and correct sizes

function loadFlash(url, w, h)
url = url.href;
htm = '<object type="application/x-shockwave-flash" '+
'data="'+url+'" width="'+w+'" height="'+h+'">'+
'<param name="movie" value="'+url+'">'+
'alt : <a href="'+url+'">test.swf<\/a>'+
'<embed type="application/x-shockwave-flash" '+
'src="'+url+'" '+
'width="'+w+'" height="'+h+'"><\/embed>'+
'<\/object>';
popup = window.open('template.html');
popup.onload = function() {
popup.document.getElementById('content').innerHTML = htm;
}
popup.focus();
}

Try this code by copy-paste in JS of sample2.htm
(suppress old function before !)
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date

http://watchanimation.awardspace.com/sample2.html
It shows the ads now, but it says on line 21 that flash is undefined, and
now shows the movie in a new window
Jan 19 '07 #18

P: n/a
ASM
Nospam a écrit :
>
http://watchanimation.awardspace.com/sample2.html
Là ce n'est plus possible ! Tu le fais exprès ?
http://tools.search.yahoo.com/langua...e.php?lp=fr_en

I said :
- delete old function from your file
- copy the new one and paste it in place of old one

And I find there very full with code which does not have anything to
make there!

:-)

It's natural for you to copy something that doesn't exists ?

It shows the ads now, but it says on line 21 that flash is undefined,
of course you piled up all your rubbish there :-(
Last try :
http:/stephane.moriaux.perso.orange.fr/truc/templer/sample5.htm
and
http:/stephane.moriaux.perso.orange.fr/truc/templer/template2.html

Curiously the two different links show same movie, no?

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 19 '07 #19

P: n/a

"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
Nospam a écrit :

http://watchanimation.awardspace.com/sample2.html

Là ce n'est plus possible ! Tu le fais exprès ?
http://tools.search.yahoo.com/langua...e.php?lp=fr_en

I said :
- delete old function from your file
- copy the new one and paste it in place of old one

And I find there very full with code which does not have anything to
make there!

:-)

It's natural for you to copy something that doesn't exists ?

It shows the ads now, but it says on line 21 that flash is undefined,

of course you piled up all your rubbish there :-(
Last try :
http:/stephane.moriaux.perso.orange.fr/truc/templer/sample5.htm
and
http:/stephane.moriaux.perso.orange.fr/truc/templer/template2.html

Curiously the two different links show same movie, no?

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
On this page
http://stephane.moriaux.perso.orange...template2.html

In IE it says invalid argument on line 21

which has this code:
o.width=w;

I notice it works in firefox though, I would have thought it works too in IE
Jan 20 '07 #20

P: n/a
ASM
Nospam a écrit :
>
On this page
http://stephane.moriaux.perso.orange...template2.html

In IE it says invalid argument on line 21

which has this code:
o.width=w;
try instead :

o.setAttribute('width', w);

But there is no reason one wurks and not the oher one.

I think what could give an error with IE (IE7 ?) :

o.setAttribute('type', ...
I notice it works in firefox though, I would have thought it works too in IE
Did you try my sample5 ?
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 20 '07 #21

P: n/a

"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
Nospam a écrit :

On this page
http://stephane.moriaux.perso.orange...template2.html

In IE it says invalid argument on line 21

which has this code:
o.width=w;

try instead :

o.setAttribute('width', w);

Makes no difference there is still a broken image where the movie is meant
to be :(
>
But there is no reason one wurks and not the oher one.

I think what could give an error with IE (IE7 ?) :
I am using IE 6
>
o.setAttribute('type', ...
I notice it works in firefox though, I would have thought it works too
in IE
>
Did you try my sample5 ?
Yes without changing anything in:

http://watchanimation.awardspace.com/sample3.html
and
http://watchanimation.awardspace.com/template2.html

Same result
Jan 22 '07 #22

P: n/a
ASM
Nospam a écrit :
"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
>Did you try my sample5 ?

Yes without changing anything in:

http://watchanimation.awardspace.com/sample3.html
and
http://watchanimation.awardspace.com/template2.html

Same result
I can't do more : I haven'IE and that works in my FF and my Safari.
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Jan 23 '07 #23

P: n/a

"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45**********************@news.orange.fr...
Nospam a écrit :
"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
Did you try my sample5 ?
Yes without changing anything in:

http://watchanimation.awardspace.com/sample3.html
and
http://watchanimation.awardspace.com/template2.html

Same result

I can't do more : I haven'IE and that works in my FF and my Safari.
Must say I appreciate your help a greta deal :)

I put the code for sample3.html in the html validator at
http://validator.w3.org and it said it found 11 errors, I am thinking maybe
that is why i didn't work in IE, but have no idea how to go about the
changes, I tried it for sample4.html at
http://watchanimation.awardspace.com/sample4.html but I think made it worse
as the popup doesn't show. The errors for sample3.html from the validator
are:

Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE
HTML SYSTEM>".
<html>
The checked page did not contain a document type ("DOCTYPE") declaration.
The Validator has tried to validate with a fallback DTD, but this is quite
likely to be incorrect and will generate a large number of incorrect error
messages. It is highly recommended that you insert the proper DOCTYPE
declaration in your document -- instructions for doing this are given
above -- and it is necessary to have this declaration before the page can be
declared to be valid.

?

Error Line 2 column 5: document type does not allow element "BODY" here.
<body>
The element named above was found in a context where it is not allowed. This
could mean that you have incorrectly nested elements -- such as a "style"
element in the "body" section instead of inside "head" -- or two elements
that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML
documents. Due to HTML's rules of implicitly closed elements, this error can
create cascading effects. For instance, using XHTML's "self-closing" tags
for "meta" and "link" in the "head" section of a HTML document may cause the
parser to infer the end of the "head" section and the beginning of the
"body" section (where "link" and "meta" are not allowed; hence the reported
error).

?

Error Line 20 column 3: document type does not allow element "LI" here;
missing one of "UL", "OL", "DIR", "MENU" start-tag.
<li>
The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.

One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").

?

Warning Line 23 column 121: cannot generate system identifier for general
entity "url".
....m/flash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v91.chi.youtube
..com
An entity reference was found in the document, but there is no reference by
that name defined. Often this is caused by misspelling the reference name,
unencoded ampersands, or by leaving off the trailing semicolon (;). The most
common cause of this error is unencoded ampersands in URLs as described by
the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;).
If you want to use a literal ampersand in your document you must encode it
as "&amp;" (even inside URLs!). Be careful to end entity references with a
semicolon or your entity reference may get interpreted in connection with
the following text. Also keep in mind that named entity references are
case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling
code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will
trigger up to 5 separate messages from the Validator. Usually these will all
disappear when the original problem is fixed.

?

Error Line 23 column 121: general entity "url" not defined and no default
entity.
....m/flash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v91.chi.youtube
..com
This is usually a cascading error caused by a an undefined entity reference
or use of an unencoded ampersand (&) in an URL or body text. See the
previous message for further details.

?

Error Line 23 column 124: reference to entity "url" for which no system
identifier could be generated.
....lash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v91.chi.youtube.co
m%2F
This is usually a cascading error caused by a an undefined entity reference
or use of an unencoded ampersand (&) in an URL or body text. See the
previous message for further details.

?

Info Line 23 column 120: entity was defined here.
....om/flash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v91.chi.youtub
e.co
Error Line 25 column 5: document type does not allow element "LI" here;
missing one of "UL", "OL", "DIR", "MENU" start-tag.
<li>
?

Error Line 26 column 124: reference to entity "url" for which no system
identifier could be generated.
....lash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v119.chi.youtube.c
om%2
?

Info Line 23 column 120: entity was defined here.
....om/flash/flvplayer.swf?20061026012254&url=http%3A%2F%2Fchi-v91.chi.youtub
e.co
Error Line 31 column 6: end tag for "HTML" which is not finished.
</html>
Most likely, You nested tags and closed them in the wrong order. For example
<p><em>...</pis not acceptable, as <emmust be closed before <p>.
Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child
element that you did not include. Hence the parent element is "not
finished", not complete. For instance, <headgenerally requires a <title>,
lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
Jan 24 '07 #24

P: n/a
ASM
Nospam a écrit :
>
I put the code for sample3.html in the html validator at
http://validator.w3.org and it said it found 11 errors, I am thinking maybe
that is why i didn't work in IE, but have no idea how to go about the
changes,
Did't I say your html code was uggly ?

I've tried to correct some parts but not all the page
(overall with all these scripts for advertizing)

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 25 '07 #25

P: n/a
ASM
Nospam a écrit :
maybe
that is why i didn't work in IE, but have no idea how to go about the
changes,
I think I did ask you show a "normal" page without insertion and not in
a popup where at least a video was working with your IE

From this point, it could be possible to try to insert the wanted code.

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 25 '07 #26

P: n/a

"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45**********************@news.orange.fr...
Nospam a écrit :
maybe
that is why i didn't work in IE, but have no idea how to go about the
changes,

I think I did ask you show a "normal" page without insertion and not in
a popup where at least a video was working with your IE
I have tried with http://watchanimation.awardspace.com/sample5.html

and http://watchanimation.awardspace.com/template3.html

with no adverts
but no animation is shown in IE :(

Jan 25 '07 #27

This discussion thread is closed

Replies have been disabled for this discussion.