Jump to content

Javascript doesn't work right as PHP include


anthropos9

Recommended Posts

I have a javascript in a calendar page to have events descriptions show up when you mouse over them. It works fine when the calendar is loaded on it's own (see [a href=\"http://cefc.naed.cteens.org/includes/cal/calendar.php\" target=\"_blank\"]this page[/a] ([a href=\"http://cefc.naed.cteens.org/includes/cal/calendar.txt\" target=\"_blank\"]the code[/a])), but when the calendar is included in a page as a PHP include() item in FF and Safari the javascript breaks somewhat (see [a href=\"http://cefc.naed.cteens.org/pages/events-test.php?id=7\" target=\"_blank\"]this page[/a] ([a href=\"http://cefc.naed.cteens.org/includes/cal/events-test.txt\" target=\"_blank\"]the code[/a])). I'm wondering why javascript isn't moving the div when it is in the include() item. I've tried hard coding everything into the second page instead of having it as an include item, but that didn't help - which means the problem obviously isn't the include, just something within the page it's being included in. Any thoughts or comments are welcome as this thing has got me really stumped. Thanks.
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.