Is it possible to make the client to download html files to display in a DHTML?
5 replies, posted
Is it possible to make the user download an html document and display it inside of a dhtml element? or would I have to do what ULX does and do something like this,
html:SetHTML( ULib.fileRead( "data/ulx_motd.txt" ) or "" )
I want to ideally have separate, .js, .css. files to import into the html file aswell
Panel/SetHTML
Yes, I did that for a gamemode of mine, the code is quiet old but if you want I could send you it in a PM so you can use it for reference. Just reply to this post or @ me with a response.
load .js from it possible if you load them by DHTML/QueueJavascript
Yeah, i've bee using that. Was hoping for a way to have html, css & js separate but i'm using style tags and script tags unless I find something better
Thanks for the offer, and i'll take you up on it, PM me!
hmm, i'm confused on what you're saying
Javascript will work will when it's inside HTML as <script>. If you want load javascript file you can download it and then apply by DHTML:QueueJavascript.
CSS will work if they're inside HTML code as <style> etc. CSS as file can't be added directly. You need to add all CSS to HTML code.
Sorry, you need to Log In to post a reply to this thread.