Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22604

Re: How to I write if I want to use the passed caseID instead of the static number 999

From Joao Rodrigues <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: How to I write if I want to use the passed caseID instead of the static number 999
Date 2014-01-13 18:19 -0200
Organization Aioe.org NNTP Server
Message-ID <lb1hp9$r6v$1@speranza.aioe.org> (permalink)
References <lb0ldf$83j$1@dont-email.me> <lb0oib$k2a$2@dont-email.me>

Show all headers | View raw


On 13/01/2014 11:09, Denis McMahon wrote:
> On Mon, 13 Jan 2014 13:15:18 +0100, Tony Johansson wrote:
>
>> When I use the static literal 999 it works but I must use the passed
>> parameter caseID instead when I create a query string
>>
>>   function CallServerForUpdate(caseID)
>>         {
>>           xmlRequest.open("GET",
>> "<%=Page.ResolveUrl("~/GoogleMapCallbackHandler.ashx?caseID=" + 999)%>",
>> true);
>>             xmlRequest.onreadystatechange = ApplyUpdate;
>>             xmlRequest.send(null);
>>         }
>
> I suspect that you're mixing up server side and client side code here.
>
> I don't know what uses <%= .... %> for server side code,

It looks like ASP.NET server side code.

> but I suspect
> you may want something more like:
>
> xmlRequest.open(
> "GET",
> "<%= Page.ResolveUrl("~/GoogleMapCallbackHandler.ashx" %>" + "?caseID=" +
> caseID,
> true);
>

ACK.

-- 
Joao Rodrigues (J.R.)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to I write if I want to use the passed caseID instead of the static number 999 "Tony Johansson" <johansson.andersson@telia.com> - 2014-01-13 13:15 +0100
  Re: How to I write if I want to use the passed caseID instead of the static number 999 Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-13 13:09 +0000
    Re: How to I write if I want to use the passed caseID instead of the static number 999 Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2014-01-13 18:19 -0200
  Re: How to I write if I want to use the passed caseID instead of the static number 999 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-13 14:10 +0100

csiph-web