Re: [Zope] Arguments in URLs with bookmarks

2001-01-19 Thread peter bengtson

I've always done it this way (fine on IE and NS nix):

http://www.mysite.com/x?arga=one&argb=two#gotohere
Now, tell me why that wouldn't work, if you've already tried that.

By the way, it is called "anchors" not "bookmarks". Bookmarks is in
weblanguage URLs stored in the webbrowser :)
Peter

- Original Message -
From: "Michael W. Homyack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 10:22 PM
Subject: [Zope] Arguments in URLs with bookmarks


> Hi,
>
> I've just run across something sort of odd...
>
> Let's say I have a DTML Document 'x' in my site, and I am going to link to
it with the following URL:
>
> http://www.mysite.com/x?arga=one&argb=two
>
> When Zope processes the URL, the query arguments arga and argb are stored
in the REQUEST object, and I can refer to them in DTML like this:
>
> 
>
>
> Now, let's say that I need to have the URL include a bookmark to a point
deeper in the page.  The URL now becomes:
>
> http://www.mysite.com/x#gotohere?arga=one&argb=two
>
>
> On RedHat, using Netscape 4.76, the query arguments get passed into the
REQUEST object properly.
>
> On Windows, using either IE 5.x or Netscape 6, the query arguments seem to
disappear entirely.  The same behavior is also apparent using Opera 4.0b4 on
RedHat.  Since the query arguments don't make it into the REQUEST object,
the dtml-var line above results in a KeyError.  Although I could protect
myself from the KeyError easily enough, what I really need is the values
passed in the URL.
>
> This is using Zope 2.2.4 running on RedHat Linux, BTW.
>
> Does anyone have an idea why adding the bookmark is causing Zope to fail
in parsing the URL?
> Is there an alternative syntax for the URL that will both pass the
arguments and goto the right point on the page?
>
> Thanks, Mike.
>
> --
> --  Michael W. Homyack
> --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  303.539.0045 --
720.560.8772
> --  "To make an apple pie from scratch, you must first invent the
universe"
> --  - Carl Sagan
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
>


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Arguments in URLs with bookmarks

2001-01-19 Thread Oleg Broytmann

On Thu, 18 Jan 2001, Michael W. Homyack wrote:
>   http://www.mysite.com/x#gotohere?arga=one&argb=two

   This is browser issue, not a Zope problem. Make the anchor in the end:

http://www.mysite.com/x?arga=one&argb=two#gotohere

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Arguments in URLs with bookmarks

2001-01-18 Thread Michael W. Homyack

Hi,

I've just run across something sort of odd...

Let's say I have a DTML Document 'x' in my site, and I am going to link to it with the 
following URL:

http://www.mysite.com/x?arga=one&argb=two

When Zope processes the URL, the query arguments arga and argb are stored in the 
REQUEST object, and I can refer to them in DTML like this:




Now, let's say that I need to have the URL include a bookmark to a point deeper in the 
page.  The URL now becomes:

http://www.mysite.com/x#gotohere?arga=one&argb=two


On RedHat, using Netscape 4.76, the query arguments get passed into the REQUEST object 
properly.

On Windows, using either IE 5.x or Netscape 6, the query arguments seem to disappear 
entirely.  The same behavior is also apparent using Opera 4.0b4 on RedHat.  Since the 
query arguments don't make it into the REQUEST object, the dtml-var line above results 
in a KeyError.  Although I could protect myself from the KeyError easily enough, what 
I really need is the values passed in the URL.

This is using Zope 2.2.4 running on RedHat Linux, BTW.

Does anyone have an idea why adding the bookmark is causing Zope to fail in parsing 
the URL?
Is there an alternative syntax for the URL that will both pass the arguments and goto 
the right point on the page?

Thanks, Mike.

-- 
--  Michael W. Homyack
--  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  303.539.0045 -- 720.560.8772
--  "To make an apple pie from scratch, you must first invent the universe"
--  - Carl Sagan

___
Zope maillist  -  [EMAIL PROTECTED]
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 )