Nov 22, 2009

Xhtml Js Loading.

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

Xhtml Js Loading.

toby
CODE
<body onload="init()" onresize="gotopos(disptop, displeft)">
<img src="" id="mapimg" onload="void(imgload=true);void(sstatus('Map loaded successfully'))" alt=""/>


As Xhtml 1.1, the resize of body, and onload of img are the only errors. How could I do this? All I could think was the onload at the end of the page, but as the image is 1.5mb, I doubt this will work for most people. Btw, the empty src is correct, if you're intrested its the RS world map.

Comment/Reply (w/o sign-up)

FirefoxRocks
If you are using XHTML 1.1, your images need to be in a block-level element, so put <div> around it. Also, XHTML 1.1 needs to be sent with a MIME type of application/xhtml+xml.

Comment/Reply (w/o sign-up)

faulty.lee
QUOTE(toby @ Nov 19 2007, 01:49 AM) *
CODE
<body onload="init()" onresize="gotopos(disptop, displeft)">
<img src="" id="mapimg" onload="void(imgload=true);void(sstatus('Map loaded successfully'))" alt=""/>


As Xhtml 1.1, the resize of body, and onload of img are the only errors. How could I do this? All I could think was the onload at the end of the page, but as the image is 1.5mb, I doubt this will work for most people. Btw, the empty src is correct, if you're intrested its the RS world map.


What did you call in the init() function? Is the error originate from there? Did you try in another browser?

Comment/Reply (w/o sign-up)

toby
The <img> works, the init() works, the invalidation is the on resize of body, and onload of img.

Comment/Reply (w/o sign-up)

faulty.lee
QUOTE(toby @ Nov 19 2007, 05:42 PM) *
The <img> works, the init() works, the invalidation is the on resize of body, and onload of img.

What error message did you get?

Comment/Reply (w/o sign-up)

FirefoxRocks
Apparently I am receiving the same error when trying to reproduce the problem:

QUOTE
# Line 6, Column 31: there is no attribute "onresize".

<body onload="init()" onresize="gotopos(disptop, displeft)">

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


# Error Line 7, Column 36: there is no attribute "onload".

<div><img src="" id="mapimg" onload="void(imgload=true);void(sstatus('Map loaded

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


I would seriously recommend using XHTML 1.0 Strict instead of XHTML 1.1, because of the depreciated lang attribute and MIME type issue. I didn't know they removed the event attributes in XHTML 1.1, can't find any info on that.

 

 

 


Comment/Reply (w/o sign-up)

toby
I havn't got round to adding it, but I've got the lang, charset and mime type correcting code for 1.1. It's just js thats unknown for me.

Thanks for trying, weird that its phased out.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : xhtml, js, loading,

  1. Good Book For Learning Xhtml & Css
    (2)
  2. Xhtml, Javascript, Css And Frames.
    (0)
    Hello, I am building a form where a user selections several options (it uses javascript to modify
    checkbox values based on other selections). At the end I need to re-generate html code based on the
    selected form values, I don't particularly care what way it's done (although my site is
    XHTML 1.0 Transitional), but I need it to update on the fly as they change options. The HTML code
    is Google AdSense code, and I am trying to build my own from to generate all the different ad types
    and generate the code (it's not just for me). What kind of options do I have?....
  3. Help With Java Applet
    With XHTML 1.1/XHTML 1.0 Strict! (8)
    I have a Java Applet for a chat room that is using the tag. It looks like it was from HTML 3.2 but
    I am using XHTML 1.1 (application/xhtml+xml), so I have to use the element. For now I have forced
    that page to load as XHTML 1.0 Transitional in text/html MIME type because I don't know how to
    fix the problem. I have tried many suggestions from many sites but they don't work in Firefox,
    Internet Explorer or Opera (some of them are IE-only but they still don't work in IE). Is there
    any way that the element can be implemented with cross-browser compatibili....
  4. Ajaxload Creates For You Free Custom Animated Ajax "loading" Icons
    (0)
    I've been scanning through a whole lot of blogs these days and quite often I come across really
    interesting tidbits from all around the net.. here's a recent discovery called Ajaxload.info
    . If you're implementing ajax scripts in your site and was to show those funky animated loading
    indicators instead of a vanilla "Please wait... loading" message, then this is the site for you...
    Here's my review from my site: QUOTE(ChaosLab) Nowadays every second site you see employs
    some form or AJAX or the other - either wholly or in parts. With the old-sc....
  5. Mixing XHTML 1.1 And iFrame
    Or how to get around using iframes for a nifty AJAX trick (10)
    Okay, first of all, I let me explain what I want to know. XHTML 1.1 does not include the IFrame
    Module, which means putting an iframe into an XHTML 1.1 page will cause errors in validation. Now,
    I know from the Modularization of XHTML Specification that it is possible to create a DTD that
    contains all of the modules of XHTML 1.1 as well as the IFrame module. However, after reading
    through said specification, I am unsure of exactly how to go about a) writing a DTD like that and
    /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> using a DTD....
  6. Help! - Flash & Xhtml Traditional & Strict
    As the title says (7)
    Hey guys, I have not designed a website for over a year. My website is currently in constuction at
    http://geekfromtheforest.com/ Anyways i am able to code in strict and traditonal xhtml 1.0 but do
    not know how to properly code a flash object. So let see if someone can come up with a proper way
    to code a flash object. This is what Macromedia recs but its dirty dirty and pointless and not
    valid! lol CODE                Does anyone have any ideas how to get around
    this? [....
  7. DHTML Fade-in/out Loading Bar
    (Firefox Only) (5)
    Today I was looking around for a good DHTML loading bar and couldn't find one so I decided to
    make it myself! Here is the javascript that goes into the part of the doc: CODE var x = 0;
    var y = 115; var a = 0; setTimeout(fadeIn, 1); function fadeIn(){
    document.getElementById("003").style.opacity=a; a = a+.1; if(a setTimeout(fadeIn, 100); } else{
    setTimeout(progressBar, 1); } } function progressBar(){ x = x+1;
    document.getElementById("001").style.width=x; document.getElementById("002").style.width=x; if(x
    setTimeout(progressBar, 1); } else{ setTimeout(fadeOut, 1....
  8. What Exactly Is XHTML?
    need help (5)
    i am a regular visitor to http://www.oswd.org , and an enthusiast in learning in css. but i do nto
    know the meaning of XHTML, XHTML Transitional and how to test a site for its design consistency and
    functionability in browsers... i request help in the above topics, thank you.....
  9. Xhtml Is Not Suppose To Be Text/html
    IE not planning to support XHTML yet (8)
    I am quite disappointed in IE's development as with keeping up but still if they feel they need
    to fully work on current things that they have already attempted to resolve and perfect then that is
    a good thing, but development should have never got so messy and only the developer would know that
    it's his fault and not MS's. This isn't to bad mouth IE, but it's so sad to know
    that even after 5 years or more of IE6, IE7 has no intention of supporting XHTML and I don't
    think I can wait for IE8 if development takes such a long time. They should also....
  10. Styling Xhtml
    Making a practical use of XHTML and CSS (0)
    FIRST PART HTML was created with the intention of exposing information , this way under the
    original design approach the content was the most important aspect ; but in a very short time
    things changed drastically , HTML became wildly popular and quickly increased its original purpose,
    so there has been rapid creation of new elements to adapt HTML to the market's more
    sophisticated needs and the surplus of those new elements has led to interoperability problems
    across diverse platforms. To help solve those problems arrived XHTML , which is a much more accessi....
  11. Understanding Xhtml
    A practical introduction to XHTML (8)
    A lot have been said about the convenience of using XHTML instead of the well known HTML for the
    development of web pages and often it is not used since it is believed it’s too complicated to
    learn the new language and that it wouldn’t be worth the time and effort. It seems to me that the
    observation mentioned above is mistaken and I believe that it is worth to try to demonstrate that
    it is all the opposite , but not so much with the theoretical argumentation but rather with a
    practical approach covering diverse aspects of the process of developing web pages. Fir....
  12. Loading Time And Looks
    How do you get a.... (4)
    How do you get a site that has good looks and a fast loading time? Ive been trying for ages and ive
    never achived It? HELP?!....
  13. Flash Movie Loading.
    Not the "loading movie" :) (3)
    Hello /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I have
    got a little question about loading the flash movie on the website. In fact I made my website and
    have inserted some flash movies on the main page. My flash movies are about 80KB. And while the
    movie is loading it is white, but my website's background colour is black. So the question
    would be: Is it possible to keep the movie BLACK while it's loading to the webpage, without
    creating this "loading..." thing ? Eh... I hope you understand what I mean /rolleyes.gif" ....
  14. Compatibility Issues
    php, xhtml, css and the like... (3)
    I'm a big fan of being absolutely compatible, I still design my sites so you can view them at
    640x480 screen resolution (and get laughed at because of so), and since I've been on the board
    for some time I find that my coding ideals are somewhat outdated. I still have the impression not
    all browsers can read CSS, so I still design my pages with html tables and even though I have an
    external CSS stylesheet, I still use tags like , that basically repeat my CSS, but ensure that
    browsers without CSS can see my website. Problem is, am I doing something really stupid?....
  15. Help! Redirecting After Loading .mov
    (2)
    You know I believe there is some serious lag going on. I just got my post erased for the THIRD time.
    Gah. Anyway, I seriously tried to search (and destroy) this problem and mine but I just can't
    find the specific solution. Well, I thought I had a good lead on some other site, but then turns out
    you had to PAY TO SEE THE ANSWER. Those bastards. Hip hip for astahost! This place is turning out
    more useful than I thought... /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> So here's what I have and here's what I want to do....
  16. XHTML
    (0)
    XHTML is a combination of HTML and XML (eXtensible Markup Language). XHTML consists of all the
    elements in HTML 4.01 combined with the syntax of XML. Before you continue you should have a basic
    understanding of the following: ~HTML and the basics of building Web pages ~The basics of XML
    -Check out this great site:-- http://www.w3schools.com/xhtml/ ....
  17. Creating Cool Web Sites with HTML, XHTML and CSS
    (0)
    Whether you're building a sophisticated commercial Web site or just creating an online spot to
    call home, good Web site development is about a lot more than just HTML nowadays, and Creating Cool
    Web Sites spends lots of time exploring the nuances of xhtml and Cascading Style Sheets in a way
    you're sure to understand. Incorporating the best of Creating Cool HTML 4.0 Web Pages and
    Dynamic HTML Weekend Crash Course, this book adds tons of critical new and updated information on
    xhtml, CSS, JavaScript, page validation, weblogs and weblog tools, optimal search engine ....

    1. Looking for xhtml, js, loading,

See Also,

*SIMILAR VIDEOS*
Searching Video's for xhtml, js, loading,
advertisement



Xhtml Js Loading.

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com