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


Groups > comp.lang.javascript > #22601

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

Message-ID <3052564.tgVFKOa1l7@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-01-13 14:10 +0100
Subject Re: How to I write if I want to use the passed caseID instead of the static number 999
Newsgroups comp.lang.javascript
References <lb0ldf$83j$1@dont-email.me>

Show all headers | View raw


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);
>        }

If you look closer into the server-side code, you will find that the 
concatenation operation there is superfluous – and probably, as it is, 
error-prone.  This should quickly lead you to realize where and how you have 
to put the parameter identifier in the client-side code.  Inspecting the 
client-side code would also help.  You have been pointed to debugging tools 
already; use them.

Trying to have others do your homework is a Really Bad Idea.

<http://PointedEars.de/faq#posting>

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous 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