+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Issues with Javascript?

  1. #1
    FangerZero's Avatar
    FangerZero is offline x10Hosting Member FangerZero is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Issues with Javascript?

    I'm currently setting up something for my brother, and using my site for tests and what naught so he can see as well. He lives 12 hours away. Anyways I have aa offline test server and the site works perfectly fine there. But when I upload it it doesn't work right. The list you see there should be a drop down menu, as well as have some CSS with it. But it doesn't. I also don't understand I thought that java was client side. It was working fine till I added the Java scripts.

    http://fangerzero.elementfx.com/Adam/index.php

    EDIT: Found out it's not Javascript but in fact it seems to be my CSS file. any clues?


    Navi css
    Last edited by FangerZero; 12-19-2009 at 02:49 PM.

  2. #2
    gomarc's Avatar
    gomarc is offline x10 Elder gomarc is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    USA
    Posts
    511

    Re: Issues with Javascript?

    Try changing Navigation.css to navigation.css (lowercase).

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Issues with Javascript?

    HTML Code:
    <link type="text/css" rel="stylesheet" href="navigation.css" />
    should be Navigation.css

    Works on Windowz machines, not on *nix machines.

    Lucky the page displays at all. The HTML is horrid.

  4. #4
    FangerZero's Avatar
    FangerZero is offline x10Hosting Member FangerZero is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Re: Issues with Javascript?

    Quote Originally Posted by gomarc View Post
    Try changing Navigation.css to navigation.css (lowercase).
    I feel really dumb now lol

    And descalzo how would you Write it then?



  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Issues with Javascript?

    Step 1.
    One set of html/head/body tags, nested properly.

    HTML Code:
    <html>
    <head></head>
    <body>
    
    </body>
    </html>
    
    Step 2.
    title, javascript, css links go in the head section
    HTML to display content goes in the body seciton

    HTML Code:
    <html>
    <head>
    <title>Plageman Insurance</title>
    
    <link type="text/css" rel="stylesheet" href="Style.css" />
    <link type="text/css" rel="stylesheet" href="navigation.css" />
    <script type="text/javascript">
    <!--
    	function toggle_visibility(id)
    		{
    		var e = document.getElementById(id);
    		if(e.style.display == 'block')
    			e.style.display = 'none';
    		else
    			e.stle.display = 'block';
    		}
    //-->
    </script>
    
    
    </head>
    <body>
    
    HTML for display here
    
    </body>
    </html>
    

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Issues with Javascript?

    Quote Originally Posted by FangerZero View Post
    And descalzo how would you Write it then?
    Take a look at "HTML tutorial - The Basics and "Semantics, HTML, XHTML, and Structure" for more of an introduction.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    FangerZero's Avatar
    FangerZero is offline x10Hosting Member FangerZero is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Re: Issues with Javascript?

    ok well then I don't do as bad as I thought. I threw that in there to test real fast. but thanks for links I guess.
    Last edited by FangerZero; 12-19-2009 at 11:00 PM.

  8. #8
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Issues with Javascript?

    It's pretty bad, to be honest. Invalid HTML (the particular errors show a deep misunderstanding of HTML), tables for layout... It needs much work, relative to the size of the file.
    Last edited by misson; 12-20-2009 at 05:57 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #9
    FangerZero's Avatar
    FangerZero is offline x10Hosting Member FangerZero is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    18

    Re: Issues with Javascript?

    Thanks for trying to help, but I don't learn from lectures. I learn from reading code. And it's not as if you'll have to deal w/ my coding if you don't want to. I'm not a web designer, I'm an Beginner Electrical Engineer/Programmer.

  10. #10
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Issues with Javascript?

    The problem with learning from code is it's hard to extract the principles behind it, unless you happen to be Alan Kay.

    As for dealing with other's code, you're right in that I don't have to deal with it directly, but all our pages live in a larger world. We have to design for the search engines and other programs that access our pages and sites, which creates a lowest-common denominator problem for the programs. A big hurdle in creating a truly semantic web is the pages that don't fit into it. This is an instance of a larger problem, that standards are useless when developers don't follow them.

    Remember, a critique of code is not a critique of the code's writer.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Backup Issues
    By Corey in forum News and Announcements
    Replies: 65
    Last Post: 07-23-2009, 01:57 PM
  2. drop down menus with JavaScript disabled?
    By sifaka in forum Free Hosting
    Replies: 1
    Last Post: 05-15-2008, 10:46 AM
  3. javascript and external javascript files problem
    By delon in forum Programming Help
    Replies: 6
    Last Post: 04-27-2008, 12:41 AM
  4. XML and Javascript
    By cuteboytm in forum Graphics & Webdesign
    Replies: 1
    Last Post: 09-21-2007, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers