hmmm how convenient! jaja thanks matt, will give it a shot tomorrow ;)
On 3/30/06, Matt Chotin <[EMAIL PROTECTED]> wrote: > We have a mx.utils.URLUtil class which you can use, it doesn't seem to > be showing up in the docs right now though. > > /** > * Converts a potentially relative URL to a full qualified URL. > * If the URL is not relative, it is just returned as is. > * If the URL starts with a slash, the host and port > * from the root URL are prepended. > * Otherwise, the host, port, and path are prepended. > * > * @param rootURL URL used to resolve url, if url is relative. > * > * @param url URL to convert. > * > * @return Fully qualified URL. > */ > public static function getFullURL(rootURL:String, url:String):String > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Aldo Bucchi > Sent: Wednesday, March 29, 2006 3:04 PM > To: [email protected] > Subject: [flexcoders] Flex2Beta2: resolving relative URIs > > Hi all, > > I need a class to resolve a uri from a baseURI and a relativeURI > > example > > resolveRelativeURI( base:String, relative:String ):String > > > base: http://www.foo.com/bla > relative: image.jpg > returns: http://www.foo.com/bla/image.jpg > > > base: http://www.foo.com/bla/blo/ > relative: ../../bar.html#fragment > returns: http://www.foo.com/bar.html#fragment > > base: http://www.foo.com/bla/blo/ > relative: /bar.html#fragment > returns: http://www.foo.com/bar.html#fragment > > etc. > > before coding it... is there something like this already in the api?? > lotta code to browse! > > Thanks, > Aldo > > -- > ::::: Aldo Bucchi ::::: > mobile (56) 8 429 8300 > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > -- ::::: Aldo Bucchi ::::: mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

