Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
TSemmes #1
Server Side Includes and Javascript
Can one safely include javascript in a server-side include (SSI) file? It seems
to work but don't know if it will create problems down the line. I am using a
roll-over navigation bar created and generated in Fireworks. It seems to
defeat the purpose of using SSI if you can't include the javascript since if
there was a change at some point to the navigation bar you would have to change
the javascript that went with it. And it is nice to keep all that extra coding
out of every file on the site. IS there an official word on this or some
process in creating a SSI file that could prevent any problems?
You can see the file I created using this at <a target=_blank
class=ftalternatingbarlinklarge
href="http://www.hopkinsandporter.com/test.shtml">[url]http://www.hopkinsandporter.co[/url]
m/test.shtml</a>
TSemmes Guest
-
Big Problem with Server Side Includes (SSI)
We're experiencing a major problem with Server Side Includes that are written in ASP.NET / C# code, i.e. <% Response.WriteFile... -
Server Side Includes and Contribute 4
We would like to create a web site with one or two SSIs ... the site will be maintained by the client using Contribute 4. We are hoping to be able... -
server side includes
hello I am trying to use my navagation menu as a server side include. I don't know that much about SSI, but it is working, the image shows up. But... -
Random Server Side Includes
Hi all, What I would like to do is randomize which file gets used with as a server side include. Here is what I have so far: <% Const... -
Editing Server Side Includes in Design View
Hello all, I would like to know how I can edit server side includes (files ending with .ssi) in Dreamweaver MX? After I create a .SSI file and... -
Murray *ACE* #2
Re: Server Side Includes and Javascript
> Can one safely include javascript in a server-side include (SSI) file?
Yes, but it makes your parent page's derived code messy.
This is a big mistake for so many reasons.> I am using a
> roll-over navigation bar created and generated in Fireworks.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"TSemmes" <webforumsuser@macromedia.com> wrote in message
news:e52id2$pt1$1@forums.macromedia.com...> Can one safely include javascript in a server-side include (SSI) file? It
> seems
> to work but don't know if it will create problems down the line. I am
> using a
> roll-over navigation bar created and generated in Fireworks. It seems to
> defeat the purpose of using SSI if you can't include the javascript since
> if
> there was a change at some point to the navigation bar you would have to
> change
> the javascript that went with it. And it is nice to keep all that extra
> coding
> out of every file on the site. IS there an official word on this or some
> process in creating a SSI file that could prevent any problems?
>
> You can see the file I created using this at <a target=_blank
> class=ftalternatingbarlinklarge
> href="http://www.hopkinsandporter.com/test.shtml">[url]http://www.hopkinsandporter.co[/url]
> m/test.shtml</a>
>
Murray *ACE* Guest
-
TSemmes #3
Re: Server Side Includes and Javascript
Murray
this leaves more questions.
First what is a parent page (the template file?) and what is messy about the
code?
Also why is a roll-over generated from Fireworks a problem?. IS there an
alternative? I tried using pure CSS and text links for the navigation bar
orginally but could not get the spacing and look I wanted so I used the "insert
button" tool in Fireworks the exported to HTML.
Tom
TSemmes Guest
-
Murray *ACE* #4
Re: Server Side Includes and Javascript
When you are using includes, there are two kinds of files -
1. The parent page: the page receiving the included content; the page being
named '.shtml'; the page that provides the structure within which the
included content resides; the page containing the <!--#include directives.
2. The include files: the code fragments that are being included in the
parent page.
You have HTML and javascript all mixed together. It makes for a messy> and what is messy about the
> code?
looking page.
I suppose I could have looked at the link you posted. I can see that what> Also why is a roll-over generated from Fireworks a problem?
you used is not a problem. However, you do have javascript in the body of
the page that should be in the head....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"TSemmes" <webforumsuser@macromedia.com> wrote in message
news:e54akr$29m$1@forums.macromedia.com...> Murray
> this leaves more questions.
> First what is a parent page (the template file?) and what is messy about
> the
> code?
> Also why is a roll-over generated from Fireworks a problem?. IS there an
> alternative? I tried using pure CSS and text links for the navigation bar
> orginally but could not get the spacing and look I wanted so I used the
> "insert
> button" tool in Fireworks the exported to HTML.
>
> Tom
>
Murray *ACE* Guest
-
TSemmes #5
Re: Server Side Includes and Javascript
> You have HTML and javascript all mixed together. It makes for a messy
Isn't javascript meant to be combined with HTML? And messy in what way?> looking page.
Visually the way the user sees it? or the way the coder sees it?
That works. Thanks!> However, you do have javascript in the body of
> the page that should be in the head....
TSemmes Guest
-
Murray *ACE* #6
Re: Server Side Includes and Javascript
> Isn't javascript meant to be combined with HTML?
Yes, but usually in the head of the page.
Cluttered.> And messy in what way?
The way the coder sees it.> Visually the way the user sees it? or the way the coder sees it?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"TSemmes" <webforumsuser@macromedia.com> wrote in message
news:e54e0r$6h2$1@forums.macromedia.com...>>> You have HTML and javascript all mixed together. It makes for a messy
> > looking page.
> Isn't javascript meant to be combined with HTML? And messy in what way?
> Visually the way the user sees it? or the way the coder sees it?
>> That works. Thanks!> > However, you do have javascript in the body of
> > the page that should be in the head....
>
Murray *ACE* Guest



Reply With Quote

