Click to See Complete Forum and Search --> : Loading HTML Table in dynamic text
James McGuiness
08-24-2006, 01:21 PM
I have an html file, called text.html, it is a simple file with just rows of data defined in a table such as <Table><tr><td> etc....
All I want to do is load it to a dynamic textbox in Koolmoves and have the textbox display as it would in a browser. I need the file so I can display the data in a readable format where all the data lines up (aligned).
Other than setting the Has HTML to yes, are there any other things that I need to have or NOT have in the text.html?.... I have noticed that certain attributes like border=1, width=500 in the html file causes nothing to load.
Thanks in advance!
necromanthus
08-24-2006, 01:25 PM
Just read this topic:
http://forum.necromanthus.com/necroforum.php?forum=3&topic=52
cheers
James McGuiness
08-24-2006, 01:31 PM
Ok, thanks... I see that there are some limitations. So when a developer creates an external file that he needs to display back into Koolmoves in a Table/Row/Col type format where everything is aligned, what do they do?
Thanks again for the help.
necromanthus
08-24-2006, 03:34 PM
If you need (badly) to work with "Table/Row/Col type format" you need multiple dynamic text fields (Has html = yes).
The main problem is that you also need to process the "HTML loader" in order to obtain a HTML "slice" for each dynamic text field.
For example:
txt1var = "1)<br>2)<br>3)";
txt2var = "Red<br>Blue<br>Green";
Obviously, an active script (PHP,CGI,ASP,etc) is required for that.
cheers
James McGuiness
08-24-2006, 03:47 PM
What if I had the data already in an excel file, is there a way for me to simply import the excel file and show it on a page in Koolmoves?
So, in essence, forget about using the dynamic textbox, and simply replace the textbox with the imported excel file.
Thanks for the help.
necromanthus
08-24-2006, 04:23 PM
Excel (xls) files are hardcoded files and can't be recognized by FlashPlayer.
But if you want to develop a "flash XLS parser" ... :smoov:
James McGuiness
08-24-2006, 05:09 PM
I think what I will be forced to do is when creating the the text file I will dynamically create the dynamic text names:
Fav1var='DAL'
Spd1var='3.5'
Und1var='NYG'
OurPick1var='NYG'
Fav2var='DEN'
Spd2var='13.5'
Und2var='NO'
OurPick2var='NO'
Instead of just having one variable name that holds all the data. And then
layout the dynamic textboxes on the page. Since there will almost always
be 16 rows of data, I can hardcode the dynamic textboxes from 1 to 16.
Thanks for all the help today, if you like football my site is http://www.pointspreadpros.com we do NFL football handicapping with FREE picks each week.
blanius
08-24-2006, 05:17 PM
Wilbert described and provided code to load in a CVS file which you can save an Excell sheet as. Do a search of the forum. It uses the feature onData that you get when using LoadVars to parse the info.
necromanthus
08-24-2006, 05:42 PM
Wilbert described and provided code to load in a CVS file which you can save an Excell sheet as. Do a search of the forum. It uses the feature onData that you get when using LoadVars to parse the info.
Comma Separated Values (CSV) file format is not a solution in this case.
As I said before, it's impossible to create tables in a single dynamic text field.
outstretchedarm
09-01-2006, 02:34 PM
as a noob, then, I ask, how do you create tables in KM? different dynamic text fields?
blanius
09-02-2006, 11:56 AM
CSV is a way to get Excel data into your flash though. I agree tables are not possible in textfield.
w.brants
09-02-2006, 12:19 PM
The 'easiest' way might be to create a cell (a movieclip with a dynamic textfield and some actionscript code for text alignment, resizing etc.) inside the symbol library and to attach that multiple times.
blanius
09-02-2006, 03:10 PM
I thought about that, but I would imagine the overhead would get to be too much pretty quick.
outstretchedarm
09-03-2006, 12:01 AM
problem is...these tables will need formula....and some of the formulas I need to write are deeper than excel can handle. for example, excel can only handle 7 imbedded conditions, I need something that can handle about 129.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.