Use html codes in lua - WoWInterface
Thread Tools Display Modes
09-24-21, 01:05 AM   #1
A Kobold Labourer
Join Date: Sep 2021
Posts: 1
Use html codes in lua


First of all I have to say I'm very very new to lua and wow addons so please if you know the answer please explain to me very simple xD

I'm trying to use an api system to submit a from with a wow addon , I've done a few research and most of people said It's not possible Blizzard blocked this and you can't send a html request with wow addon

I've seen some addons (like TomCat) is currently called a html page using xml

I've tried to do the same but it didn't worked for me , all I need right now is to use html codes on my wow addon

For example if user typed /cmd test in chat , all I need is to pass that test to my api system
  Reply With Quote
09-24-21, 02:07 AM   #2
Premium Member
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 819
Not possible. Lua is run in a sandbox and cant connect. Your only hope is to put your content in your addons savedvariables file and after quitting wow you can read it from there.
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
09-24-21, 09:15 AM   #3
A Pyroguard Emberseer
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
In TomCats' case, and my addons, and a few others, the URL is merely an edit box that is pre-filled with the link. There is no external access, as Rilgamon said. You have to copy the text and put it into a browser yourself.
  Reply With Quote
09-27-21, 11:28 AM   #4
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,859
As myrroddin said, it's not a link. It's just a web address as plain text.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Use html codes in lua

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off