DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Location
    Vic. Australia
    Posts
    14

    help with javascript (learning)

    The attached file is a webpage full of javascript, that is built by a program that i have....

    but it has "frames" in it... which i do not want....

    for the last few months i have tryed rewriting the code so that it still works the same but without the frames....

    it anyone would like to have a go at it, and fillit with lots of coments...

    I can then look at both and hope to lean a little...


    I have been able to get it to show the screen allow you to answer the questions, but not do the scoring....

    please any help??
    thanks...
    Attached Files

  2. #2
    Nigel McFarlane is offline Former moderator, account closed
    Join Date
    Nov 2003
    Location
    I live on the 'net
    Posts
    229
    You chould study the CSS 2.1 standards a little bit. With use of styles you can make your page more dynamic and avoid frames. Look at http://www.csszengarden.com for some dramatic examples.

    That is in addition to your JavaScript work.
    Nigel McFarlane, Author: "Firefox Hacks", "Rapid Application Development with Mozilla"

  3. #3
    Join Date
    Sep 2004
    Location
    Vic. Australia
    Posts
    14
    Anyone?????

  4. #4
    Join Date
    Sep 2004
    Location
    Vic. Australia
    Posts
    14
    Well I don't fell so bad now, that i can't work it out...

    as 200 or more have read, but still nobody is able to help...

    so it must be harder then i thought....


    thanks anyway. but in time i'll get it....

    just thought that there would have been someone that would know a little more then me.... would be able to help...

  5. #5
    Nigel McFarlane is offline Former moderator, account closed
    Join Date
    Nov 2003
    Location
    I live on the 'net
    Posts
    229
    I just noticed you're also in Vic, so perhaps I should help you more ..

    Change frameset to body. Put your script tag in the body, and call StartUp() at the end of the script section, not in the onload event handler. That way the page is created as it loads, not afterwards.

    If you want to stick with onload, or if you want the document to change again after it's finished loading (perhaps an update), then you'll have to read the W3C DOM 1 Core standard and work out how to use getElementById() and appendChild() and removeChild(), or else learn innerHTML.

    The reason no one in this forum is helping you is because your code is too long. No one has time to study it. If your problem code is cut down to a simple example, people are more likely to help you.
    Nigel McFarlane, Author: "Firefox Hacks", "Rapid Application Development with Mozilla"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links