Eval SetDate returning undefined

Discussions and Tech Support related to the iMacros Google Chrome extension.
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
arun.testing3
Posts: 5
Joined: Thu Oct 15, 2015 6:00 am

Eval SetDate returning undefined

Post by arun.testing3 » Sun Nov 26, 2017 6:35 pm

Hi,
I am generating tomorrows date via following simple code

Code: Select all

VERSION BUILD=844 RECORDER=CR
SET tomorowsdate EVAL("var d = new Date(); d.setDate(d.getDate()+1); d;")
URL GOTO=https://www.google.co.in/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:tsf ATTR=ID:lst-ib CONTENT={{tomorrowsdate}}
It is working fine in FF. but in Chrome it is giving "__undefined__"
Any idea of why this is happening?

Thanks,
./Arun
chivracq
Posts: 8625
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Eval SetDate returning undefined

Post by chivracq » Sun Nov 26, 2017 8:07 pm

arun.testing3 wrote:Hi,
I am generating tomorrows date via following simple code

Code: Select all

VERSION BUILD=844 RECORDER=CR
SET tomorowsdate EVAL("var d = new Date(); d.setDate(d.getDate()+1); d;")
URL GOTO=https://www.google.co.in/
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:tsf ATTR=ID:lst-ib CONTENT={{tomorrowsdate}}
It is working fine in FF. but in Chrome it is giving "__undefined__"
Any idea of why this is happening?

Thanks,
./Arun
FCIM...! :mrgreen:
=> iMacros for CR v8.4.4, CR61/62...?, OS...?

But yep, normal, check your Spelling, ah-ah...! :wink:
But hum, I don't know how you managed to get that mini-Script to work in FF, it would give "__undefined__" as well... :?
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
arun.testing3
Posts: 5
Joined: Thu Oct 15, 2015 6:00 am

Re: Eval SetDate returning undefined

Post by arun.testing3 » Mon Nov 27, 2017 2:37 am

My bad. It is happening because of the Typo. :lol:
Corrected and working fine.
Using "Variable not used" of IDE is making me lazy :roll:

Thanks a lot.
./Arun
Post Reply