I have a URL which when launched in a browser widget produces a form for conducting a backtest of a specific stock screen. To do the backtest you just click the button called "Run Backtest". If you have a password for screening, you may type it into the passwords field on the form and then click the button "Run Screener" to get a list of stocks that currently fit the criteria. When I examine the HTML for the form, some of the form elements have specific IDs while others do not have IDs. For example I can set the radio button for a detailed report with the following: do "document.getElementById('reporttype_detailed').checked = 'true'" in widget "Browser" Unfortunately I have no IDs for the password field or either of the two "Run" buttons.
I have been able to edit the HTML and supply a value for the password. I then use the following command to re-load the browser: set the htmltext of widget "Browser" to <the edited text>. The final result shows the password in the password field as desired but the browser widget has been substantially changed. Its color is different and the "Run" buttons no longer work - they can be clicked and they hilite but they do nothing else. I can get the htmlText of the final product and it matches the original htmltext. Why do those buttons loose their ability to work and is there any way I can automate running the Screener by programmatically supplying a password and 'clicking' the Screener button.?
I have attached a sample stack that demonstrates the before and after widget and the before and after HTML.
Larry
Browser Widget and htmltext
LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Browser Widget and htmltext
Post by lohill » Mon Dec 28, 2020 3:06 am
- Attachments
-
- Broswer Testing.livecode.zip
- (3.21 KiB) Downloaded 136 times
Return to “Getting Started with LiveCode - Experienced Developers”
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- ↳ App Building Course
- ↳ Simple Messages
- ↳ Calculator
- ↳ Notes
- ↳ Clock
- ↳ Web Browser
- ↳ Weather
- ↳ Compass
- ↳ Photos
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- ↳ Legacy Project: MetaCard
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- ↳ rIDE
- Third Party Extension Support
- ↳ Marketing Your Products
- ↳ Animation Engine
- ↳ chartsEngine
- ↳ MobGUI
- ↳ lcTaskList
- ↳ SQL Yoga
- ↳ MergEXT
- ↳ Data Grid Helper
- ↳ idea2app and Coding School
- ↳ Admin Archive
- LiveCode Hosting
- Forum Archives
- ↳ Archived: Third Party Extension Support
- ↳ rTree
- ↳ rGrid
- ↳ Data Tree
- ↳ Archived: LiveCode Open Source
- ↳ LiveCode Global Jam
- ↳ Testing Support
- ↳ Archived: Academic Endeavors
- ↳ September Academy
- ↳ Summer School 2013
- ↳ Archived: Project Specific
- ↳ Business and Kiosks
- ↳ Digital Art and Portfolios