Results 1 to 5 of 5

Thread: Trying to get an input box to work

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657

    Trying to get an input box to work

    I want to have the user enter a name in an input box and then use that name

    This works, but I don't like the title at the top of the input box

    var entityname = prompt("Enter Name of Entity : ", "","Entity Name");


    This does not give me anything
    var entityname = inputbox('Please enter entity name','Entity Name','');


    This gives me an input box as I want it but the variable does nto seem to get set to anything
    var entityname = Lianja.execute("inputbox('Please enter entity name','Entity Name','')");

    Any ideas on how I can get this to work ?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi David,

    Lianja.evaluate() not Lianja.execute()
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Thanks Barry,

    I knew it would be possible in Lianja.

    David

  4. #4
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    What is the best way to get a numeric value out of an input box. Right now all I can get is a character value even if I set my variable to numeric?

  5. #5
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Use parseInt()

    Code:
    var mynum = parseInt(Lianja.evaluate("inputbox('Please enter number','Number','')"));
    or

    Code:
    var mynum = parseInt(prompt('Please enter number','','Number'));
    Regards,

    Yvonne

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us