I have a strange problem: when I write : <A HREF="www.altavista.fr">altavista</A> in my zope index_html method, the link is printed, but try to reference to : http://localhost:8080/www.altavista.com so, of course, the URL is not valid! isn't it possible to force zope to create a link to http://www.altavista.com instead of http://localhost:8080/www.altavista.com??? I suppose it is easy to do, but I don't find how! Thanks!!
On Wed, 12 Apr 2000, Pierre Rougier wrote:
<A HREF="www.altavista.fr">altavista</A> in my zope index_html method,
<A HREF="http://www.altavista.fr">altavista</A> Oleg. ---- Oleg Broytmann http://members.xoom.com/phd2.1/ phd2@earthling.net Programmers don't die, they just GOSUB without RETURN.
Well yeah, try: <A HREF="http://www.altavista.fr">altavista</A> This is an HTML/Browser thing and has nothing to do with Zope. Chris
on Wednesday, April 12, 2000 Pierre Rougier wrote : PR> I have a strange problem: PR> when I write : PR> <A HREF="www.altavista.fr">altavista</A> in my zope index_html method, PR> the link is printed, but try to reference to : PR> http://localhost:8080/www.altavista.com PR> so, of course, the URL is not valid! PR> isn't it possible to force zope to create a link to PR> http://www.altavista.com PR> instead of PR> http://localhost:8080/www.altavista.com??? PR> I suppose it is easy to do, but I don't find how! PR> Thanks!! This has nothing to do with Zope, but with your browser's reading of links.. Perfectly normal behaviour... just write : <A HREF="http://www.altavista.fr">altavista</A> just as you would in any other non-zope-site.. zope doesn't touch your HTML and links are interpreted in your browser, not on the server.. -- Geir Bækholt Hansen web-developer/designer geirh@funcom.com http://www.funcom.com
Yeah, how about putting http:// in your A HREF, like so: <A HREF="http://www.altavista.fr">altavista</A> This btw doesn't have anything to do with zope but is basic html, really... On Wed, 12 Apr 2000, Pierre Rougier wrote:
I have a strange problem: when I write : <A HREF="www.altavista.fr">altavista</A> in my zope index_html method, the link is printed, but try to reference to : http://localhost:8080/www.altavista.com
so, of course, the URL is not valid!
isn't it possible to force zope to create a link to http://www.altavista.com instead of http://localhost:8080/www.altavista.com???
I suppose it is easy to do, but I don't find how!
Thanks!!
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- "Kif, if there's one thing I don't need it's your 'I don't think that's wise' attitude." --- Zap Brannigan
Pierre Rougier wrote:
I have a strange problem: when I write : <A HREF="www.altavista.fr">altavista</A> in my zope index_html method, the link is printed, but try to reference to : http://localhost:8080/www.altavista.com
so, of course, the URL is not valid!
Yes, this is because you typed in a relative URL. This is simply bad HTML, not a bug in Zope. If you want to reference an off-site resource in an HTML anchor tag, you MUST specify 'http://machine/'. Simply putting the machine name in there will not do it for any platform. I would suggest checking out any one of a gazillion good books on HTML. -Michel
participants (6)
-
Chris Withers -
Geir B�kholt Hansen -
Michel Pelletier -
Nils Jeppe -
Oleg Broytmann -
Pierre Rougier