[Question]how I can get text from SimpleHTML frame? menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    VX2's Avatar Contributor
    Reputation
    205
    Join Date
    Dec 2009
    Posts
    262
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question]how I can get text from SimpleHTML frame?

    I have a SimpleHTML frame:
    Code:
    	<SimpleHTML name="TestHTML" hyperlinkFormat="|cff06ff07|H%s|h[%s]|h|r">
    		<Size>
    			<AbsDimension x="450" y="30"/>
    		</Size>
    		<Anchors>
    			<Anchor point="TOP">
    				<Offset>
    					<AbsDimension x="0" y="-16"/>
    				</Offset>
    			</Anchor>
    		</Anchors>
    		<Scripts>
    			<OnHyperlinkClick>
    				LaunchURL(link);
    			</OnHyperlinkClick>
    		</Scripts>
    		<FontString inherits="GlueFontNormalLarge" spacing="2"/>
    		<FontStringHeader1 inherits="GlueFontNormalLarge" spacing="4"/>
    		<FontStringHeader2 inherits="GlueFontHighlight" spacing="4"/>
    	</SimpleHTML>
    I can set text in it
    Code:
    TestHTML:SetText("<html><body><p align=\"CENTER\">html text</p></body></html>");
    but how I can get text from this frame?

    p.s. "TestHTML:GetText();" not working. I get error "attempt to call method 'GetText' (a nil value)".

    [Question]how I can get text from SimpleHTML frame?
  2. #2
    nightcracker's Avatar Contributor
    Reputation
    102
    Join Date
    Jan 2008
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't use simplehtml.

  3. #3
    VX2's Avatar Contributor
    Reputation
    205
    Join Date
    Dec 2009
    Posts
    262
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would be happy not to use it, but it's not my frame. this is frame for different messages, I need in only one of them. I know what the text should be in that frame, but I can't compare them...
    look. frame from first post only for sample, originally it's a dialog frame (from GlueXML). I try to track "Server Down" message (then login). it's may be two types - plant text, and html text. I completely hook plant text for compare with "Server Down" string, but I can't get html text to confirm that this is exactly what I needed.
    it's for "force login" function. look for code:
    Code:
    	if AccountLoginForceLogin:GetChecked() and which then	--check the need for force flag
    		if which == "OKAY" and text then		--check GlueDialogType. plant "Server Down"
    								--message is a "OKAY" type
    			if text == LOGIN_SERVER_DOWN then	--check frame text, that there is an
    								--exactly "server down" message
    				StatusDialogClick();		--cklick "ok"
    				AccountLogin_Login();		--login again
    			end
    		elseif which == "CONNECTION_HELP_HTML" then	--html "server down" message is this type,
    								--but I can't check text
    								--from this frame, to make sure
    								--that this is the necessary message
    			AccountLogin_Login();
    		end
    	end
    that's why I need it
    Last edited by VX2; 08-27-2010 at 12:11 AM.

Similar Threads

  1. Question - How often can you jump and how far without getting a soft ban?
    By Starburst123 in forum Pokemon GO Hacks|Cheats
    Replies: 0
    Last Post: 07-22-2016, 10:06 AM
  2. [Question] How do I get the convert from list to load in the wdb editor?
    By leathergoose in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 03-29-2008, 01:37 PM
  3. [Question]How do I get it into a public server
    By Dee2001 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 11-26-2007, 08:15 PM
  4. [Question]How do I get the proper animations after a model swap?
    By DragonRealms in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 11-24-2007, 09:12 AM
  5. How rogues can get extra chests
    By heh0 in forum World of Warcraft Guides
    Replies: 5
    Last Post: 02-21-2007, 02:01 AM
All times are GMT -5. The time now is 05:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search