Click to See Complete Forum and Search --> : dhtml, js and asp


anniebelle82
01-15-2006, 10:40 AM
Hi there,

Im currently working on a website which uses dhtml and asp. The dhtml side of it only occurs for the 'dynamic' menu, which is derived directly from the database. I dont have much knowledge for dhtml, so i downloaded a program which pretty much wrote it up for me. Ive noticed that the language occurs between the <script> tags, so i would assume it uses javascript language (please correct me if im wrong here).

Because my menu is dynamic, I am trying to figure out if ASP can work 'WITHIN' the <script> tags.

russell_g_1
01-15-2006, 11:48 AM
hello

has the program you downloaded generated the dhtml or has it generated asp to read from the database every time the page runs?

if the <script> tag just says <script> then its client side code and is probably javascript. it needs to say runat="server" to be an asp script block.

basically you can put asp anywhere in the page though. just put <% and %> in and put your code in between. the server will run the asp and the client browser won't be any the wiser (unless the asp produces some html). so yes, it can go inside client side script, you can even generate javascript using asp.