PDA

View Full Version : HTMLOSD : html/java in outside file ?



reiner
December 18th, 2002, 03:03 AM
Hello Ron,

Is it possible to put the HTMLOSD-definition into an "outside" file ?
I want to create dynamic menus, where the entries are changing.
E.g. the current playlist of a playersoftware.
I don't want to put all the <table>,<td>,<tr> stuff into a LUA-parameter
and put this parameter into the htmlosd-script. I tried this and
it was working, but it would be easier to get the whole script from
an outside file, which is created via LUA or an outside Script-Language.

Is there already a possibility for that ?

Reiner

Ron
December 18th, 2002, 03:06 AM
Sure just specify an URL in the options instead of the HTML.

reiner
December 18th, 2002, 10:24 AM
I missed to specify the URL :oops:

OK, I put the script of your 'open menu' into an external file.
Then, I created a new 'HTMLOSD - Plugin' Command and checked
the 'Is URL' Text-Propertie.
I put in the external file and pushed 'Test'.
Result: I get the whole menu like as it was internal.:lol:
But: I can't make a selection. The Arrow-Up/Down Keys are not reacting
and no item has this red background which you created in your .gml testfile.:cry:

Note: I made a copy of the whole htmlcode ( incl. javascript ) to
the external file.

Did I miss something ?

Reiner

Ron
December 18th, 2002, 10:36 AM
Did I use any lua-variables in that html page ? if so that might be the problem.

There is not real difference between internal and external html pages. ( the internal pages gets saved to disk before the HTML control displays it ).