dcsimg
Encoding Data in a URL
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   matthew_magliocca
Posted On:   Wednesday, November 29, 2006 05:35 PM

I need to be able to put a URL into a URL. Basically what I need to be able to do is send: http://Myapplication.com/Myapp#http://theotherURL.com/dir?parameters where # is the separation between my url and the url data I am trying to send I'm having to do it this way becasue due to some rather odd circumstances the only way to communicate with this particular client side app is via the URL itself. The idea is to be able to send the client app the URL you wish to examine, somewhat like a browser. Now all this functionality is built but sometimes it doesn't seem to work quite right For instance. I have been    More>>

I need to be able to put a URL into a URL. Basically what I need to be able to do is send:



http://Myapplication.com/Myapp#http://theotherURL.com/dir?parameters




where # is the separation between my url and the url data I am trying to send




I'm having to do it this way becasue due to some rather odd circumstances the only way to communicate with this particular client side app is via the URL itself.




The idea is to be able to send the client app the URL you wish to examine, somewhat like a browser.




Now all this functionality is built but sometimes it doesn't seem to work quite right




For instance. I have been encoding URLs.




If the url was www.aol.com?id=1500




I would change that to www.myhost.com#www.aol.com#id=1500 so that it will actually go to my clientside app first of all and carry the data with it




I append it with # signs because I was told that was how you communicate with the browser history object (was I wrong?)




When we reach my client side app I take my URL out leaving




www.aol.com#id=1500




and then convert the remaining # signs back to question marks. I know this is not a good way of doing this but can someone suggest a better way?



The issue is sometimes the URL seems to send me not to the page I want to look at. I go to the desired page FIRST and then it sends me off somewhere and comes back with an error page, usually a database exception.



I have to assume this is because the URL is saying something I am unaware of because of my editing. That it means soemthing like go here then go there which is not what I want it to say. Can anyone offer me some insight





My client side application is using the GWT packages (java code that turns into javascript)




Thank you very much

   <<Less
About | Sitemap | Contact