brucie's bugs in ASP

M

Mark Parnell

Mostly for my own satisfaction, I have put together an ASP version of
brucie's bugs page (http://usenet.alt-html.org/bugs/bugs.php). I
shamelessly stole his images and CSS files, and modified his code. ;-)

For anyone who is interested, it can be found at
http://www.clarkecomputers.com.au/usenet/bugs.asp.

The only thing I was unable to recreate was finding out the dimensions of
the large images, as I can't find an ASP equivalent to the PHP getimagesize
function. (If anyone knows how to do this, I'd be interested to hear it.)
Of course, you could code it in for each image, but that would become very
time-consuming for a large number of images.

While the code may not be as elegant as it could be, it does what it is
supposed to. Feel free to steal it and modify it for your own use if you
want. :)
 
W

William Tasso

Mark said:
Mostly for my own satisfaction, I have put together an ASP version of
brucie's bugs page (http://usenet.alt-html.org/bugs/bugs.php). I
shamelessly stole his images and CSS files, and modified his code. ;-)

For anyone who is interested, it can be found at
http://www.clarkecomputers.com.au/usenet/bugs.asp.

The only thing I was unable to recreate was finding out the
dimensions of the large images, as I can't find an ASP equivalent to
the PHP getimagesize function. (If anyone knows how to do this, I'd
be interested to hear it.)

Do you have any image manipulation routines on your server? Most of these
will give you the info you need. I use AspImage but ImageSize will do just
what you want. Both available from http://www.serverobjects.com
 
M

Mark Parnell

William said:
Do you have any image manipulation routines on your server? Most of
these will give you the info you need. I use AspImage but ImageSize
will do just what you want. Both available from
http://www.serverobjects.com

Not that I am aware of - will have to check with our web host.

Will check ImageSize out for local use though, thanks.
 
L

Leif K-Brooks

Mark said:
Mostly for my own satisfaction, I have put together an ASP version of
brucie's bugs page (http://usenet.alt-html.org/bugs/bugs.php). I
shamelessly stole his images and CSS files, and modified his code. ;-)

For anyone who is interested, it can be found at
http://www.clarkecomputers.com.au/usenet/bugs.asp.

The only thing I was unable to recreate was finding out the dimensions of
the large images, as I can't find an ASP equivalent to the PHP getimagesize
function. (If anyone knows how to do this, I'd be interested to hear it.)
Of course, you could code it in for each image, but that would become very
time-consuming for a large number of images.

While the code may not be as elegant as it could be, it does what it is
supposed to. Feel free to steal it and modify it for your own use if you
want. :)

Why on earth to do want to port a script from a good language to an evil
one?!
 
B

brucie

Mostly for my own satisfaction, I have put together an ASP version of
brucie's bugs page (http://usenet.alt-html.org/bugs/bugs.php). I
shamelessly stole his images and CSS files, and modified his code. ;-)

i know where you live
For anyone who is interested, it can be found at
http://www.clarkecomputers.com.au/usenet/bugs.asp.

you're not returning a 304 if i request the same page again so i
retrieve the page from cache. it makes it resource hungry and slower.

when the style is 0 your URI is ... 'style=' rather then 'style=0'
same with the bug variable when changing styles (which point to my
pages).

whats with the cookie?

try this one: http://usenet.alt-html.org/butterflies/
 
M

Matthias Gutfeldt

Whitecrest said:
Don't you have anything better to do than turn this into a Microsoft
bashing thread?

Don't you have anything better to do than posting on usenet?


Matthias
 
C

crispy

Mark, I still can't view the source. Clicking on View Source gets me
this:

Brucies Bug Collection
pngjpg" width="251" height="132" alt="Click the thumbs to see brucie's
bugs""something appropriate for bug ">
" id="bug">
&style=0">Style 0
&style=1">Style 1
&style=2">Style 2
&style=3">Style 3
&style=4">Style 4
&style=5">Style 5
View Source

and when I click on View Source again, I get a 404 error.

Please post the source. I'd love to use it.

crispy
 
S

spaghetti

Mark Parnell said:
Not that I am aware of - will have to check with our web host.

Will check ImageSize out for local use though, thanks.

If your host supports .NET, you can use the System.Drawing.Image class to
get image dimensions. Most hosts have .NET now, but you might not have
noticed since ASP.NET runs ASP3 code just like before.

You can't use VBScript in .NET, but you can use VB.NET, which can handle
most of your old VBScript code (sans COM references) pretty easily.

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDrawingImageCl
assTopic.asp
 
M

Mark Parnell

brucie said:
you're not returning a 304 if i request the same page again so i
retrieve the page from cache. it makes it resource hungry and slower.

Not sure how to do that, but will look into it. Thanks.
when the style is 0 your URI is ... 'style=' rather then 'style=0'

I said it wasn't elegant ;-)
changing styles (which point to my pages).

Whoops! I really should learn to check these things properly before telling
people about them. :-(
whats with the cookie?

I've noticed that before - it isn't anything I have set up - will have to
talk to my host. :-(

Nice :)

After hovering over the top left thumbs, the background image comes over the
top of them (Moz 1.3, Win 2k). Screenshot at
http://www.clarkecomputers.com.au/usenet/butterflies.jpg (20k)
 
M

Mark Parnell

crispy said:
Mark, I still can't view the source.

Don't know why - it's just a text file.

Please post the source. I'd love to use it.

I'll email it to you if you like, rather than posting it all here. Send me
an email if you don't want to post yours - mine is valid :)
 
G

Geoff Ball

Mark said:
crispy wrote:
Don't know why - it's just a text file.

IE tends to interpret a file - regardless of content type or file extension
- based on what type of file it *thinks* it should be. Since the text file
contains primarily ASP code, IE assumes it is an ASP file, and interprets
it as such. Even if you send the file as text/plain and give it a .txt
extension, IE is still too ignorant to realize that you don't want it to
interpret the code as ASP.

Regards,
Geoff
 
B

brucie

i don't have my bugs anymore. the server pooed itself and needed
restoring from backups. the backups were older than my bug pages and i
didn't bother keeping a local copy.
Not sure how to do that, but will look into it. Thanks.

depending on the visitors cache settings the browser sends a "if
modified since" header when asking for a page again. compare the date
sent with the date last modified of your file. if they're the same
return a 304 and exit.
After hovering over the top left thumbs, the background image comes over the
top of them (Moz 1.3, Win 2k). Screenshot at
http://www.clarkecomputers.com.au/usenet/butterflies.jpg (20k)

a) put up with it
b) turn css off
c) upgrade
 
M

Mark Parnell

brucie said:
c) upgrade

Fair enough. Jacqui (or Pete) said it works in a later version, so will
upgrade at some point. Have been meaning to anyway. Just thought I'd let
you know :)
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top