document.cookie is undefined
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
document.cookie is undefined
"iMacros supports all of the features of JavaScript," yadda yadda yadda. NOT. A macro using document.cookie to store variables fails.
Re: document.cookie is undefined
In case it helps anyone ... If you try to use
document.cookie = ...
to set a cookie on the webpage in your browser window from within a .js iMacro, this does *not* work as you might hope.
The 'document' object when you are in the iMacro, is an XUL object *not* the HTML document in the browser window.
Attempting things like moving variable values between the webpage and the .js iMacro using cookies as storage will not work.
I'm subscribed to this thread, so please tell me if the above has mistakes or if there is a way of getting it to work!
I would also be interested to hear anyone else's tricks that do/don't work
Cheers.
document.cookie = ...
to set a cookie on the webpage in your browser window from within a .js iMacro, this does *not* work as you might hope.
The 'document' object when you are in the iMacro, is an XUL object *not* the HTML document in the browser window.
Attempting things like moving variable values between the webpage and the .js iMacro using cookies as storage will not work.
I'm subscribed to this thread, so please tell me if the above has mistakes or if there is a way of getting it to work!
I would also be interested to hear anyone else's tricks that do/don't work
Cheers.
Last edited by Puss on Thu May 14, 2009 5:32 pm, edited 2 times in total.
Re: document.cookie is undefined
I know that "document" in iMacros doesn't refer to the page, but I get your point and I'm going to restate the statement. When trying to use "document.cookie" in iMacros you receive a "document.cookie is undefined" error.
-
- Posts: 1
- Joined: Tue Aug 24, 2010 1:05 pm
Re: document.cookie is undefined
I know that this is a old topic but is there any fix for this yet(or workaround)?