setRegular and setExtra not working
Posted: Sun Apr 17, 2011 11:28 pm
We need to change some sessionID based on what the user clicks or types on our upload page, where the applet is embeded.
We figured setExtra and setRegular are meant just for this purpose but we can't get it to work. Even though the parameter gets updated (we check it with javascript and getExtra to confirm it has indeed been updated) the applet starts the upload with the original values.
Example:
1. we define default cookie value in html page code (via paramX valueX)
2. the user fires some event wich updates cookie value via setExtra
3. we check value has been updated via getExtra: it has
4. when transfer is started applet sends default cookie value ignoring the update via setExtra
Any help for us? Is there other workaround for changing cookies based
on user input without refreshing page (which would negate any input user has made).
PD: we also tried sharing cookies with the browser via cookiesource:jse but is no good either, (aparently) the applet reads cookies when it loads instead of when the upload is triggered, so if we update a browser cookie after applet has loaded, it wouldn't know about it.
Thanks
We figured setExtra and setRegular are meant just for this purpose but we can't get it to work. Even though the parameter gets updated (we check it with javascript and getExtra to confirm it has indeed been updated) the applet starts the upload with the original values.
Example:
1. we define default cookie value in html page code (via paramX valueX)
2. the user fires some event wich updates cookie value via setExtra
3. we check value has been updated via getExtra: it has
4. when transfer is started applet sends default cookie value ignoring the update via setExtra
Any help for us? Is there other workaround for changing cookies based
on user input without refreshing page (which would negate any input user has made).
PD: we also tried sharing cookies with the browser via cookiesource:jse but is no good either, (aparently) the applet reads cookies when it loads instead of when the upload is triggered, so if we update a browser cookie after applet has loaded, it wouldn't know about it.
Thanks