gfpoow 0 Posted March 13, 2012 Report Share Posted March 13, 2012 how to create UI HTML for this code ui drop down("DropDown", $read file("{$special folder("Application")}\\dropdown.txt"), #dropdown) thanks for the help Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 13, 2012 Report Share Posted March 13, 2012 Your dropdown.txt should contain items in this format below to make it work.item1,item2,item3,item4,item5 Quote Link to post Share on other sites
gfpoow 0 Posted March 13, 2012 Author Report Share Posted March 13, 2012 yes i knowi want to implement that code in UI HTML Panelis it possible? what is the HTML code? thanks Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 13, 2012 Report Share Posted March 13, 2012 Like this:ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title>Untitled Document</title> </head> <body> <label for=\"select\"></label> <select name=\"select\" id=\"select\"> {$read file("{$special folder("Desktop")}\\dropdown.txt")} </select> </body> </html> ", 100) dropdown.txt value<option value="item1">item1</option> <option value="item2">item2</option> <option value="item3">item3</option> 1 Quote Link to post Share on other sites
gfpoow 0 Posted March 13, 2012 Author Report Share Posted March 13, 2012 thanks it works Quote Link to post Share on other sites
Legend 181 Posted May 19, 2012 Report Share Posted May 19, 2012 Like this:ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title>Untitled Document</title> </head> <body> <label for=\"select\"></label> <select name=\"select\" id=\"select\"> {$read file("{$special folder("Desktop")}\\dropdown.txt")} </select> </body> </html> ", 100) dropdown.txt value<option value="item1">item1</option> <option value="item2">item2</option> <option value="item3">item3</option> How do you attach this to a variable? Where does the "#var" go? Thanks! Quote Link to post Share on other sites
Legend 181 Posted May 19, 2012 Report Share Posted May 19, 2012 nm... <select name="select" variable="#var" id="select"> does it... http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif Quote Link to post Share on other sites
Legend 181 Posted May 20, 2012 Report Share Posted May 20, 2012 Is there some way to add a subfolder variable to this? For example, I want to change this: {$read file("{$special folder("Desktop")}\\dropdown.txt")} to something like this: {$read file("{$special folder("Desktop")}\\{#saved variable}\\dropdown.txt")} But the {#saved variable} isn't recognized. Any ideas? TIAhttp://ubotstudio.com/forum/public/style_emoticons/default/blink.gif Quote Link to post Share on other sites
Legend 181 Posted May 20, 2012 Report Share Posted May 20, 2012 nm... got it... http://ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif 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.