DHTML: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
oh that's an artifact from tcrf
Specifically
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{WIP|barebones at the moment, if anyone has more experience with this sort of thing, feel free to edit away, most of this is ripped straight from the tcrf page https://tcrf.net/Roblox_(Windows,_Mac_OS_X)/Removed_Features#DHTML}}
{{WIP|barebones at the moment, if anyone has more experience with this sort of thing, feel free to edit away, most of this is ripped straight from the tcrf page https://tcrf.net/Roblox_(Windows,_Mac_OS_X)/Removed_Features#DHTML}}
 
{{NonStandard|reason=This feature was removed almost immediately after 2007. (NewWindow)}}
{{Olden}}
<b>DHTML</b> was a feature, added sometime before 2007, which would let you create and display HTML documents during gameplay. These were separate windows that would open on the user's computer.
 
<b>DHTML</b> was a feature, added sometime before 2007, which would let you create and display HTML documents during gameplay. These were seperate windows that would open on the user's computer.
 
== Usage ==
== Usage ==
<syntaxhighlight lang="lua" line>
<syntaxhighlight lang="lua" line>
local w = game:service("HtmlService"):NewWindow()
local HtmlService = game:service("HtmlService")


w.DocumentComplete:connect(function ()
local htmlWindow = HtmlService:NewWindow()
w:SetBody([==[
htmlWindow.DocumentComplete:connect(function()
htmlWindow:SetBody([==[
<table width="420" height="190" border="0">
<table width="420" height="190" border="0">
  <tr>
  <tr>
    <td width="490" bgcolor="#FFFFFF"><font color="#000000">  
<td width="490" bgcolor="#FFFFFF"><font color="#000000"></font>
      </font><div align="center">
<div align="center">
<p><font color="#000000"><b>Hello, World!</b></font></p>
<p><font color="#000000"><b>Hello, World!</b></font></p>
<p><font color="#000000">I am a DHTML window!</font></p>
<p><font color="#000000">I am a DHTML window!</font></p>
</div>
      </div>
</td>
    </td>
</tr>
  </tr>
</table>
</table>
]==])
]==])
w:Show()
htmlWindow:Show()
end)
end)
w:Navigate()
htmlWindow:Navigate()
</syntaxhighlight>
</syntaxhighlight>
You would end up with something like this:
You would end up with something like this:


[[File:ROBLOX-DHTML.PNG]]
[[File:ROBLOX-DHTML.PNG]]
== See also ==
* [[RBX.lua.ScreenGui (Object)|User GUIs, your best option for a substitute, added 2009]]


 
[[Category:2006-2007 features]]
== See also ==
* [[RBX.lua.CoreGui_(Object)|User GUIs, your best option for a substitute, added 2009]]

Latest revision as of 17:11, 30 July 2023

Work In Progress
This is currently being worked on! Check back later for more information... hopefully.


Ouch!
The following article, DHTML, mentions a feature exclusive to certain versions of the client.
Specifically: This feature was removed almost immediately after 2007. (NewWindow)


DHTML was a feature, added sometime before 2007, which would let you create and display HTML documents during gameplay. These were separate windows that would open on the user's computer.

Usage

local HtmlService = game:service("HtmlService")

local htmlWindow = HtmlService:NewWindow()
htmlWindow.DocumentComplete:connect(function()
	htmlWindow:SetBody([==[
<table width="420" height="190" border="0">
	  <tr>
		<td width="490" bgcolor="#FFFFFF"><font color="#000000"></font>
			<div align="center">
				<p><font color="#000000"><b>Hello, World!</b></font></p>
				<p><font color="#000000">I am a DHTML window!</font></p>
			</div>
		</td>
	</tr>
</table>
]==])	
	htmlWindow:Show()
end)
htmlWindow:Navigate()

You would end up with something like this:

See also