Versimedia
Joined: 07 Jun 2007
Posts: 2
|
Posted: Wed Jun 13, 2007 1:29 pm Post subject: A bunch of suggestions... |
|
|
The toolbar has been working great but there are some very easy things that could be added that would dramatically reduce coding time for developers:
* When using the "Launch" javascript option, please pass an ID name of the button or menu item that was pressed into the script ... such as:
function Launch (tool,buttonID)
Right now if I have 10 buttons that all do the same thing (except maybe go to a different URL based upon which button is pressed), I need to have 10 different copies of the same script. Whenever I change one script I have to copy it over and over to keep it updated. If you added the extra parameter above, we would only have to do it once.
* Add a "#include" inside a javascript file so we can reuse code in multiple places... for example if there is a special javascript function that we reuse on all buttons, this way we don't have to copy the same function over and over into different javascripts.
* An easy way to either A) be able to disable caching on a link when a redirect is called, or B) add a %RANDOM variable we can put into URLs we redirect to like:
http://www.mysite.com/script.cgi?rand=%RANDOM&name=Joe
%RANDOM would be replaced with Math.random() or some similar random value. Right now we have to change to javascript and build up the URL redirection that way which takes a lot of time.
(I was able to use %Var9 as a random value by having it change in the DocumentComplete javascript code but that only changes everytime a new page loads which is not complete enough to work properly).
* A javascript command to close a bubble window... I have a button that opens a bubble and want to have a "Close" link on that page... I need a way in javascript to tell the bubble to close itself.
* A way to do URL encoding(?) using the javascript "escape" option for example -- I don't know if you currently do this for things like %url
For example if I have a redirect:
http://www.site.com/script.cgi?url=%url
I don't think it is currently being "escaped" so that parameters in the URL are causing confusion in the www.site.com script.
%url should be run through escape(%url) first...
-John |
|