Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ASP Javascript string splitting

Name: Anonymous 2009-03-18 9:04

Does anyone know why this doesn't work:

<%@Language="JScript"%>
<html><body><%

var AL = Request.ServerVariables("http_accept_language");
var ALA = AL.split(",");

%></body></html>


It fails on the line with the split method with error Microsoft JScript runtime (0x800A01B6) Object doesn't support this property or method, but I don't see why.

Name: Anonymous 2009-03-18 9:48

On reflection, you probably meant Request.ServerVariables["http_accept_language"] or something like that.

Request.ServerVariables("http_accept_language") is pig disgusting VBScript syntax.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List