Forum OpenACS Q&A: URL Encoding problem

Collapse
Posted by Kevin Crosbie on
Hi,

I was thinking of posting a bug on this, but thought I'd run it by
the group first.

page: /acs-workflow/admin/workflow
included template: /acs-workflow/admin/workflow/transition-panels-
table.tcl

When you go in and try to delete a panel, it throws up a javascript
confirm, where you can click ok.  Under IE, The next screen will
tell you:

You've supplied two values for 'workflow_key'.

Under Netscape it works.  For IE it seems to be a problem with URL
encoding and the confirm dialog.  If you edit your code and URL
encode it a second time(i.e. outside of export_vars -url), the link
will work.  However this will cause it to stop working in Netscape.

I'm not sure exactly what is causing the difference in
interpretations, but a messy fix would be to url encode it for the
dialog and reset it to what it was before if the browser is IE.

Personally I think that the delete confirmation should all be handled
in the task-panel-delete.tcl and the javascript confirm dialog should
be done away with(or is this ignoring a genuine problem).

Does anyone know about this already or can anyone with more
experience on the details think of a workaround/fix?

Cheers,

Kevin

Collapse
Posted by Tom Jackson on

You can temporarily point your form at http://zmbh.com/show-form/show-form.tcl to list what your browser is sending. Try it with each one and compare the differences. It should also show you what the POSTed data should look like.