Search found 22 matches
- Mon May 07, 2018 11:37 am
- Forum: iMacros for Firefox
- Topic: convert CSV to array using Javascript (not JQuery)
- Replies: 10
- Views: 12574
Re: convert CSV to array using Javascript (not JQuery)
Thanks for your suggestions. I am finding ways and means with selenium except it is taking some time. Otherwise I am fine with selenium. I use cyberfox and imacros for FF 8.9.7 for running scripts which are not yet ported to selenium. I have locked cyberfox version so I am safe for time being. Thanks.
- Mon May 07, 2018 8:39 am
- Forum: iMacros for Firefox
- Topic: convert CSV to array using Javascript (not JQuery)
- Replies: 10
- Views: 12574
Re: convert CSV to array using Javascript (not JQuery)
you don't need iMacros anymore as you've kind of recoded your own Add-on yourself and you don't use any iMacros Commands in your Script... I use imacros command only for page loading, waiting and handling download. But I need this JavaScript interact for doing all other stuff like file handing, Dom...
- Sun May 06, 2018 5:56 pm
- Forum: iMacros for Firefox
- Topic: parameterized sqlite query not working
- Replies: 3
- Views: 6810
Re: parameterized sqlite query not working
Sorry for not posting my FCI. My FCI was iMacros for FF v8.9.7, FF52, Linux . Not sure about sqlite version since it uses sqlite engine of firefox. No external database connection can be made. Version might be as you guessed sqlite v3.18.0 Since I knew the issue was of some logic, I skipped FCI. Any...
- Sun May 06, 2018 5:45 pm
- Forum: iMacros for Firefox
- Topic: convert CSV to array using Javascript (not JQuery)
- Replies: 10
- Views: 12574
Re: convert CSV to array using Javascript (not JQuery)
Sorry I did not follow this thread for long. So delayed reply. Ouf-ouf-ouf, waf-waf...!, deadly impressive, this is a very "High-Level" Solution, by kind of re-coding your own iMacros from scratch, but I would be surprised if @OP understands how to use it, I can vaguely "follow" ...
- Sun May 06, 2018 4:59 pm
- Forum: iMacros for Firefox
- Topic: How to get sub-javascript to finish before executing next?
- Replies: 9
- Views: 9534
Re: How to get sub-javascript to finish before executing nex
Since you are with v8.9.7, you can try javascript include https://forum.imacros.net/viewtopic.php ... 968#p66951
You can save all your common functions in one .js file and include them on the fly on other scripts. You can use all the methods defined in that included file.
You can save all your common functions in one .js file and include them on the fly on other scripts. You can use all the methods defined in that included file.
- Sun May 06, 2018 4:35 pm
- Forum: iMacros for Firefox
- Topic: iMacros for Firefox compatibility with Firefox 56 and later
- Replies: 27
- Views: 100495
Re: iMacros for Firefox compatibility with Firefox 56 and la
I was using iMacros for firefox such that my scripts run at nearly in the level of a add-on. That means, I was doing everything with javascript except page loading and waiting. All clicking, selecting, extractions everything were managed with javascript. I developed a small library in javascript inc...
- Sun Apr 23, 2017 4:16 am
- Forum: iMacros for Firefox
- Topic: convert CSV to array using Javascript (not JQuery)
- Replies: 10
- Views: 12574
Re: convert CSV to array using Javascript (not JQuery)
This is very much possible. All you need is to read the csv file line by line and parse it. For file handling I use the following codes // deletes a file. if(typeof(delete_file)!=typeof(Function)) { function delete_file(str_file) { var file = Components.classes["@mozilla.org/file/local;1"]...
- Thu Apr 20, 2017 2:51 pm
- Forum: iMacros for Firefox
- Topic: parameterized sqlite query not working
- Replies: 3
- Views: 6810
Re: parameterized sqlite query not working (solved)
I have solved this issue. There was problem in binding parameter inside the library (iimext.js). I am posting the modified code here so that people need not solve it again. I have commented old code for reference purpose. A small change in approach now. In earlier code, parameter was passed as param...
- Thu Apr 20, 2017 2:48 pm
- Forum: iMacros for Firefox
- Topic: Extend Your Firefox iMacros
- Replies: 11
- Views: 10990
Re: Extend Your Firefox iMacros
I have solved this issue. There was problem in binding parameter inside the library (iimext.js). I am posting the modified code here so that people need not solve it again. I have commented old code for reference purpose. A small change in approach now. In earlier code, parameter was passed as param...
- Mon Apr 17, 2017 6:37 pm
- Forum: iMacros for Firefox
- Topic: parameterized sqlite query not working
- Replies: 3
- Views: 6810
parameterized sqlite query not working
I express my sincere thanks to blueX for providing nice library for keeping things simple through this post http://forum.imacros.net/viewtopic.php?f=11&t=16028&p=73568&hilit=extend#p73568 I am able to store my data into sqlite with simple query. When I try to use parameterized query, it ...
- Mon Apr 17, 2017 6:21 pm
- Forum: iMacros for Firefox
- Topic: Extend Your Firefox iMacros
- Replies: 11
- Views: 10990
Re: Extend Your Firefox iMacros
I want to share my little work on imaros mods. Thanks blueX324 for such a nice library. I started using sqlite for my work and it is good alternative for csv file to store and retrieve data. As long as I use simple query, it works. But I could not get parameterized query working with it. Please fin...
- Tue Dec 29, 2015 4:55 am
- Forum: iMacros for Firefox
- Topic: iMacros on New Tabs
- Replies: 39
- Views: 57706
Re: iMacros on New Tabs
To avoid waiting for tab, we can use !timeout_step 0
- Mon Dec 28, 2015 10:19 am
- Forum: iMacros for Firefox
- Topic: Include javascript files (solution)
- Replies: 3
- Views: 3726
Re: Include javascript files (solution)
I wonder how I was not aware of eval function. It seems more straght forward to include code to the current script than copying them into a temporary file and running it. Thanks to blueX324 http://forum.imacros.net/viewtopic.php?f=11&t=16028&p=45258&hilit=exts#p45258 Here is a simple sol...
- Sat Dec 26, 2015 11:43 am
- Forum: iMacros for Firefox
- Topic: Get file name and path of curreent javascript file
- Replies: 1
- Views: 2208
Get file name and path of curreent javascript file
Dear iMacros experts,
I am using iMacros for Firefox version 8.9.4. I need to get the filename and path of the current .js file which I am running on the fly. Please help me.
Thanks in advance.
I am using iMacros for Firefox version 8.9.4. I need to get the filename and path of the current .js file which I am running on the fly. Please help me.
Thanks in advance.
- Sat Dec 26, 2015 11:39 am
- Forum: iMacros for Firefox
- Topic: Include javascript files (solution)
- Replies: 3
- Views: 3726
Re: Include javascript files (solution)
Dear iMacros users,
In the above solution, if I can get the currect script file name and path on the fly, it can be more straight forward. I am passing this manually at present. If somebody has solution for this it will be useful.
Thanks.
In the above solution, if I can get the currect script file name and path on the fly, it can be more straight forward. I am passing this manually at present. If somebody has solution for this it will be useful.
Thanks.