Jump to content

Javascript 'explodes'; Style Sheets aren't 're-loading' -- HELP PLEASE!!


Chezshire

Recommended Posts

Hello to anyone who can help

  I'm a novice web design student (going to community college, 1st quarter) and I'm trying to do something which is a little ambitious for me which is to create a calendar that when clicked on becomes a list - this way when I update it I only have to do this once vs. twice. Style wise, it's working ok, but when I click either of the links below the calendar, the page falls apart :( So i'm guessing that the style sheets are loading correctly and I'd appreciate it if anyone out there could help me to resolve this.

 

Thank you very much (and please use small words when replying as I'm very green ;) )

 

Thank you honestly and sincerely

-Chez

 

Below is the javascript I'm using:


<script language="JavaScript">
<!--
var doAlerts=false;
function changeSheets(whichSheet){
	whichSheet=whichSheet-1;
  if(document.styleSheets){
    var c = document.styleSheets.length;
    if (doAlerts) alert('Change to Style '+(whichSheet+1));
    for(var i=0;i<c;i++){
      if(i!=whichSheet){
        document.styleSheets[i].disabled=true;
      }else{
        document.styleSheets[i].disabled=false;
      }
    }
  }
}
//-->
</script>

 

my student site can be seen here: http://xpg.us/xSCC/xFinalP/dinnersforsinners/schedule/schedule.html

Hello once again -- I've posted up an additional example which demonstrates my 'proof of concept' in that the idea works, it's just in trying to plug it into my larger design, the javascript is stumbling (well i'm stumbling, the javascript is doing what its suppose to do based on what it's been written to vs. what I'm trying to do with it ;) )

 

Proof of concept - demo of what i'm trying to have happen in my main site page:

http://xpg.us/xSCC/xFinalP/dinnersforsinners/schedule/test/calendar_test.html

 

Thank to all of you for any help you can offer (thank you!)

HI Everyone,

  So, I did some experiments and continued researching while waiting for anyone who might have an idea of what I could do to resolve my problem when I came across the '@import' feature in CSS. Using this I've been able to revise my site so that it works as intended. Well I still have a faux column div issue thats cropped up now, but I think I can solve that.

 

Thanks to anyone who was scratching their noggin' trying to figure out how i could resolve this issue.

Happy holidays and my you be blessed by the deity or commercial entity of your choice ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.