Language Detection
Is it possible to detect browser/system language with:
Server.CreateObject("MSWC.BrowserType") ?
~
Is it possible to detect browser/system language with:
Server.CreateObject("MSWC.BrowserType") ?
~
I'm going to go down this route of Cookie detection
<%
If Request.Querystring("Check") = "" Then
Session("cookietest") = "True"
Response.Redirect("cookietest.asp?Check=True")
Else
If Session("cookietest") Then
<!-- Execute code if enabled -->
Else
<!-- Execute code if disabled -->
End If
End If
%>
I’m a little worried, do you know how spiders work with regards to this sort of thing? My site gets some traffic due to it being spidered by the likes of google and I don’t want to loose that flow.
If I use this at the entry point of my site to redirect browsers with cookies turned off to a page telling them to turn them on will that stop the spiders?
I have just uploaded my website and it looks fine in IE, but awful in Mozilla. I need to load a different CSS file according to what browser a user has. Does anyone have any code that will detect browsers and versions?
View Replies View RelatedI have a piece of ASP code that I want to run differently if it is on my
development server.Basically, if it's on my server I just want it to do a few response.writes... If it's on another server I want it to send an email.Right now I have code to do both, but it's a pain to flip flop between them.
Is there a simple way to accomplish this?
For whatever reason, I want to get an email when my friends STATIC IP
ADDRESS clocks a visit on my site.
Will this work?: (Pretend his IP address is 80.112.144.244)
<%Session("IP")=Request.Servervariables("REMOTE_HOST")%>
<% if Session("IP")="80.112.144.244" then "Sendmail" else "Do nothing" end
if%>
Or
<% if Request.Servervariables("REMOTE_HOST")="80.112.144.244" then
"Sendmail" else "Do nothing" end if%>
I am running an asp script (form submitting to database). After the db entry I want to re-direct the users to one of 3 pages depending on which browser they are running ..
Internet Explorer, Netscape 4.7 or Netscape 6 or higher (since I am using embedded video feedback with CSS and dhtml....and all these brpwser handle things differently (ie. Netscape 6+ does not understand the <embed> tag or at least won't let me manipulate the video.) I can do it in javascript but how does one go about this in an asp script?
Is there a way to detect that my ASP is going to display in a frame? Everything I've found tells me how to test if the browswer is frame capable. I know HTTP_REFERER is a big hint but it isn't very authorative. I can do this easily in javascript but that is of little help while I'm still running on the server.
What I want to do is check to see if I am executing in my frame. If not then load the frame then execute. Everything I can think of to do is either too late or unreliable.
Does anyone have a good and simple Low/High bandwidth detection script that either redirects the user to a page based on their bandwidth or which sets a variable that can be used to turn on/off media and content?
View Replies View RelatedHow can I detect what browser type my users are using, currently with my asp
server variables I only detect Netscape and Mozilla as U, how can I get
specific information without having to use software that you must pay for?
I have an photo gallery, I want to create a button that opens a new window fixing the full size image snugley in it, which is easy.
But I want to get a script which detects the image size so i can use the variables to open the window.
What i want to not do is have to more options in the database with height and width in, and have to call them, although i'll do that if i have to, but i thought i would try something new.
I have a problem with displaying data from a database where text is written
in slovenian and in czech. The accents aren't displayed. What can I do to
display all the accents in Slovenian and Czech?
A word in the database: prijímání (f)
Displayed on my ASP page: prijímání (f) (the accent at r is missing)
My database is a Access-2000-database. All the accents are displayed in the
database.
I really want to build mine using classic ASP as this is the language my trusted friend has a talent for.This seems to make sense in the short term. However I worry about the lack of social networking sites built with ASP.
There must be reasons for this. So plan to recode using PHP and transport existing database across once I have earnt enough from the website to pay for the services of a qualified person.Is this plan sensible, should I stick with my friend and ASP OR should I code with PHP from the start?
I have built a couple using a little ASP code for example the 'include' comand. The server I am using obviously supports ASP but I want to move to another host but they dont support ASP.
What other language would be similar to ASP. The new hosting site supports cgi, php and ruby. I know nothing about any of these. I may want to be able to access a database in the future or add a message board to a site so the language needs to be a bit interactive.
I'm looking for the best solution, for example, I don't know if it's better to have all the text in the page in all languages and then select it with a querystring:
page.asp?lang=1
And in the code:
lang = CInt(Request.QueryString("lang"))
If lang = 1 Then
' xhtml for language 1
else
....
I don't consider this a good solution, it's a nightmare to update.Maybe storing text in a database? XML? I would like to hear your suggestions and opinions about best methods.
how to have multiple language asp pages? For example, you have a database driven website that you want customers around the world to use. How do you setup the asp pages so that it is easy to change the text based on where the user is
connecting from?
Since ASP server scripts use VBScript by default, does it mean it is
redundant to put the following in ASP page? Then when do we need to use
this? In client-side VBScript?
I was trying:
Code:
<!--#include file="lang/<%= Request.QueryString("lang") %>.asp"-->
But it doesn’t work.
I have learnt how to use some aspects of php. But have got a little stuck on databases. Are there some easy examples to follow from the internet on how to modify databases in asp?
Is asp very similar to php? In the sense that you can achieve the same things with it?
is there an online dictionary that I can use to learn asp? especially one that can be kept and stored offline(I am not on the internet at home)
I have no idea what would cause this because my system setting is set to English and all of my other programs that use the date and time are doing it in English but my ASP seems to be giving me the date in Italian
For example..
WeekDayName(WeekDay(Now())) = venerdě instead of Friday.
I have some dynamic pages like asp files and the data comes from database.
What I need is to display the page content to diffrent languages.
Suppose user selects Germany and the page content changes to german language.
What's the best way to toggle two different language on
the web site using asp. Some web sites seem to store
html links in database and call it on demand. Please
advise and show the best way to program it.
I want to make a website both in English and in French, I dont know how to design the database (same for both ) or different.
Can anyone of you suggest me how can i make a website for more then one language.
The two versions of the website will have both the graphics and contents different and there is a search option too.
How can i search an english database with a french keyword?
My set of .NET 2003 CDs has 2 .net cds; 1 prerequisite cd; plus msdn. I get to a certain point in the installation and it prompts me for the English Lanaguage CD and I don't know what this is. I bought the set from someone who didn't want them any more - did I not get one of the CDs?
View Replies View Relatedseems like alot of things in ASP VBSCRIPT dont have equals in ASP JAVASCRIPT. tryign to do a lowercase on a string
"101:121:212 ABCA"
so it becomes
"101:121:212 abca"
LCASE doesnt work , get error so i assume its not in the JScript version of ASP.
I want to watermark images already on the server, on the fly as they're being called. I've found some PHP scripts that do it but I need them in an ASP environment using either VBScript(preferred) or Javascript. Anyone have any ideas or suggestions?
View Replies View RelatedHow can i convert my site in to language. Just like http://www.Google.com
View Replies View RelatedI'm sort of trying to force my way through some manuals and w3schools trying to pick up asp. i'm farmiliar with PHP so i figure it will be a breeze there's just one general theory idea i don't understand. if ASP can be written with either javascript or vbscript. then is ASP just adding the <% %> tags around the code?
something like "Session.Timeout" or "response.write" this doesn't look like VBScript to me. are these elements of ASP, VBScript, or something else?
I hope you can understand my question.I'm sort of confused with the languages / where to look to find information because i dont know what to look for.
Can anyone tell me how i can access the value of a variable created in javaScript, within an ASP statement and vice-versa if poss??
View Replies View Relatedtext into the text box with shift+alt key.
A normal user is unaware of it. ifI upload pages into my remote domain. There how a person who has not installed arabic in his pc is able to enter arabic. now i think my concern will be more clear to u if u need some further assistance then don't hesitate to ask.
Iam working on a search that needs to fetch words from other languages for any given word entered in english. I use an access database to store the english words and its equalent words in other languages. For example:
When i search for chinese equalent of Invoice (or any other word), the retrieved result is?.
I see that ASP allows you to specify the scripting language of your
choice - including (if you get the COM object) PERL, REXX and more. That
seems pretty good, I think.
Out of the box, it supports VBScript and JScript.
The question is (and I know that personal preference will come into
this) what would you choose to use out of JScript and VBScript? Does one
actually have more capability than the other?
I am currently creating a multi-language site using ASP .NET and was wondering what people think the best way to do this. Keeping a session variable of the users's choice? Cookies?
View Replies View RelatedHow do you obtain the nationality of the person surfing to your site in regular ASP not ASP.NET? Windows CE's webserver supports HTTP 1.0. I intend to use Windows CE's webserver.
View Replies View Related