slobib 0 Posted June 23, 2015 Report Share Posted June 23, 2015 Hello everyone, its my first post and im happy to be a part of this community. I have an issue inserting a part of text in list of hrefs( in front of every href, whole item should be a string).In debugger i see every href is its own item, but when i want to add part of text in front,next item list just goes to the next character. How can i fix this? Also the items in debugger even after execution of this line still stays same, so the insertion obviously doesnt work,but the alert part shows the insertion.Where is the problem? clear list(%mylist)add list to list(%mylist,$scrape attribute(<href=r"/.*if">,"href"),"Delete","Global")set list position(%mylist,0)loop($list total(%mylist)) { alert("{$insert text(%mylist,"http://something",$list position(%mylist))}{$next list item(%mylist)}")} Quote Link to post Share on other sites
Edward_2 85 Posted June 23, 2015 Report Share Posted June 23, 2015 (edited) How about just replace of the url with your text Edited June 23, 2015 by Edward_2 Quote Link to post Share on other sites
slobib 0 Posted June 23, 2015 Author Report Share Posted June 23, 2015 This will not work, because i need to navigate to these urls, but they are not working without the insertion of the text. Quote Link to post Share on other sites
slobib 0 Posted June 23, 2015 Author Report Share Posted June 23, 2015 Basically i get the relative html address, but i dont know how to navigate in ubot to it. Quote Link to post Share on other sites
slobib 0 Posted June 23, 2015 Author Report Share Posted June 23, 2015 (edited) I solved the issue. Used replace list item and inside used just replace( basically edited the existing text ).Thank you for help, it was the right way but need to work on it Edited June 23, 2015 by slobib Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.