Eval SetDate returning undefined

Discussions and Tech Support related to the iMacros Google Chrome extension.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Eval SetDate returning undefined

by arun.testing3 on Sun Nov 26, 2017 11:35 am

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
arun.testing3
 
Posts: 5
Joined: Wed Oct 14, 2015 11:00 pm

Re: Eval SetDate returning undefined

by chivracq on Sun Nov 26, 2017 1: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)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6490
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Eval SetDate returning undefined

by arun.testing3 on Sun Nov 26, 2017 7:37 pm

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
arun.testing3
 
Posts: 5
Joined: Wed Oct 14, 2015 11:00 pm


Return to iMacros for Chrome

Who is online

Users browsing this forum: No registered users and 4 guests

-->