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

Link to comment
Share on other sites

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!)

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.