[Zope] Very long URLs
Peter Bengtsson
mail@peterbe.com
Tue, 3 Jul 2001 16:56:49 +0200
There is no good way of doing it.
You can use JavaScript and achive exactly the effect you want.
But please, *do not take this seriously* if the website is public since
JavaScripts are dangerous and should only be used in controlled
environments. If the JavaScript for some reason doesn't work, people won't
be able to get to where they want to go!!
[Untested]
<form name="variables" method="post">
<input type="hidden" name="something" value="Something">
<input type="hidden" name="anything" value="Anything">
</form>
<script>
function submitform(what)
{
document.form['variables'].submit.value = what;
document.form['variables'].submit();
}
</script>
<a href="#" onClick="javascript:submitform('search.cgi')">Search</a>
[/Untested]
---------------
This should make the same effect as:
<a href="search.cgi?something=Something&anything=Anything">Search</a>
You can also use forms with POST. All you'll need is hidden tags and a
button.
If it's not the querystring parameters, you can do like I did on my site.
Go to someplace where the URL becomes to long to send in a ICQ message and
click "Short URL" in the menu :)
Peter
----- Original Message -----
From: <belen@netcom.no>
To: <zope@zope.org>
Sent: Tuesday, July 03, 2001 4:34 PM
Subject: [Zope] Very long URLs
> I have a problem I cannot find out how to sort it out. In my system I
> end up having very long urls. Due to the characteristics of our system
> many parameters are passed via links and the contents of those
> parameters are quite long by themselves.
>
> I try to make the target of my link get the parameters but without
> these parameters being part of the URL. So when I click on the link the
> values are available to the new accessed document.
>
> I have tried <dtml-var "myDTMLDocument(_.None, rg1=arg1,...,argn=argn)">
> But in the context of what I am doing I think it is not a valid way of
> doing it.
>
> <a href="<dtml-var "myDTMLDocument(_.None,
> arg1=arg1,...,argn=argn)">">SomeText</a>
>
>
> Any ideas?
> ThankYou
>
>
>
>
>
>
>
> _______________________________________________
> 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 )