page.asp?u=http://www.imdb.com/title/tt0200465
I'm just trying to strip the end of this QueryString to get tt0200465
<% @Language="javascript" %>
<script language="javascript" runat="server">
if(Request.QueryString("u").Count > 0){
var imdbUrl = Request.QueryString("u").ToString();
var imdbLink = imdbUrl.split('/title/')[1];
Response.Write(imdbLink);
}
</script>
gives me:
Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method
I've read places QueryStrings are read only? but i'm trying to change it to a string that I can work with... thanks
I'm just trying to strip the end of this QueryString to get tt0200465
<% @Language="javascript" %>
<script language="javascript" runat="server">
if(Request.QueryString("u").Count > 0){
var imdbUrl = Request.QueryString("u").ToString();
var imdbLink = imdbUrl.split('/title/')[1];
Response.Write(imdbLink);
}
</script>
gives me:
Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method
I've read places QueryStrings are read only? but i'm trying to change it to a string that I can work with... thanks