Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Flash i xhtml validacija!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
andrej`
Guest





PostPosted: 22.05.2005 14:46    Post subject: Flash i xhtml validacija! Reply with quote

Evo šta mi izbaci validator na w3schools.com

#

Line 22, column 19: there is no attribute "src"

<embed src="navigacija.swf" quality="high" pluginspage="http://www.macro

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


#

Line 22, column 44: there is no attribute "quality"

... <embed src="navigacija.swf" quality="high" pluginspage="http://www.macromedi


#

Line 22, column 63: there is no attribute "pluginspage"

...cija.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashpl


#

Line 22, column 114: there is no attribute "type"

...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="3


#

Line 22, column 152: there is no attribute "width"

...application/x-shockwave-flash" width="300" height="110"></embed></object>


#

Line 22, column 165: there is no attribute "height"

...-shockwave-flash" width="300" height="110"></embed></object>


#

Line 22, column 170: element "embed" undefined

...kwave-flash" width="300" height="110"></embed></object>

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).

------------------

Ne kontam. U čem je problem?
Back to top
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 22.05.2005 20:10    Post subject: Add user to your forum ignore list Reply with quote

<embed> element nije dio standardne html specifikacije.

Buduci da nisi dao cijeli kod koji koristis, tesko je reci da li mozes mozda rijesiti problem samo micanjem embeda, medjutim svakako mozes "zavarati" validator tako da flash dijelove ispucas javascriptom, tj. document.write() funkcijom - onda ce ti proci validator - no, ako je jedini problem kod validatora taj embed, onda se i ne moras zamarati.

Ako maknes embed, moras biti svjestan da u mozilla i netscape-based browserima po defaultu nece raditi taj flash, vec moras <object> element drugacije napisati isto...

Mozda najbolje da proucis:
http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/
http://www.alistapart.com/articles/flashsatay/
http://www.stilldreamer.com/programming/a_list_aparts_flash_satay_method_improved/
http://www.allinthehead.com/retro/234/embedding-macromedia-flash-in-xhtml

I tak, zapravo je to podrucje jos dosta "mutnjikavo", sto znaci da imas dosta slobode odluciti sto i kako, isprobati vise opcija, ili cak i ostaviti kako jest - ako ti je ostatak sitea valid, već si debelo u winneru...
Back to top
View user's profile Send private message Visit poster's website Twitter profile
andrej`
Guest





PostPosted: 22.05.2005 22:39    Post subject: Reply with quote

Hmm... hvala puno... I mislio sam da je u tom problem, proučavo sam malo kako je to riješeno na web.burzi i kužim da nešto ima veze s javom...

Probat cu include-at taj flash, onda me zaboli.

I da, cijeli sajt mi je prošo validaciju osim tog fleša... poludio sam Wink

Tnx again m8
Back to top
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 23.05.2005 01:36    Post subject: Add user to your forum ignore list Reply with quote

zytzagoo wrote:
medjutim svakako mozes "zavarati" validator tako da flash dijelove ispucas javascriptom, tj. document.write() funkcijom


Pa poanta validatora nije staviti gumb na site ili napisati da je kod validiran ako on to stvarno i nije...
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 23.05.2005 09:27    Post subject: Add user to your forum ignore list Reply with quote

gog wrote:
Pa poanta validatora nije staviti gumb na site ili napisati da je kod validiran ako on to stvarno i nije...

Fkorz. Hence my quotes around "zavarati".
Medjutim, buduci da nema drugog nacina, pogotovo za pocetnike (umetanje flasha u dom je skoro pa neizvedivo u svim browserima na svim platformama), odlucio sam mu i "varanje" predstaviti kao jednu od opcija. Imas ti mozda neku bolju?
Back to top
View user's profile Send private message Visit poster's website Twitter profile
keye



Joined: 24 Nov 2003
Posts: 2465
Location: Paris - France

PostPosted: 23.05.2005 09:32    Post subject: Add user to your forum ignore list Reply with quote

ovo funkcionira (bas sam to radila prosli tjedan)
Code:
<p>
<object type="application/x-shockwave-flash" data="images/banner.swf" width="190" height="120">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="190" height="120" alt="banner" />
 </object>
 </p>

ali moras imati alternativu banner.gif jer kad ne procita object ide automatski na gif i fino prodje validator a nikog se nije varalo Smile

evo cijeli page (jos je under-construction)
http://www.dsi-experts.fr/maquette/access/

ps. mislim da sam to nasla na "alistapart"

_________________
Google is a blind person
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 23.05.2005 09:59    Post subject: Add user to your forum ignore list Reply with quote

Da, funkcionira, međutim ima slučajeva kad je neupotrebljivo. Naime, ovaj pristup ne podržava neke od ključnih featurea flasha:

  • cijeli swf se mora kompletno učitati da bi se prikazao, što za veće filmiće nema smisla, ali se može riješiti odvajanjem preloadera i glavnog fajla u dva swf-a, pa onda preloader poziva drugi (glavni) swf
  • ukoliko korisnik nema flash player instaliran, neće dobiti prompt da automatski skine i instalira flash player (da, penetracija flasha je preko 93 ili koliko već posto, no ipak kod nas ima dosta ljudi bez flash playera instaliranog) - ovu metodu pokusali smo koristiti i na mi3iju još davno prije, ispostavilo se da čak ni na win2000 i IE5.5 (što je tad bilo prilično rašireno) ta priča ne prolazi baš. Pogotovo ako nema flash instaliran - dobije replacement image, i nikad ga ne prompta da skine flash - odlučismo da je to neprihvatljivo
  • još jedan bitan detalj - ukoliko taj flash želiš izvana kontrolirati nekim client side skriptnim jezikom (stop, play, gotoframe, itd.), bez clsid atributa to nije izvedivo, jer javascript komunicira s flashom preko activex kontrole (na win32 platformi barem) koja se instancira putem tog clsid atributa.

Eto, samo par detalja, možda će nekome utjecati na odluku koji pristup odabrati...
Back to top
View user's profile Send private message Visit poster's website Twitter profile
keye



Joined: 24 Nov 2003
Posts: 2465
Location: Paris - France

PostPosted: 23.05.2005 10:23    Post subject: Add user to your forum ignore list Reply with quote

ma da u stvari ovisi o tome zasto ti sluzi taj flash.
u mom slucaju ga stvarno mozes zamijeniti s nekim gifom jer nema nikakvu drugu funkciju osim bannera.
ovo sa mitrijem je totalno drugi pristup.

anyway, ima jedan seminar ovdje 20.6 bas o flash-u i multimedia komponentima i njihovoj implikaciji u access-web pa me bas zanimanju njihove solucije. idem pa vam javim Smile

_________________
Google is a blind person
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 23.05.2005 10:24    Post subject: Add user to your forum ignore list Reply with quote

keye wrote:
anyway, ima jedan seminar ovdje 20.6 bas o flash-u i multimedia komponentima i njihovoj implikaciji u access-web pa me bas zanimanju njihove solucije. idem pa vam javim Smile

Mrak, očekujemo full report Smile
Back to top
View user's profile Send private message Visit poster's website Twitter profile
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 23.05.2005 13:27    Post subject: Add user to your forum ignore list Reply with quote

zytzagoo wrote:
gog wrote:
Pa poanta validatora nije staviti gumb na site ili napisati da je kod validiran ako on to stvarno i nije...

Fkorz. Hence my quotes around "zavarati".
Medjutim, buduci da nema drugog nacina, pogotovo za pocetnike (umetanje flasha u dom je skoro pa neizvedivo u svim browserima na svim platformama), odlucio sam mu i "varanje" predstaviti kao jednu od opcija. Imas ti mozda neku bolju?


Da, ostaviti tako kako je... Very Happy
Back to top
View user's profile Send private message Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 23.05.2005 13:55    Post subject: Add user to your forum ignore list Reply with quote

Smartypants Wink mislio sam vise u stilu necega sto nije vec receno ili predlozeno Smile
Back to top
View user's profile Send private message Visit poster's website Twitter profile
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 24.05.2005 08:26    Post subject: Add user to your forum ignore list Reply with quote

Najbolje ideje su ponekad pretrivijalne Laughing
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group