document.cookie is undefined

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
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
Post Reply
Hello 71
Posts: 96
Joined: Mon Feb 18, 2008 12:06 am
Location: Toronto, ON, Canada

document.cookie is undefined

Post by Hello 71 » Sun Mar 29, 2009 9:55 pm

"iMacros supports all of the features of JavaScript," yadda yadda yadda. NOT. A macro using document.cookie to store variables fails.
Hello 71
Posts: 96
Joined: Mon Feb 18, 2008 12:06 am
Location: Toronto, ON, Canada

Re: document.cookie is undefined

Post by Hello 71 » Fri Apr 03, 2009 1:41 am

Bump.
Puss
Posts: 18
Joined: Fri May 08, 2009 2:32 pm

Re: document.cookie is undefined

Post by Puss » Mon May 11, 2009 4:38 pm

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.
Last edited by Puss on Thu May 14, 2009 5:32 pm, edited 2 times in total.
Hello 71
Posts: 96
Joined: Mon Feb 18, 2008 12:06 am
Location: Toronto, ON, Canada

Re: document.cookie is undefined

Post by Hello 71 » Tue May 12, 2009 7:55 pm

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.
jrosenhack
Posts: 1
Joined: Tue Aug 24, 2010 1:05 pm

Re: document.cookie is undefined

Post by jrosenhack » Tue Aug 24, 2010 1:08 pm

I know that this is a old topic but is there any fix for this yet(or workaround)?
Post Reply