Random Product Display

J

JA

Ok, I finally upgraded to FP2003, and it looks pretty neat. I'm wondering if
there is a way it can fix a problem that I'm having.

I have an asp script that is included in an html page - it shows product
image, name, short description, and links to the detail page. There are 4
products shown, drawn from a database, and each time you revisit or refresh,
the four products change. BUT, I get 3 different error messages -
sometimes - and the products don't load in the page.

I don't want to change the html page to asp - it has a decent page rank.
Also the script is used in an asp page, and still gets the errors, so that
really isn't the issue.

So, I'm wondering if there is a way to do this with some of the new things
in FP03 - like maybe the web parts?

Thanks for any ideas you might have~

J~
 
R

Ronx

An HTML page will not work with ASP code unless the page has an .asp
extension, or the server is set to run ALL .htm and .html pages through the
ASP engine (which means run time FP components such as forms will not
work.)

What actual errors do you see?
 
M

MD Websunlimited

Hi JA,

FP3 would not use includes that ended in .asp prior to applying Office SP1.
 
J

JA

Ronx,

I read that somewhere about setting the server to run all htm pages as ASP,
and thought about doing that. Thanks for letting me know that this would
mess up my FP forms!

The asp code is not directly in the html page, the code comes from an
included page. (but not an fp include).

There are 4 "boxes", each one is set so that none show the same product at
the same time.

The errors only show up some of the time. You might have to refresh the page
10 or 15 times to get the error. It is:

Line 55
Error: Unterminated string constant

There are 2 other errors, they are the same except for the line number.


Thanks, J
 
S

Stefan B Rusynko

The ASP code will not be processed server side unless it is in a .asp page
- same applies to an included .asp page

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Ronx,
|
| I read that somewhere about setting the server to run all htm pages as ASP,
| and thought about doing that. Thanks for letting me know that this would
| mess up my FP forms!
|
| The asp code is not directly in the html page, the code comes from an
| included page. (but not an fp include).
|
| There are 4 "boxes", each one is set so that none show the same product at
| the same time.
|
| The errors only show up some of the time. You might have to refresh the page
| 10 or 15 times to get the error. It is:
|
| Line 55
| Error: Unterminated string constant
|
| There are 2 other errors, they are the same except for the line number.
|
|
| Thanks, J
|
|
|
|
| | > An HTML page will not work with ASP code unless the page has an .asp
| > extension, or the server is set to run ALL .htm and .html pages through
| > the ASP engine (which means run time FP components such as forms will not
| > work.)
| >
| > What actual errors do you see?
| > --
| > Ron Symonds - Microsoft MVP (FrontPage)
| > Reply only to group - emails will be deleted unread.
| > FrontPage Support: http://www.frontpagemvps.com/
| >
| > | >> Ok, I finally upgraded to FP2003, and it looks pretty neat. I'm wondering
| >> if there is a way it can fix a problem that I'm having.
| >>
| >> I have an asp script that is included in an html page - it shows product
| >> image, name, short description, and links to the detail page. There are 4
| >> products shown, drawn from a database, and each time you revisit or
| >> refresh, the four products change. BUT, I get 3 different error
| >> messages - sometimes - and the products don't load in the page.
| >>
| >> I don't want to change the html page to asp - it has a decent page rank.
| >> Also the script is used in an asp page, and still gets the errors, so
| >> that really isn't the issue.
| >>
| >> So, I'm wondering if there is a way to do this with some of the new
| >> things in FP03 - like maybe the web parts?
| >>
| >> Thanks for any ideas you might have~
| >>
| >> J~
| >>
| >
| >
|
|
 
J

JA

Stefan,

It IS an asp page, but it is called using javascript, if that makes a
difference:

<script language=JavaScript src=http://etc.etc/asppage.asp></script>

and it does work, most of the time. Are you saying it would never work at
all?

Anyway, can anyone tell me a better way to show the products using the
things that Frontpage 2003 can do? Or just any better way, one that will
allow me to keep the page as .htm, but have a changing display of the
products?

Thanks again, J~~





Stefan B Rusynko said:
The ASP code will not be processed server side unless it is in a .asp page
- same applies to an included .asp page

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Ronx,
|
| I read that somewhere about setting the server to run all htm pages as
ASP,
| and thought about doing that. Thanks for letting me know that this would
| mess up my FP forms!
|
| The asp code is not directly in the html page, the code comes from an
| included page. (but not an fp include).
|
| There are 4 "boxes", each one is set so that none show the same product
at
| the same time.
|
| The errors only show up some of the time. You might have to refresh the
page
| 10 or 15 times to get the error. It is:
|
| Line 55
| Error: Unterminated string constant
|
| There are 2 other errors, they are the same except for the line number.
|
|
| Thanks, J
|
|
|
|
| | > An HTML page will not work with ASP code unless the page has an .asp
| > extension, or the server is set to run ALL .htm and .html pages
through
| > the ASP engine (which means run time FP components such as forms will
not
| > work.)
| >
| > What actual errors do you see?
| > --
| > Ron Symonds - Microsoft MVP (FrontPage)
| > Reply only to group - emails will be deleted unread.
| > FrontPage Support: http://www.frontpagemvps.com/
| >
| > | >> Ok, I finally upgraded to FP2003, and it looks pretty neat. I'm
wondering
| >> if there is a way it can fix a problem that I'm having.
| >>
| >> I have an asp script that is included in an html page - it shows
product
| >> image, name, short description, and links to the detail page. There
are 4
| >> products shown, drawn from a database, and each time you revisit or
| >> refresh, the four products change. BUT, I get 3 different error
| >> messages - sometimes - and the products don't load in the page.
| >>
| >> I don't want to change the html page to asp - it has a decent page
rank.
| >> Also the script is used in an asp page, and still gets the errors, so
| >> that really isn't the issue.
| >>
| >> So, I'm wondering if there is a way to do this with some of the new
| >> things in FP03 - like maybe the web parts?
| >>
| >> Thanks for any ideas you might have~
| >>
| >> J~
| >>
| >
| >
|
|
 
S

Stefan B Rusynko

Yes it will not work and that is why you are getting JS object errors
The tag script language=JavaScript is declaring the wrong browser objects to use
Rename your .htm page to .asp and use a proper SSI
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Stefan,
|
| It IS an asp page, but it is called using javascript, if that makes a
| difference:
|
| <script language=JavaScript src=http://etc.etc/asppage.asp></script>
|
| and it does work, most of the time. Are you saying it would never work at
| all?
|
| Anyway, can anyone tell me a better way to show the products using the
| things that Frontpage 2003 can do? Or just any better way, one that will
| allow me to keep the page as .htm, but have a changing display of the
| products?
|
| Thanks again, J~~
|
|
|
|
|
| | > The ASP code will not be processed server side unless it is in a .asp page
| > - same applies to an included .asp page
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | Ronx,
| > |
| > | I read that somewhere about setting the server to run all htm pages as
| > ASP,
| > | and thought about doing that. Thanks for letting me know that this would
| > | mess up my FP forms!
| > |
| > | The asp code is not directly in the html page, the code comes from an
| > | included page. (but not an fp include).
| > |
| > | There are 4 "boxes", each one is set so that none show the same product
| > at
| > | the same time.
| > |
| > | The errors only show up some of the time. You might have to refresh the
| > page
| > | 10 or 15 times to get the error. It is:
| > |
| > | Line 55
| > | Error: Unterminated string constant
| > |
| > | There are 2 other errors, they are the same except for the line number.
| > |
| > |
| > | Thanks, J
| > |
| > |
| > |
| > |
| > | | > | > An HTML page will not work with ASP code unless the page has an .asp
| > | > extension, or the server is set to run ALL .htm and .html pages
| > through
| > | > the ASP engine (which means run time FP components such as forms will
| > not
| > | > work.)
| > | >
| > | > What actual errors do you see?
| > | > --
| > | > Ron Symonds - Microsoft MVP (FrontPage)
| > | > Reply only to group - emails will be deleted unread.
| > | > FrontPage Support: http://www.frontpagemvps.com/
| > | >
| > | > | > | >> Ok, I finally upgraded to FP2003, and it looks pretty neat. I'm
| > wondering
| > | >> if there is a way it can fix a problem that I'm having.
| > | >>
| > | >> I have an asp script that is included in an html page - it shows
| > product
| > | >> image, name, short description, and links to the detail page. There
| > are 4
| > | >> products shown, drawn from a database, and each time you revisit or
| > | >> refresh, the four products change. BUT, I get 3 different error
| > | >> messages - sometimes - and the products don't load in the page.
| > | >>
| > | >> I don't want to change the html page to asp - it has a decent page
| > rank.
| > | >> Also the script is used in an asp page, and still gets the errors, so
| > | >> that really isn't the issue.
| > | >>
| > | >> So, I'm wondering if there is a way to do this with some of the new
| > | >> things in FP03 - like maybe the web parts?
| > | >>
| > | >> Thanks for any ideas you might have~
| > | >>
| > | >> J~
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top