Re: Variable

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
> >
>
>
>
.



Relevant Pages

  • Re: What the H_ _ _ am I doing wrong????
    ... I'll do the querystring example for you but the hidden form field is just as easy. ... >the FRENCH or be able to Enter into BOTH ENGLISH and FRENCH ... >idea how to make that work for my code, especially in ASP. ... >> have to folow 2 textbox entries. ...
    (microsoft.public.inetserver.asp.general)
  • Boolean problem with IIS ASP
    ... My recent system is WinXp SP2 and IIS 5.1 using the french canadian language ... The IIS ASP interpreter translate the Boolean value True in his french ... equivalent Vrai, and the resulting string is not recognise by my Access ...
    (microsoft.public.inetserver.iis)
  • Re: VB component works correctly only in debug mode
    ... "J French" wrote: ... >>I call the method of this component from my asp page. ... When I debug throught ... >>works in debug mode and not other wise. ...
    (microsoft.public.vb.general.discussion)
  • Re: shdocvw.internetexplorer object help
    ... in my vb.net windows application (not ASP) ... But I was able to display a page. ... is in French, but even if you don't understand French you may be able ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: A selection changes on asp page with 6 dependent list boxes, when back
    ... javascript code doesn't get processed before the form is submitted. ... > submit form every time user selects something, but I expect my asp ... >> Microsoft GTSC Developer support for Middle East ... >> courses? ...
    (microsoft.public.dotnet.framework.aspnet)