Skip to main content
JBWebWorks
Inspiring
November 8, 2008
Answered

using include with PHP

  • November 8, 2008
  • 1 reply
  • 464 views
After reading three David Powers books, I was convinced to use <?php include("navigation.php") ?>
where the navigation.php is a spry menu bar.
It works great and saves so much time I can't believe it.
One slight question (not really a problem)
Whenever i open a page which has the include, Dreamweaver give me a message
"This document contains JavaScript code for a widget that no longer exists. If you don't remove the code........"
I answer no to the warning message and everything works fine. Should i worry about this?
This topic has been closed for replies.
Correct answer Newsgroup_User
JBWebWorks wrote:
> I answer no to the warning message and everything works fine. Should i worry
> about this?

Move the script that initializes the Spry menu bar to the include file.
If "The Essential Guide to DW CS3" is among the three books of mine that
you have got, read pages 370-2, where I explain how to get rid of that
nagging message.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

1 reply

Newsgroup_UserCorrect answer
Inspiring
November 9, 2008
JBWebWorks wrote:
> I answer no to the warning message and everything works fine. Should i worry
> about this?

Move the script that initializes the Spry menu bar to the include file.
If "The Essential Guide to DW CS3" is among the three books of mine that
you have got, read pages 370-2, where I explain how to get rid of that
nagging message.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
November 10, 2008
JBWebWorks wrote:
> Thanks David
> That was easy; i guess there is a big difference between reading and retaining.

No problem. I have the same experience with other books. However, I do
tend to remember most of what's in my own. ;-)

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/