navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Coding Problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Coding Problem
Page: [1]
 
Ziggyzaz

 

Posts: 250
Joined: 5/29/2003
Status: offline

 
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

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
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.

< Message edited by bobby -- 6/12/2003 5:01:41 PM >


_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to Ziggyzaz)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Ziggyzaz)
Ziggyzaz

 

Posts: 250
Joined: 5/29/2003
Status: offline

 
RE: Coding Problem - 6/12/2003 17:17:25   
what exactly am i exposed to do wiht these?

(in reply to Ziggyzaz)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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 :)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Ziggyzaz)
Ziggyzaz

 

Posts: 250
Joined: 5/29/2003
Status: offline

 
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.

(in reply to Ziggyzaz)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Coding Problem - 6/12/2003 19:14:48   
How are you ' including' the script in your include page - do you have an example?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Ziggyzaz)
Ziggyzaz

 

Posts: 250
Joined: 5/29/2003
Status: offline

 
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

_____________________________

Your Chicken is on Fire

(in reply to Ziggyzaz)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Coding Problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts