Re: Variable
- From: "Hermione" <Hermione@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 11:45:05 -0700
Hello Mike
In my page I have a menu in the left and a French bottom on the left (all my
pages are ASP)
I want if the user is on the english page and he click on the link Cats and
after he wants to change to the french site he'll click on the French and
Cats_FR.asp will be loaded
Thanks
"MD Websunlimited" a écrit :
> What do you wish to do with the variable?
>
> In JavaScript
>
> <a href="javascript: void(0);" onclick="animal = 'cat'" ><img src="cat.jpg" ></a>
>
> To use the selected value in ASP
>
> <a href="" onclick="this.href='amimal.asp?animal=cat'; return true;" ><img src="cat.jpg" ></a>
>
> The latter calls a ASP page animal.asp passing a query string. To access the type of animal in animal.asp
>
> dim animal
>
> animal = request.form("animal")
> if len(animal) = 0 then
> animal = request.querystring("animal")
> if len(animal) = 0 then
> response.redirect "sysErr.asp?err=" & server.URLEncode("No animals were selected!")
> end if
> end if
>
> ' do something with an animal.
>
> --
> Mike -- FrontPage MVP '97 - '02
> http://www.websunlimited.com
> FrontPage Add-ins Summer Promotion -
> FREE Purchase J-Bots Plus 2004 & receive Meta Tag Maker 2004 a $24.95 value FREE
>
>
> "Hermione" <Hermione@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AFF5F74E-9EA9-46E9-B80F-797FE00D9989@xxxxxxxxxxxxxxxx
> > Hello
> >
> > I want to add a variable to my web page
> >
> > When the user click on the link : CATS ---> CAT will be assigned to a
> > variable
> > When the user click on the link : DOGS ---> DOG will be assigned to a
> > variable
> >
> > After in my web page I have to use this variable.
> >
> > href = "Animale?A=" ???
> >
> > I tried to made the follwing
> >
> > <a img name ="CAT1" href ="/CAT1" onclick="AfficheA(This)" <%Anim="CAT"%>>
> >
> > But it didn't work
> >
> > is it possible to do? can I declare a Javascript or ASP variable, assign a
> > value every time the user click on the link and use it after on my link
> >
> > thanks
> >
>
>
>
.
- Follow-Ups:
- Re: Variable
- From: Stefan B Rusynko
- Re: Variable
- References:
- Variable
- From: Hermione
- Re: Variable
- From: MD Websunlimited
- Variable
- Prev by Date: Going in circles with 2 errors
- Next by Date: Upgrade from IIS 4.0 to IIS 6.0 Changed FrontPage actions.
- Previous by thread: Re: Variable
- Next by thread: Re: Variable
- Index(es):
Relevant Pages
|