lanx wrote:Hi, I'm getting crazy trying to collect attributes, values and ids from any page using EVAL command.
This simple code works with no hassle while launched as a bookmarklet
Code: Select all
javascript:(function(){x=window.content.document.title;alert(x)})();
but...
Code: Select all
SET !VAR9 EVAL("var x=window.content.document.title;x")
... the same code inside a macro always lead to a
ReferenceError: window is not defined
Are there any limitations in EVAL interactions with document elements and their retrieval using javascript methods like
.querySelector() or
getElementById() ??
Hum, @lanx, I just saw you Online right now and I thought you were going to open some new Thread but nope..., ah-ah...!
But hum, I guess I was bored so I had a look at your last Threads, and hum-hum-hum..., I'm not too impressed...!
, they all lack you mentioning your FCI and they all lack some Follow-up from your Side to finish them a bit correctly with a Solution shared from your Side if you managed to solve them or a mini-Thanks for other (Advanced) Users who tried to help you...
This current Thread is a perfect BAD Example, grrr...!!!, FCI not mentioned (Reason very probably why I didn't react at that time, you got a bit "lucky" with @iimfun who's "nicer" than me...), while I would have a much simpler Solution to your Qt, nearly surprised you didn't find it (OK, just tested it (on iMacros for FF v8.8.2, PM v26.3.3 (=FF47), Win10-x64) and it works indeed...), or that @iimfun didn't post it, and if you found it, you should have posted it spontaneously to help other Users, but pfff, same thing actually for all few previous Threads from you I checked...
=> Could you improve a bit on "that" for this current Thread and all those previous Threads...?
This one is already nearly one year old, next time you'll be having a "real" Pb and could really use some Help from the Forum, I will first ask you to finish those Threads correctly, and you'll have to wait for the same amount of time before eventually bumping your Thread one year later for me to give you the/a Solution, oops...!
=> If I were you, I would take "proactive" Measures to avoid "that", just saying...
And yep, I'm being ironic with "proactive"..., I shouldn't have to ask...
But OK, ignore my Post if you get offended (not my Intention, I mean it well, just trying to make all Threads useful with a Solution for other Users searching the Forum...), but I had a very simple Solution for you for this current Thread, that you would have gotten as soon as I had noticed your Thread at that time when you had opened it...
But sorry, I only help Users using the Forum a bit "correctly"..., and [FCI mentioned + neat Follow-up + Sharing their Solution (for all their Threads of course...!)] are a few of my "Criteria"...
I am sometimes a bit "flexible" for first-time-posters on the Forum, but joined the Forum 7 years ago, that doesn't apply to you anymore, ah-ah...! You should have had the time at least to read the Forum Rules I would think..., and Follow-up is a matter of "Etiquette"...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...