Re: ASP Ad Rotator Component
by Andrej Kostresevic <temporalassassin(at)yahoo.com>
|
Date: |
Mon, 7 May 2001 12:19:57 -0700 (PDT) |
To: |
jenniferwynell <jennw(at)jenniferwynell.com>, HWG Languages <hwg-languages(at)hwg.org> |
In-Reply-To: |
jenniferwynell |
|
todo: View
Thread,
Original
|
|
Are you doing a Server.URLEncode on the URL before you place in the
querystring?
Try to do a response.write on the url instead of redirecting and see if
the right url string gets passed to the page.
Andrej
--- jenniferwynell <jennw(at)jenniferwynell.com> wrote:
> Ok, here's the update...
>
> Now the images show up.. (apparently I had the relative image urls
> relative to the
> wrong file).
>
> As for the redirecting to the URL... Something isn't right. I tried
> differen't
> urls... some relative, some absolute. I even tried just putting in an
> absolute URL
> for a site that is completely seperate from mine just to see if maybe
> somehow I was
> typing in the wrong url as I am using the PWS on my computer and am not
> real
> familiar with it yet. Even typing in something like
> http://www.4guysfromrolla.com/
> does not work. It just keeps telling me the page cannot be found. Could
> it be the
> redirect file? This is all it is...
>
> <% Response.Redirect(Request.QueryString("url")) %>
>
> Am I missing something or could it possibly be the PWS? I have no other
> way to test
> this, so I don't know if it's the server or if it's the code.
>
> TIA,
>
> Jennifer
>
>
>
>
>
> jenniferwynell wrote:
>
> > Hello All,
> >
> > I am attempting to use the Ad Rotator in a site I am currently working
> > on. I am so new at programming, about all the farther I am is owning a
> > couple books, so please bear with me.
> >
> > Instead of using this to component rotate ads, my client wants photo
> > thumbnails rotated so that when clicked on, will go to an HTML page
> with
> >
> > a larger version of the photo, the photographers name etc...
> >
> > In my rotator schedule file let's say it starts out something like
> > this...
> > ---------------------------
> > Redirect Redirect.asp
> > Width 100
> > Height 44
> > Border 0
> > *
> > my_picture_1.jpg
> > my_page_1.html
> > Photo Thumbnail
> > 10
> > my_picture_2.jpg
> > my_picture_3.html
> > Photo Thumbnail
> > 10
> > -----------------------------
> >
> > All of the images as well as the coordinating HTML pages are in the
> same
> >
> > folder along with this schedule file. It is my understandting that
> the
> > image can either be a relative link or an absolute link. Does the URL
> > have to be absolute, or can it be relative as well?
> >
> > Within the display page, five pictures will be shown each time the
> page
> > is called. Here is my current code for that:
> >
>
--------------------------------------------------------------------------------
> >
> > <td valign="middle" align="center">
> > <%
> > Dim objAR
> > Set objAR = Server.CreateObject("MSWC.AdRotator")
> > Response.Write
> > (objAR.GetAdvertisement("../images/thumbnails/AdRotatorSchedule.txt"))
> > %>
> > </td>
> > <td align="center" valign="middle">
> > <%
> >
> > Response.Write
> > (objAR.GetAdvertisement("../images/thumbnails/AdRotatorSchedule.txt"))
> > %>
> > </td>
> > <td align="center" valign="middle">
> > <%
> >
> > Response.Write
> > (objAR.GetAdvertisement("../images/thumbnails/AdRotatorSchedule.txt"))
> > %>
> > </td>
> > <td align="center" valign="middle">
> > <%
> >
> > Response.Write
> > (objAR.GetAdvertisement("../images/thumbnails/AdRotatorSchedule.txt"))
> > %>
> > </td>
> > <td align="center" valign="middle">
> > <%
> >
> > Response.Write
> > (objAR.GetAdvertisement("../images/thumbnails/AdRotatorSchedule.txt"))
> > Set objAR = Nothing
> > %>
> > </td>
> >
>
--------------------------------------------------------------------------------
> >
> > My next question is, if the URL that the user will be directed to
> after
> > clicking on the image can be a relative url, then what am I missing?
> As
> >
> > far as I can tell, it is working, as the the Alternate Text shows
> up...
> > But the images do not show up, and when clicked on, it says the page
> > cannot be found. They are all in the same directory with the file.
> > And, from what I can tell, the images are rotating, but images do not
> > show up, just text.
> >
> > Please help, I'm lost.
> >
> > Jennifer
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA