CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 adding dhtml navbar

Print topic Send  topic

Author Message
NickM

Posts: 44
Posted: 07/01/2004, 6:59 AM

I've created a dropdown nav bar outside CCS and cut-pasted the HTML code into a new page in my CCS project.
I then made that page an ' includable' file in CCS.
In CCS I 'included' it at the top of a page of an existing grid.
Checking the final code for the live page looks fine but I get a script error, yet the page with only the nav bar works fine.
The script error is: Expected '{'
Is there a conflict or changes that occur to the code when 'including' a file that I am not aware of ?
Any ideas?
View profile  Send private message
DonB
Posted: 07/04/2004, 7:17 AM

The dhtml would/should be sent to the browser, right? I'd compare the html
from both include and non-include. There's bound to be a difference.

The "{" is significant because that's the delimiter CCS uses for html
template pages.

If you just dumped the DHTML stuff into the html file of your include,
that's quite likely the source. You may find it necessary to put it all in
the Include's Before Show event and output it from code as the page is
generated rather that having it in the template "statically".

--
DonB

logging at http://www.gotodon.com/ccbth, and blogging at
http://ccbth.gotodon.net


"NickM" <NickM@forum.codecharge> wrote in message
news:540e418ca2e0ac@news.codecharge.com...
> I've created a dropdown nav bar outside CCS and cut-pasted the HTML code
into a
> new page in my CCS project.
> I then made that page an ' includable' file in CCS.
> In CCS I 'included' it at the top of a page of an existing grid.
> Checking the final code for the live page looks fine but I get a script
error,
> yet the page with only the nav bar works fine.
> The script error is: Expected '{'
> Is there a conflict or changes that occur to the code when 'including' a
file
> that I am not aware of ?
> Any ideas?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

NickM

Posts: 44
Posted: 07/04/2004, 4:41 PM

Thanks donB
put it all in the Include's Before Show event and output it from code as the page is generated rather that having it in the template "statically".  
Is there an example or something in the Help file that may guide me (and others) because I thought it would be fairly common practice to create a dropdown-menu outside CCS and then "include" that DHTML code - as you say, "statically" - in all CCS generated pages.
View profile  Send private message
NickM

Posts: 44
Posted: 07/05/2004, 7:58 AM

put it all in the Include's Before Show event and   
output it from code 
Anyone have simple instructions & code that I can follow/copy to add DHTML (drop-down nav bar) to pages?
View profile  Send private message
PeterJ


Posts: 90
Posted: 01/24/2005, 12:55 AM

Hello

Did you manage to resolve this problem? I am struggling with a similar problem.

Thanks
View profile  Send private message
NickM

Posts: 44
Posted: 01/27/2005, 8:13 PM

This was a long time ago, and I have dropped CCS in favour of a templating system - much, much simpler to achieve what I wanted.
Anyway, I think the solution was to write the file into the page rather than include it in the page.
In another post someone provided a little bit of php that opens, reads and writes a file to the page (standard stuff for any middling php user). I think that worked.
But as discussed elsewhere, some time ago, CSS is not particularly intuitive (meaning that 'including' the file should logically work, but you have to write the file into the page), or easy to understand. But it is a powerful program for those who are prepared to put in the hours and already have a reasonable understanding of PHP etc.
When/if it ever becomes easier to use/understand/implement, I'll be back.
Hope this helped.

NIckM
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.