how to code a button that saves websites browsing history in livecode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
how to code a button that saves websites browsing history in livecode
I need your help
I am programming a url browsing site when you long press on button named site01 it will enable you to type a url , and I need your help in how to script a button that saves the user's websites browsing history , and is there a way to know that the website url which the user has entered is active and correct , I am still a beginner
I am programming a url browsing site when you long press on button named site01 it will enable you to type a url , and I need your help in how to script a button that saves the user's websites browsing history , and is there a way to know that the website url which the user has entered is active and correct , I am still a beginner
Last edited by Lina on Wed Jun 03, 2020 11:53 am, edited 2 times in total.
Re: the code for programming an add to favorites button and a websites browsing history
Lina, this is the ANNOUNCEMENTS forum!?
Will move this thread to the Beginners section.
Will move this thread to the Beginners section.
Re: how to code a button that saves websites browsing history in livecode
Code: Select all
on enterInField
put the text into tVar
If tVar is not empty then
answer tVar titled "let me see what is in tVar"
open URL tVar
save tVar to a file or to a sqlite database
do other fun stuff
end if
end enterInField
Re: how to code a button that saves websites browsing history in livecode
will try that
thanks a lot
thanks a lot
-
- VIP Livecode Opensource Backer
- Posts: 9752
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: how to code a button that saves websites browsing history in livecode
Perhaps this should have been a "mouseUp" handler in a button, as opposed to an "enterInField" handler, in, I suppose, a field?
Craig
Craig
Re: how to code a button that saves websites browsing history in livecode
of course, that's also a possibility.
i don't have to tell you, but @Lina the enterInfield can also trigger the mouseUp --> focus on btn"dosomething" or send "mouseUp" to btn"dosomething". Many people hit the Enter or Return key after they write something in a field. For Return you need also an returnInfield handler, as enter and return are two different things.