Coding Problem (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Ziggyzaz -> Coding Problem (6/12/2003 16:36:10)

I wasn' t sure where to put this, in here or in asp.

I have a code that randomly rotates pictures but it only works when saved as an asp. My server supports asp, but the location of the code is in an include. The include is saved as an .inc. The include is part of my template, hence the reason that I am unable to save as an asp. is there a way to make the code work while in an include?

i know this really doesn' t make sense but please ask questions so I can clarify.




bobby -> RE: Coding Problem (6/12/2003 17:01:05)

As long as the page that " includes" the .inc file has a .asp file extension it will work. The parent page (the one doing the including) must be an ASP page

The server will process the include first, " copy-and-pasting" the .inc file into your page code, then processes the ASP scripting.




Spooky -> RE: Coding Problem (6/12/2003 17:02:42)

To be displayed, it really need to be run in an asp page and not a design time include.
Something like this may allow you to run asp in an html page.




Ziggyzaz -> RE: Coding Problem (6/12/2003 17:17:25)

what exactly am i exposed to do wiht these?




Spooky -> RE: Coding Problem (6/12/2003 18:25:43)

If you want to try and display active code on an htm page, then there are a few options.

1) Use the above script to modify your include (script knowledge required)
2) Use a javascript rotator (new script needed)
3) save the parent page as asp :)




Ziggyzaz -> RE: Coding Problem (6/12/2003 18:50:03)

The page that shows up on the web is saved as an asp. i tried putting my html program in the include page and that didn' t work.




Spooky -> RE: Coding Problem (6/12/2003 19:14:48)

How are you ' including' the script in your include page - do you have an example?




Ziggyzaz -> RE: Coding Problem (6/12/2003 19:19:27)

well it' s working now. I don' t know what I did or how I did it but it' s working. Thanks for all your help




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875