RE: [Flashcoders] unescape function problem

2006-05-24 Thread Jim Robson
%25 is the URL code for the % sign. So Flash is correct; when you pass %25
in a URL-encoded string, you are in fact passing simply %. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
lakhanpal
Sent: Wednesday, May 24, 2006 6:18 AM
To: Flashcoders mailing list
Subject: [Flashcoders] unescape function problem

Hi,

I am trying to pass url Encoded values to Flash through querystring.
Everything is working fine when i unescape the passed value.
But when i pass % sign for which url encoded value is %25. When i get value
in Flash it's showing me % only, not %25. Can there be any reason for it?
because for rest all values it's passing correct value.

Thanks,
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] unescape function problem

2006-05-24 Thread Vivek lakhanpal

Actually if i try to pass to pass ' as %27 it pass it as it is and i have to
unescape it to get ' value. But if i pass %25 it shows me % that's what is a
bit confusing. Infect for rest all values i.e. all special characters i have
to use unescape function to get url.encoded values back to normal string.

Thanks
Vivek

On 5/24/06, Jim Robson [EMAIL PROTECTED] wrote:


%25 is the URL code for the % sign. So Flash is correct; when you pass %25
in a URL-encoded string, you are in fact passing simply %.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
lakhanpal
Sent: Wednesday, May 24, 2006 6:18 AM
To: Flashcoders mailing list
Subject: [Flashcoders] unescape function problem

Hi,

I am trying to pass url Encoded values to Flash through querystring.
Everything is working fine when i unescape the passed value.
But when i pass % sign for which url encoded value is %25. When i get
value
in Flash it's showing me % only, not %25. Can there be any reason for it?
because for rest all values it's passing correct value.

Thanks,
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] unescape function problem

2006-05-24 Thread Jim Robson
OK, I misunderstood your first post - sorry about that. 

I've never had to use an unescape function in Flash. Whenever I've passed a
URL-encoded string, it just worked. Sorry I can't help.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
lakhanpal
Sent: Wednesday, May 24, 2006 6:52 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] unescape function problem

Actually if i try to pass to pass ' as %27 it pass it as it is and i have to
unescape it to get ' value. But if i pass %25 it shows me % that's what is a
bit confusing. Infect for rest all values i.e. all special characters i have
to use unescape function to get url.encoded values back to normal string.

Thanks
Vivek

On 5/24/06, Jim Robson [EMAIL PROTECTED] wrote:

 %25 is the URL code for the % sign. So Flash is correct; when you pass %25
 in a URL-encoded string, you are in fact passing simply %.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Vivek
 lakhanpal
 Sent: Wednesday, May 24, 2006 6:18 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] unescape function problem

 Hi,

 I am trying to pass url Encoded values to Flash through querystring.
 Everything is working fine when i unescape the passed value.
 But when i pass % sign for which url encoded value is %25. When i get
 value
 in Flash it's showing me % only, not %25. Can there be any reason for it?
 because for rest all values it's passing correct value.

 Thanks,
 Vivek
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] unescape function problem

2006-05-24 Thread Vivek lakhanpal

actually i also never had to use it because i never encoded the querystring.
But this time i got a real scenario in which user was trying to pass ab
where  is the seperator for name-value pair in querystring so i had to
shift to url encode method.
Which in turn led me to ' problem. :(

Anyway thanks for replying.
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] unescape function problem

2006-05-24 Thread Jim Robson
Users cause a lot of trouble, don't they? :-)

Is it necessary to allow users to use the  character? If possible, you
could modify the UI so that it doesn't accept characters that cause problems
in the code. 

Another possible solution is to modify the UI so that it replaces problem
characters with substitutes for purposes of transmission. Then the code on
the receiving end would reverse the process. For example, if a user types in
, you could programmatically replace it with some unlikely string such as
~` before sending it. Then, on the receiving side, you would
programmatically replace any instance of ~` with . 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
lakhanpal
Sent: Wednesday, May 24, 2006 7:15 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] unescape function problem

actually i also never had to use it because i never encoded the querystring.
But this time i got a real scenario in which user was trying to pass ab
where  is the seperator for name-value pair in querystring so i had to
shift to url encode method.
Which in turn led me to ' problem. :(

Anyway thanks for replying.
Vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] unescape function problem

2006-05-24 Thread Vivek lakhanpal

Yea you are very right :). Although i have sort out that problem for time
being saying that no one is going to sue % in his name. It was actually a
full name or company name so sometimes user can say ABC  XYZ or sometime
they can write ABC's company etc.

I was wondering if this is a problem in reality or am i missing something at
coding end.

Thanks
vivek
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com