|
|
|
Berdel, Brian
|
Some javascript/style in this post has been disabled (why?)
Sorry for the late response on this, but I was away on vacation and am
just getting caught up...thanks for the responses. I tried all methods below
and keep ending up with nothing returned...I submitted a ticket. Thanks again, -Brian -----Original Message----- You could try something like this... _____________________________________________________________ NameValueCollection parameters; if(Request.HttpMethod == "POST") parameters = Request.Form; else parameters = Request.QueryString; String mapName = GetParameter(parameters, "MAPNAME"); String session = GetParameter(parameters, "SESSION"); _____________________________________________________________ Where the GetParameter method looks like this: _____________________________________________________________ String GetParameter(NameValueCollection parameters, String name) { String strval = parameters[name]; if (null == strval) return ""; return strval.Trim(); } _____________________________________________________________ -----Original Message----- From: [hidden email]
[mailto:[hidden email]] On Behalf Of Jason Birch Sent: Thursday, November 20, 2008 3:55 PM To: Berdel, Brian; Mike Adair Cc: [hidden email] Subject: RE: [fusion-users] Paremeters in Query String? Fusion 1.1 I was actually been playing around in .Net a bit recently, though not for MapGuide. If the request has changed from GET to POST, then you'd want to access Request.Form [paramname] instead or, to support multiple versions at higher server cost, simply Request [paramname]. I think... Jason -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Berdel,
Brian Sent: Thursday, November 20, 2008 13:46 To: Mike Adair Cc: [hidden email] Subject: RE: [fusion-users] Paremeters in Query String? Fusion 1.1 Ok, thanks. It is .net code server from the task frame and it worked
in all previous versions. Brian -----Original Message----- From: Mike Adair [mailto:[hidden email]] Sent: Thursday, November 20, 2008 4:44 PM To: Berdel, Brian Cc: [hidden email] Subject: Re: [fusion-users] Paremeters in Query String? Fusion 1.1 Yes, you can report this as a bug, although I'm still not clear on
where you want to access this: is it in a PHP script on the server or from a Javascript function on the client? About the only change I can think that might have affected this is perhaps some calls to the server have changed between HTTP GET or POST. Mike Berdel, Brian wrote: > > I have been trying to get an answer on this for a while. I am
trying > to get request.querystring to get parameters such as mapname or > sessionID from the server side code and it returns nothing in > 1.1...Please see thread below from mapguide-users. Thanks. > > Any word on this? Should it be reported as a bug? > > -----Original Message----- > > From: [hidden email] > > [mailto:[hidden email]] On Behalf Of
Berdel, Brian > > Sent: Thursday, November 13, 2008 11:55 AM > > To: MapGuide Users Mail List > > Subject: RE: [mapguide-users] Request.QueryString Fusion 1.1 > > Hi Paul, > > Thanks for responding. I am using the task pane and using > > Request.Querystring("Session") Which use to return the
value if the > session id, now it is nothing...And all of the parameters come up empty. > > It does work in the regular > > Thanks, > > -Brian > > -----Original Message----- > > From: [hidden email] > > [mailto:[hidden email]] On Behalf Of Paul Spencer > > Sent: Wednesday, November 12, 2008 8:30 AM > > To: MapGuide Users Mail List > > Subject: Re: [mapguide-users] Request.QueryString Fusion 1.1 > > Hi Brian, sorry I was out of the mailing list loop for a few days
and > am just getting caught up - didn't mean to ignore you. > > If you are using Fusion 1.1 then there should have been no
substantial > > changes that would affect this and so it should still be
supported. > > If its not working then there is likely a bug. Can you describe a
bit > more what you are (not) seeing - it seems like you are using the TaskPane? > > Paul > > On 7-Nov-08, at 9:13 AM, Berdel, Brian wrote: > > > Thanks Jason, I will try that out. I was using server side
code and > > > this worked in all previous releases. Now the entire array is
empty > > > so I was wondering if one of the fusion developers could
chime in and > > > let me know if it is still supported, if it is a bug, or if
there is > > > another way to attain these server side... I really like the > > > new version it fixed a lot of other issues but my apps are
all based > > > on server side code retrieving these parameters. > > > > > > Brian > > > > > > From: [hidden email] > > [mailto:[hidden email] > > > ] On Behalf Of Jason Birch > > > Sent: Thursday, November 06, 2008 4:50 PM > > > To: MapGuide Users Mail List > > > Subject: RE: [mapguide-users] Request.QueryString Fusion 1.1 > > > > > > See if Fusion.queryParams contains what you want. > > > > > > On my map it is showing with properties for each of the
parameters, as > > > well as methods to iterate them, etc... This is just from
what I can > > > see in FireBug; not sure if there are any docs on it. > > > > > > Jason > > > > > > From: [hidden email] > > [mailto:[hidden email] > > > ] On Behalf OfBerdel, Brian > > > Sent: Thursday, November 06, 2008 12:32 > > > To: MapGuide Users Mail List > > > Subject: RE: [mapguide-users] Request.QueryString Fusion 1.1 > > > > > > Is this still supported? My parameter array returns none from > > > request.querystring. > > > > > > Thanks, > > > > > > Brian > > > > > > -- > > > > > > Hello all, > > > I was previously able to get parameters such as
mapname"MAPNAME" and > > > sessionID "SESSION" through request.querystring... > > > > > > Now I get nothing...Any thoughts? > > > > > > Thanks, > > > > > > Brian > > ------------------------------------------------------------------------ > > _______________________________________________ > fusion-users mailing list > http://lists.osgeo.org/mailman/listinfo/fusion-users > -- Michael Adair Senior Software Architect DM Solutions Group Inc. Office: (613) 565-5056 x26 http://www.dmsolutions.ca http://research.dmsolutions.ca _______________________________________________ fusion-users mailing list http://lists.osgeo.org/mailman/listinfo/fusion-users _______________________________________________ fusion-users mailing list http://lists.osgeo.org/mailman/listinfo/fusion-users _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Berdel, Brian
|
Some javascript/style in this post has been disabled (why?)
With Chris’s help we were able to resolve the issue, we updated
the ticket. Brian From:
[hidden email]
[mailto:[hidden email]] On Behalf Of Berdel, Brian Sorry for the late response on this, but I was away on
vacation and am just getting caught up...thanks for the responses. I
tried all methods below and keep ending up with nothing returned...I submitted
a ticket. Thanks again, -Brian -----Original Message----- You could try something like this... _____________________________________________________________ NameValueCollection parameters; if(Request.HttpMethod == "POST") parameters = Request.Form; else parameters = Request.QueryString; String mapName = GetParameter(parameters,
"MAPNAME"); String session = GetParameter(parameters,
"SESSION"); _____________________________________________________________ Where the GetParameter method looks like this: _____________________________________________________________ String GetParameter(NameValueCollection parameters,
String name) { String strval = parameters[name]; if (null == strval) return
""; return strval.Trim(); } _____________________________________________________________ -----Original Message----- From: [hidden email]
[mailto:[hidden email]] On Behalf Of Jason Birch Sent: Thursday, November 20, 2008 3:55 PM To: Berdel, Brian; Mike Adair Cc: [hidden email] Subject: RE: [fusion-users] Paremeters in Query String?
Fusion 1.1 I was actually been playing around in .Net a bit
recently, though not for MapGuide. If the request has changed from GET to POST, then you'd
want to access Request.Form [paramname] instead or, to support multiple
versions at higher server cost, simply Request [paramname]. I think... Jason -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf
Of Berdel, Brian Sent: Thursday, November 20, 2008 13:46 To: Mike Adair Cc: [hidden email] Subject: RE: [fusion-users] Paremeters in Query String?
Fusion 1.1 Ok, thanks. It is .net code server from the task
frame and it worked in all previous versions. Brian -----Original Message----- From: Mike Adair [mailto:[hidden email]] Sent: Thursday, November 20, 2008 4:44 PM To: Berdel, Brian Cc: [hidden email] Subject: Re: [fusion-users] Paremeters in Query String?
Fusion 1.1 Yes, you can report this as a bug, although I'm still not
clear on where you want to access this: is it in a PHP script on the
server or from a Javascript function on the client? About the only change
I can think that might have affected this is perhaps some calls to
the server have changed between HTTP GET or POST. Mike Berdel, Brian wrote: > > I have been trying to get an answer on this for a
while. I am trying > to get request.querystring to get parameters such as
mapname or > sessionID from the server side code and it returns
nothing in > 1.1...Please see thread below from mapguide-users.
Thanks. > > Any word on this? Should it be reported as a bug? > > -----Original Message----- > > From: [hidden email] > > [mailto:[hidden email]] On
Behalf Of Berdel, Brian > > Sent: Thursday, November 13, 2008 11:55 AM > > To: MapGuide Users Mail List > > Subject: RE: [mapguide-users] Request.QueryString
Fusion 1.1 > > Hi Paul, > > Thanks for responding. I am using the task pane and
using > > Request.Querystring("Session") Which use
to return the value if the > session id, now it is nothing...And all of the
parameters come up empty. > > It does work in the regular AJAX viewer in 2.0.2 > > Thanks, > > -Brian > > -----Original Message----- > > From: [hidden email] > > [mailto:[hidden email]] On
Behalf Of Paul Spencer > > Sent: Wednesday, November 12, 2008 8:30 AM > > To: MapGuide Users Mail List > > Subject: Re: [mapguide-users] Request.QueryString
Fusion 1.1 > > Hi Brian, sorry I was out of the mailing list loop
for a few days and > am just getting caught up - didn't mean to ignore
you. > > If you are using Fusion 1.1 then there should have
been no substantial > > changes that would affect this and so it should
still be supported. > > If its not working then there is likely a bug. Can
you describe a bit > more what you are (not) seeing - it seems like you
are using the TaskPane? > > Paul > > On 7-Nov-08, at 9:13 AM, Berdel, Brian wrote: > > > Thanks Jason, I will try that out. I was using
server side code and > > > this worked in all previous releases. Now the
entire array is empty > > > so I was wondering if one of the fusion
developers could chime in and > > > let me know if it is still supported, if it is
a bug, or if there is > > > another way to attain these server side... I
really like the > > > new version it fixed a lot of other issues but
my apps are all based > > > on server side code retrieving these
parameters. > > > > > > Brian > > > > > > From: [hidden email] > > [mailto:[hidden email] > > > ] On Behalf Of Jason Birch > > > Sent: Thursday, November 06, 2008 4:50 PM > > > To: MapGuide Users Mail List > > > Subject: RE: [mapguide-users]
Request.QueryString Fusion 1.1 > > > > > > See if Fusion.queryParams contains what you
want. > > > > > > On my map it is showing with properties for
each of the parameters, as > > > well as methods to iterate them, etc... This is
just from what I can > > > see in FireBug; not sure if there are any docs
on it. > > > > > > Jason > > > > > > From: [hidden email] > > [mailto:[hidden email] > > > ] On Behalf OfBerdel, Brian > > > Sent: Thursday, November 06, 2008 12:32 > > > To: MapGuide Users Mail List > > > Subject: RE: [mapguide-users]
Request.QueryString Fusion 1.1 > > > > > > Is this still supported? My parameter array
returns none from > > > request.querystring. > > > > > > Thanks, > > > > > > Brian > > > > > > -- > > > > > > Hello all, > > > I was previously able to get parameters such as
mapname"MAPNAME" and > > > sessionID "SESSION" through
request.querystring... > > > > > > Now I get nothing...Any thoughts? > > > > > > Thanks, > > > > > > Brian > > ------------------------------------------------------------------------ > > _______________________________________________ > fusion-users mailing list > http://lists.osgeo.org/mailman/listinfo/fusion-users > -- Michael Adair Senior Software Architect DM Solutions Group Inc. Office: (613) 565-5056 x26 http://www.dmsolutions.ca http://research.dmsolutions.ca _______________________________________________ fusion-users mailing list http://lists.osgeo.org/mailman/listinfo/fusion-users _______________________________________________ fusion-users mailing list http://lists.osgeo.org/mailman/listinfo/fusion-users _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |