Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: Website issues

  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Website issues

    I have a couple of things wrong with my website, (this is my first time publishing a website and its more for personal use than anything else) in IE my javascript will not run I don't know why if I test it on my machine its fine but when it goes through the server it doesn't work. (I am trying to get this to work for all browsers as well) Another thing is that I added another piece to my website and when I test it on my machine it works fine, but when I run it through the server it gives me a 404 error when I go to that url, but I have one that is exactly the same, just a little different and it works fine, so I am confused why one works and the other doesn't. Can someone help me figure this out!

    Thanks

    Phil

  • #2
    Regular Coder
    Join Date
    Aug 2011
    Posts
    120
    Thanks
    1
    Thanked 15 Times in 15 Posts
    When I first started, I had the same problem with 404 errors. What it was for me, and likely is in your case, is that you tested on a windows box and it is not on a unix box. The reason this can cause problems is that windows is not case sensitive in file names. I would be willing to bet that your link that leads to a 404 has a different capitalization than the file name.

    You also said that some script is not running in IE now that it's on a server. Does it work in other browsers? If so, then I have no idea where to point you, but, if not, I bet it's the same problem.

  • Users who have thanked M.Jackson for this post:

    pbracing33b (04-18-2012)

  • #3
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,447
    Thanks
    71
    Thanked 102 Times in 101 Posts
    404 means the page cannot be found (file). Make sure the path is right.
    Been a sign maker for 7 years. My business:
    American Made Signs

  • #4
    New Coder
    Join Date
    Mar 2012
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Yes my code file path is correct and my JS code is working in Firefox and other browsers but not in IE, also I still need to see if I change the lettering in my filepath name as I do have alot of caps in the file name, so I don't if that is what causing it or not but I think, I will try to change to see if it works.

  • #5
    New Coder
    Join Date
    Mar 2012
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Do you guys think posting my index file would help, I do know that when I did this portfolio it was in some older versions of HTML, bc thats what the school was teaching, idk if it has issues or not, but I wouldn't think IE would be the problem. Well here is my Code:
    Code:
    <html>
    <head>
    <title>Phil Blair's Portfolio OIS1520A Fall 2011></title>
    <meta name="description" content="Phil Blair work from Fall 2011 in OIS 1250A at Marion Technical College." />
    <meta name="keywords" content="OIS1250A, Marion Technical College, MTC, Phil Blair" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <link rel="stylesheet" href="Final Project Portfolio.css" type="text/css" >
    <style type="text/css">
    a:link {color:white; font-weight:bold; text-decoration:none;}
    a:hover {color: darkblue;}
    
    </style>
    </head>
    <body bgcolor = "skyblue">
    
    <table width="1000" height="150" border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="150" height="150" align="center" valign="middle">
    <img src ="mtclogo.gif" height="150" align="center" valign="middle" width="150"/></td><td width="850" height="150" align="center" valign="middle"><h1>Phil Blair</h1></td>
    <td style="width: 200px; float = left;">
    
    <ul style="color: SeaShell">
    	<li><h6><a class="link" href="index.html">Home Page</a></li>
    	<li><h6><a class="link" href="resume.html">Resume</a></li>
    	<li><h6><a class="link" href="contactMe.html">Contact</a></li>
    	<li><h6><a class="link" href="interactivewebsites.html">My Interactive Websites</a></li>
    	<li><h6><a class="link" href="Slideshow.html">Slideshow</a></h6></li>
    	<li><h6><a class="link" href="blair-phil-Flash Math.html">Click here to test your math skills</a></h6></li>
    				  
     </ul>
    </td>
    </table>
    <body>
    		
    	
    <table width="1000" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="1000" height="20" align="center" valign="middle">	
    <script language="JavaScript">
    var now = new Date()
    var time = now.getHours()
    if (time < 12)
    { 
    document.write("Good Morning! This is my Homepage! Please click the picture to see my resume.")
    
    }
     if (time == 12)
    {
    document.write("It is noon! This is my Homepage! Please click the picture to see my resume.")
    }
    if (time > 12)
    {
    document.write("Good evening! This is my Homepage! Please click the picture to see my resume.") 
    
    }		
    document.fgColor = "SeaShell";		
    </script></td>
    <noscript>Your browser does not support JavaScript!</noscript>
    
    </table>
    
    
    <p>
    <a href="resume.html">
    <CENTER><img id="image" src="Columbus Clippers game 001.JPG" align = "middle" alt="Columbus Clippers" width="800" height="600" /><CENTER>
    </a></p>
    
    
    
    <table width="1000" height="30" border="0" align="center" valign="middle">
    	<td width="950" align="left" valign="middle"><h6> Visit the <a href="http://www.mtc.edu"> Marion Techical College </a> Web site to learn more about Interactive Media. 
    	<br>The current time is: <script language="JavaScript">
    function checkTime(i)
    {
    if (i<10) 
      {
      i="0" + i;
      }
    return i;
    }
    
    var date = new Date();document.write(checkTime(date.getHours() +":"+ checkTime(date.getMinutes())) +".");</script> 
    	
    <script type="text/javascript">
    
    var d=new Date();
    var weekday=new Array(7);
    weekday[0]="Sunday";
    weekday[1]="Monday";
    weekday[2]="Tuesday";
    weekday[3]="Wednesday";
    weekday[4]="Thursday";
    weekday[5]="Friday";
    weekday[6]="Saturday";
    
    document.write("The Current Day is " + weekday[d.getDay()]);
    
    </script> 
    <noscript>Your browser does not support JavaScript!</noscript>
    <CENTER><a href="http://www.e-zeeinternet.com/" target="_blank"><img src="http://www.e-zeeinternet.com/count.php?page=723654&style=LED_g&nbdigits=5" alt="Free Counters" border="0" ></a><br><a href="http://www.e-zeeinternet.com/" title="Free Counters" target="_blank" style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; text-decoration: none;"></a></CENTER>
    
    </body>
    </html>

  • #6
    New to the CF scene
    Join Date
    Apr 2012
    Location
    NSW, Australia
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The code seems fine. I am thinking that Internet Explorer is the problem. What version of Internet explorer are you using?

  • #7
    New Coder
    Join Date
    Mar 2012
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    good question! IE9 So this is the latest version that I know of!

  • #8
    New to the CF scene
    Join Date
    Apr 2012
    Location
    NSW, Australia
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ok. I think the problem is IE. Quite a few different things about Website coding do not work in IE, as it is not the best Browser.... I tried the page earlier in Chrome, worked fine, but now that I look at the page in IE, I get " Your browser does not support JavaScript!" where the scripts should be. Maybe switch to a different browser?

  • #9
    New Coder
    Join Date
    Mar 2012
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Yes I agree, everything else does seem to work fine in other browsers, I was trying to get them to work in IE, bc if I have companies looking at my website as a resume, then they would probably be using IE, so hence the reason for asking I did get my other issues fixed, found out that the page was caching files and had one small tiny error in my code, both other issues are fixed except for browser compatibility. Except for my slideshow, but I never did get my slideshow to work in other browsers (IE was the only browser that it would work in) I may rewrite that entire code to fix it, since I do have examples now, also it only worked in IE on my own computer and never anything or anywhere else.
    Last edited by pbracing33b; 04-23-2012 at 06:45 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
    •