Thread: [Htmlparser-user] FrameTag : no "setFrameLocation" method ?
Brought to you by:
derrickoswald
From: Elodie T. <et...@in...> - 2003-02-07 07:22:26
|
Hi, I noticed that some of the Tag classes have a method that permit to modify (or I guess they do) the "source" attribute (like href or src). These methods are, for example : setBaseURL, setImageURL, setLink... It seems perfect to me, as I have to modify all relative path in a html... but I can't find method that set source location in a frame tag, nor in an input tag (when type=image). What can I do ? Would it be too complex for me if I tried to add such a method in the HTMLFrameTag class ? And for the InputTag class ? Regards, Elodie |
From: Somik R. <so...@ya...> - 2003-02-07 19:26:48
|
I thought I had already replied to this - my question to you is - why do you want to change the frame location ? If you can answer this convincingly, the next release of the parser will contain this feature. Regards, Somik --- Elodie Tasia <et...@in...> wrote: > Hi, > > I noticed that some of the Tag classes have a method > that permit to modify (or I guess they do) the > "source" attribute (like href or src). These methods > are, for example : setBaseURL, setImageURL, > setLink... > > It seems perfect to me, as I have to modify all > relative path in a html... but I can't find method > that set source location in a frame tag, nor in an > input tag (when type=image). > > What can I do ? Would it be too complex for me if I > tried to add such a method in the HTMLFrameTag class > ? > > And for the InputTag class ? > > Regards, > Elodie > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Elodie T. <et...@in...> - 2003-02-10 07:17:59
|
> I thought I had already replied to this - my question > to you is - why do you want to change the frame > location ? I already answered, too, when you asked me to give a scenario. In my case, I work in a portal where you can import any kind of files. The filesystem is so that the "logical paths" are different from the "physical paths" : for example, /my_html_files/index.html is in "real" /rep1024/fic1035.html. So, when you want to visualize HTML files from this portal, the 'href' ans 'src' paths aren't valid anymore, so I must take them all, "translate" them and replace them. And when you use a frame, the src attribute can be to a relative path, so I need to modify it too. > If you can answer this convincingly, the > next release of the parser will contain this feature. I hope I answered convincingly enough ! ;o) > Regards, > Somik Best regards, Elodie |
From: Somik R. <so...@ya...> - 2003-02-11 05:03:07
|
> I already answered, too, when you asked me to give a scenario. Sorry, I seem to have missed your earlier mail.. > In my case, I work in a portal where you can import any kind of files. > The filesystem is so that the "logical paths" are different from the "physical paths" : for example, /my_html_files/index.html is in "real" /rep1024/fic1035.html. > So, when you want to visualize HTML files from this portal, the 'href' ans 'src' paths aren't valid anymore, so I must take them all, "translate" them and replace them. Yes of course- thats why you are allowed to modify urls and image locations. But of what benefit would it be to remap the form url - bcos you'd need a real server serving your requests - unless you have local server to map to.. I am curious about your scenario for form location modification. > And when you use a frame, the src attribute can be to a relative path, so I need to modify it too. Yes, I agree this should be allowed. Regards, Somik |
From: Elodie T. <et...@in...> - 2003-02-11 07:14:38
|
> > Yes of course- thats why you are allowed to modify urls and image locations. > But of what benefit would it be to remap the form url - bcos you'd need a > real server serving your requests - unless you have local server to map to.. > I am curious about your scenario for form location modification. But... I just said I want to modify the <frame> location, not the form ! I just think there can be a problem when you have an <input> with type=image, because this can be treated as an <img> tag (with a relative path)... > > > And when you use a frame, the src attribute can be to a relative path, so > I need to modify it too. > > Yes, I agree this should be allowed. > > Regards, > Somik Regards, Elodie |
From: Somik R. <so...@ya...> - 2003-02-12 06:39:54
|
> But... I just said I want to modify the <frame> location, not the form ! I just think there can be a problem when you have an <input> with type=image, because this can be treated as an <img> tag (with a relative path)... Sorry bout that.. for some strange reason, I read that as form tag! We'll ship with this change very soon. Regards, Somik |