Oh...!, OK, finally...!
Thread Title edited into:
"Problem to extract HTML value - FF:56 Imacros:8970419"
But, hum-hum, yeah..., a mini-little bit better than your original Thread Title but still not quite very Explanatory..., the one I had suggested ("Extracting Attribute from a 'RADIO' Element.") was better...
FCI doesn't belong to a Thread Title, unless your Pb is very specific to only that FCI/Version, which is not the case, (and correct Spelling is "iMacros" btw), then we are left with ""Problem to extract HTML value" which again is pretty vague as absolutely all Threads about 'Data Extraction' are always related to extracting some HTML Value or Content...
But OK, don't worry, that's good enough...!
I need to "report" the Thread anyway to get it moved by the Forum Admin (I can't do it myself) to the 'Data Extraction' Sub-Forum where it belongs (and try to open directly your Thread(s) in the "correct" Sub-Forum next time (and the 'General' one is always OK if you are unsure)), I can ask them also to edit the Title at the same time...
>>>
Oh yeah..., and I had mentioned I would "simplify" your 'EVAL()' Statement... But hum, if you had searched the Forum also a bit, I've posted that Solution/Technique many-many times already...! (And that's also THE Reason why I'm "hassling" you to give a Descriptive and Precise Thread Title, for Users searching the Forum...!)
So if this one is working already...:
Code: Select all
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:/us/fabric/artins.asp ATTR=NAME:product_id EXTRACT=HTM
SET pkab EVAL("var s='{{!EXTRACT}}'; var x; x=s.split('stockage='); x[1];")
SET pkab EVAL("var s='{{pkab}}'; var x; x=s.split(' '); x[0];")
Then this one in just one 'EVAL()' should also work, I would think:
Code: Select all
TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:/us/fabric/artins.asp ATTR=NAME:product_id EXTRACT=HTM
SET pkab EVAL("var s='{{!EXTRACT}}'; var y,z; y=s.split('stockage='); z=y[1].split(' '); z[0];")
I always use 'z' for the Return Value, and I use 'w,x,y' if I need Temp-Vars to "slowly" build the whole Expression, in this Case only 1 Temp-Var is enough ('y'), and if you need to debug the 'EVAL()' (with 'PROMPT'), you can simply temporarily change the (final) Return Value from 'z' to any of the Temp-Vars to already check that each Var returns the Result that you expect...
- (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...