import data + read & write

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
xxo04358
Posts: 1
Joined: Tue Jul 04, 2017 4:00 am

import data + read & write

Post by xxo04358 » Tue Jul 04, 2017 4:02 am

Hello,

I am a little familiar with javascript & php,

I am trying to load a data file (csv/txt) of ~10000 entries, and each line (row) includes multiple columns (/data) which will be used to put into a form, and write the result in a log file

for every row,
"add data" is clicked
the form on the page is filled and submitted
then and text on the page is extracted where it says "success" or "failed", if failed data is added to "failed.txt"
then back to the start => "add data" is clicked etc..

here is where I am stock,
if I tried loading the text file in javascript through "XMLHttpRequest" it says "XMLHttpRequest is not defined"
if I tried loading it in iim through "SET !DATASOURCE", I will have to do something with the data right away for all, as opposed to sending it back to javascript on each data so I can check if it says success or failed
then if get that fixed, I will need to write the failed ones to a text file (or somewhere)

any help is appreciated!
__________
cong ty giup viec nha, co so hút bể phốt
Last edited by xxo04358 on Wed Jul 12, 2017 8:28 pm, edited 1 time in total.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: import data + read & write

Post by chivracq » Tue Jul 04, 2017 7:24 am

xxo04358 wrote:Hello,

I am a little familiar with javascript & php,

I am trying to load a data file (csv/txt) of ~10000 entries, and each line (row) includes multiple columns (/data) which will be used to put into a form, and write the result in a log file

for every row,
"add data" is clicked
the form on the page is filled and submitted
then and text on the page is extracted where it says "success" or "failed", if failed data is added to "failed.txt"
then back to the start => "add data" is clicked etc..

here is where I am stock,
if I tried loading the text file in javascript through "XMLHttpRequest" it says "XMLHttpRequest is not defined"
if I tried loading it in iim through "SET !DATASOURCE", I will have to do something with the data right away for all, as opposed to sending it back to javascript on each data so I can check if it says success or failed
then if get that fixed, I will need to write the failed ones to a text file (or somewhere)
Yep, Thread approved because no Spam, and very nice that you are "a little familiar with javascript & php", would have been nice if you had taken 2 min to get familiar with the 'Forum Rules' as well, just an idea...!, but try to select the correct Sub-Forum next time you open a Thread, at least if you want some Answer from me... :idea:
Oh yeah, and you posted in the 'FF' Sub-Forum, pfff, FCI not even mentioned, grrr...!!!
=> How is your Pb specific to ONLY iMacros for FF...?

For this one: CIM...! :mrgreen: Read my Sig and/or the Forum Rules and try to do things a bit correct next time you open a Thread on the Forum... :idea:
=> That will speed up the "Process" if you you are hoping for some "Answer", just an "Idea"...! (Technical Forum here...!) :idea:

Yep, no Script posted either, willing to help but start by the "beginning" for using the Forum "a bit correctly" and mention your FCI + Script... :idea:

Hum, and "using the Forum "a bit correctly"' means as well following up on your Threads... :idea:
(... And answering Qt's of course, you can try the SOF Forum otherwise, they are a bit less strict with (= don't care about...!) FCI and only care about Reputation Points, ah-ah...!, 2-3 other Advanced Users give correct Answers there as well...)
- (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...
Post Reply