Mintoris Forum

Author Topic: HTML Input Screen Demo  (Read 3243 times)

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
HTML Input Screen Demo
« on: Apr 11, 2012, 04:29 AM »
Here is the demo program demonstrating how to use HTML to create a multiple input data entry screen with two buttons.  The screen design is only limited by your HTML skills.  This demo program requires version 5.0

Code: [Select]
HtmlBrowser On

HtmlLoadUrl "www.mintoris.com/demo/HtmlDemo04.html"

done = 0
Do

  HtmlInput type$, url$, data$
 
  Popup type$ + " - " + url$

  if type$ = "GET" Then
    If data$ = "exit=exit" Then Exit
    done = 1   
  Elseif type$ = "BACK" Then
    Exit
  Else
    HtmlLoadUrl "RELOAD"
  Endif

Loop until done

HtmlBrowser Off

' Decode and print data

value1$ = ItemExtract$(data$, 0, "&")
value2$ = ItemExtract$(data$, 1, "&")

name$ = ItemExtract$(value1$, 1, "=")
email$ = ItemExtract$(value2$, 1, "=")

Print "Name: "; name$
Print
Print "Email: "; email$
[/color]
« Last Edit: Sep 01, 2018, 10:16 PM by Mintoris »

harold

  • Sr. Member
  • ****
  • Posts: 807
  • My Favorite Material Posession
    • MyElectronicArt
Re: Html Input Screen Demo
« Reply #1 on: Apr 11, 2012, 04:33 AM »
Hello Chuck, how do I get v. 5, Harold.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: Html Input Screen Demo
« Reply #2 on: Apr 11, 2012, 05:06 AM »
I'm writing the documentation for it now.  I'll release it as soon as I'm done.  Probably in the next few days.

-Chuck

harold

  • Sr. Member
  • ****
  • Posts: 807
  • My Favorite Material Posession
    • MyElectronicArt
Re: Html Input Screen Demo
« Reply #3 on: Apr 11, 2012, 05:11 AM »
Sounds good, thanks, Harold.

drliew

  • Full Member
  • ***
  • Posts: 15
Re: HTML Input Screen Demo
« Reply #4 on: Apr 17, 2012, 11:12 AM »
I uploaded 'HtmlDemo04.html' to the same folder with 'HtmlDemo04.bas'.

Changed line : HtmlLoadUrl "www.mintoris.com/demo/HtmlDemo04.html"
to : HtmlLoadFile "HtmlDemo04.html"

Error : File not found. The file name specified does not exist.

What gives?

Solved : Move HtmlDemo04.html to Data/Html and use HtmlLoadFile "Html/HtmlDemo04.html"
« Last Edit: Apr 17, 2012, 11:25 AM by drliew »

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: HTML Input Screen Demo
« Reply #5 on: Apr 17, 2012, 07:13 PM »
Maybe I should mention that the HtmlBrowser mode is highly experimental at this point. I have already reworked it for ver 5.1 so that it will intercept POST data. Please notify me of any problems you might have.

-Chuck