Hi again,

I believe I understood where you told me to put the CSS - inline in the http://digislick.com/news/events_calendar_example.html page. Is that correct? If so, I have tried it (deleted the CSS out in all the files named by month and inserted the CSS in the events calendar page) and it's not working. I left the body tag in the april.html file. I either misunderstood you or this isn't the issue that's affecting it. Am uploading the modified pages now. If you have time to take a look and check if what I did is what you meant, they will be there for the next few days while I try and get this worked out.

Sorry :-(

Got to get some sleep. The time difference between here and there is huge.

Thanks again for your help :-)




Klaus Hartl wrote:

Digislick schrieb:

Hi and nice to meet you :-)

I kinda figured you're busy as most of you seem to be very much so :-) Just thought I'd give the group a shot as I'm pretty desperate at the moment. Sorry for so much code but I wasn't sure which was the most important to be included.

The CSS for each calendar is included in each calendar html file itself (directly, not linked to an external file). The js for the stickies is called up through a link in each calendar page. The js for the tabs is called up through a link in the page the tabs are placed in. I tried to link to the calendar js file directly from the main page the tabs are on but it's a no-go. It didn't work (unless I'm misunderstanding what you mean). I've tried pretty much everything I can think of.

I'm confused about not including the body tag but will give that a shot.

Remote tabs are designed to work like that. As they're updating only a part of the *current* page, you're not supposed to load a complete other page into it! You would end up with two body tags nested for example which will probably cause problems.

I understand it may be confusing, because Tabs are also designed to degrade gracefully in case of JavaScript disabled. In this case you should serve complete pages, because then it is a complete page that is requested after clicking on a tab link (not necessarily styled as a tab then). So in an ideal world you would handle what to serve on the server - Rails for example let's you distinct between a standard and an Ajax request via request.xml_http_request?.

I also think that this is where the problems start. I'm sure that the CSS that is included in the style tags in the loaded pages there won't be applied to the newly loaded content. This content is part of the current page. More likely a browser will try to strip away everything that is not party of the body, because the current page already has one.

For a quick test, please try to include the css required for the calendar al in the page that has the tabs!



-- Klaus






Reply via email to