A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: >> Reusing Pages <<

  1. #1
    Senior Member tiga's Avatar
    Join Date
    Jul 2001
    Location
    Brisbane, QLD, Australia.
    Posts
    163

    Smile

    This is really an ASP question but I suppose once I learn how to do it I will also be able to make it work fromm Flash also.

    Here Goes.

    I am using the following code to open a page and insert the graphic in it. The purpose of my execerise is so that I can use the same asp file for any image and just pass variable on. The problem is that I am pretty sure that I am doing something wrong but not sure what that is.

    <p><a href="test_image.asp?imageid=img_0597.jpg">Pic Image</a></p>

    This code below is in the page that the hyperlink is refering to.

    <img src="<% =imageid %>">

    Am I on the right track even ?

    Thanks Heaps.

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    252
    your code should be working find, but since you dont exactly tell us what the problem is i cant help you, but, the most obviouse is that the image might not exists where the page thinks it does ie: img_0597.jpg should be in the same folder as test_image.asp

    if not you either need to send the folder along:
    "images/test_image.asp?imageid=img_0597.jpg"
    (but the slash will cause trouble)

    or you need to assume that they will always be in the same folder:
    <img src="images/<%=imageid%>">

    Hope this helps



  3. #3
    Senior Member tiga's Avatar
    Join Date
    Jul 2001
    Location
    Brisbane, QLD, Australia.
    Posts
    163
    the problem that I had was that the image was not showing up. I muck with it a bit more in the morning.

    Thanks For your post.

  4. #4
    Senior Member tiga's Avatar
    Join Date
    Jul 2001
    Location
    Brisbane, QLD, Australia.
    Posts
    163
    I have made sure that all my pathing is OK and it seems to be but the image still does not show up.

    Do I need to have any of this code in a form or specify variables at all or should it work the way it is.

    When I check the image properties on in the browser screen it only shows the path to the file and not the filename hence the image does not show up.

    Thanks Heaps.

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    252

    Post

    nope doesnt need to be in a form, right click the page that the image is is (the text_image.asp page) and go properties, see if the ?imageid=... part is at the end of the url, if not then your hyperlink is not sending the variables along for some reason... i'm not sure why but... :lol:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center