View Full Version : textbox.text from php
andr.in
May 24th, 2003, 05:51 AM
I can do this:
print "_root.textbox=$myvariable"
but this won't work:
print "_root.textbox.text=$myvariable"
I nedd it to be .text so ican scroll the textbox! any ideas????
ahmed
May 24th, 2003, 05:56 AM
you only need to output something like like 'myVar=$myvariable', and then use a script like this:
lv = new LoadVars()
lv.onLoad = function(success) {
if(success) {
_root.textbox.text = this.myVar
} else {
trace("failed")
}
}
lv.load("myScript.php")
hope this helps :)
andr.in
May 24th, 2003, 06:06 AM
omg! It works! Thank you thank you thank you! I tried something similar but it didn't work! Thanks again m8!
andr.in
May 24th, 2003, 06:13 AM
um.... now another problem occurred!
Now that I use .text the html is disabled for the textbox!
oh mannn! Isn't there any way to enable it?
ahmed
May 24th, 2003, 06:16 AM
hehe no problem ;)
if you're loading html, then replace this line:
_root.textbox.text = this.myVarwith
_root.textbox.htmlText = this.myVar:)
andr.in
May 24th, 2003, 06:36 AM
sounds good but no effect.... :-\
ahmed
May 24th, 2003, 06:38 AM
are you sure html rendering is enabled?
andr.in
May 24th, 2003, 06:41 AM
Am I stoopid? First I didn't know that htmlText thing (strange) then I saw it wasn't working with the .text thing so turen the html off (I dunno why) !
ahhhhh I must be going nuts
thx man! =)
ahmed
May 24th, 2003, 06:44 AM
lol :beam:
glad it works ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.