getParameter just returns null
Posted: Mon Dec 29, 2008 3:59 pm
Hi there!
I'd like to use getParameter, which seems to be a valid function of the applet, but it returns null when I call it.
I'm using document.clientupload_box.setParameter('ids','1,2,3') to have the applet send along these IDs when I upload files. But getParameter('ids') does return null after that.
The applet will still send the parameter to the server, but I need a way to check them and read them via getParameters.
The actual reason for all this is, that setParameter will fail if you call it immediately after toggeling the containing div from hidden to visible.
Imagine a DIV element that contains the applet, and which has style "display:none;".
If you do the following:
div.show();
document.clientupload_box.setParameter('ids','1,2,3')
the applet will NOT submit the above values to the server. If I call setParameter() manually after the div.show(), it will work fine.
Any ideas or suggestions about that? Any way to check if the applet is responsive and ready to process the setParameter() call?
Thanks in advance!
Chris
I'd like to use getParameter, which seems to be a valid function of the applet, but it returns null when I call it.
I'm using document.clientupload_box.setParameter('ids','1,2,3') to have the applet send along these IDs when I upload files. But getParameter('ids') does return null after that.
The applet will still send the parameter to the server, but I need a way to check them and read them via getParameters.
The actual reason for all this is, that setParameter will fail if you call it immediately after toggeling the containing div from hidden to visible.
Imagine a DIV element that contains the applet, and which has style "display:none;".
If you do the following:
div.show();
document.clientupload_box.setParameter('ids','1,2,3')
the applet will NOT submit the above values to the server. If I call setParameter() manually after the div.show(), it will work fine.
Any ideas or suggestions about that? Any way to check if the applet is responsive and ready to process the setParameter() call?
Thanks in advance!
Chris