Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP Coding Help - Load Image Through URL Variable
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kong
Junior Member

100 Posts

Posted - 24 March 2002 :  04:50:37  Show Profile
I'm attempting to load an image through some sort of url variable.

Incase you are unsure what I mean, the URL for the Code Support: ASP (Non-Forum Related) Forum is http://forum.snitz.com/forum/forum.asp?FORUM_ID=6.

I'm trying, unsuccessfully, to set up a page where I can use the url pictures.asp?image=pic23.jpg and the pictures.asp file loads and in the place of the picture loads the image specified, in this case pic23.jpg.

I've looked all over and can't find any info to help me out. I'm sure I'm probably missing something basic cause this method is used all over the place where ever asp is used.

Can anyone help me out?

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.

Edited by - Kong on 24 March 2002 04:53:18

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 March 2002 :  04:54:37  Show Profile  Visit Nathan's Homepage
<img src="<%=request("image")%>">

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's


Edited by - Nathan on 24 March 2002 04:56:10
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 24 March 2002 :  05:50:58  Show Profile
Thanks for the help.

Now... there's one last thing that I need to do.

How difficult do you think it would be to write a script, asp or javascript, to display a specific line of text under the images as a description of the image.

I may be able to do it in javascript but would rather use asp and I'm still learning asp.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 March 2002 :  12:09:35  Show Profile  Visit Nathan's Homepage
You could just store them in a database table, then you could reference pictures by ID.

Picture ID | Picture Filename | Picture Discription

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 24 March 2002 :  15:02:25  Show Profile
Do you think it would be possible to create a text file and read only specific lines from it?

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 March 2002 :  17:54:36  Show Profile  Visit Nathan's Homepage
Possible, but more pleasant to work with a database table.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 24 March 2002 :  18:01:55  Show Profile
How would I set up a database table?

Remember, I'm new at this.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 24 March 2002 :  18:08:38  Show Profile
If you use Access and can do it offline, you can simply open the database in Access and create a new table (Insert > Table). Then choose Design View in the little dialog box and set the appropriate fields.
As nathan said: Picture_ID, Picture_URL and Picture_Description should do the trick.
Then in inc_top.asp you could call the ID of the picture with the URL and Description from the database all depending on which category/forum you're in. The description could be used as an Alt text for example.

If you want more text underneath the image, simply add another field (Picture_Text for example) and then call that from the database too.

Nathan can probably explain it a bit better as he's more familiar with database stuff than I am



http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 March 2002 :  18:58:16  Show Profile  Visit Nathan's Homepage
If you dont have MS Access then you can use the snitz DBS system to set up an image table in your forum database.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Kong
Junior Member

100 Posts

Posted - 25 March 2002 :  03:49:11  Show Profile
I'm really at a lose for all of this... I'm not even sure where to begin and I think it's all gonna end up being too complicated.

I'm just gonna attempt to write a script, javascript or asp, that will display specific text for what ever image is equal to.

If I have any more problems I'll be sure to check back and see if anyone can help.

_________________________
Come on by and visit Deth Incarnate.
Growing slowly, but growing none the less.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07