all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

html img src tag in a html text field


html img src tag in a html text field Pluda
4/30/2004 11:45:31 PM
flash actionscript: Hello there!

I'm abaut one week to now trying to attach a button to an txt field created on
the fly, but... no results :-(

I' now using the img src tag like the code i'm posting, and it works, but...
the button doesn't place himself behind the text, he places himself above the
text.

why? Does this cant be done?

this is the code:

tgt["txt"+iv].htmlText += "<a
href='load."+Phps_Txts/pesquisa.php+""+arr[iv]+"'>"+arr[iv]+""+'<img
src="botao.swf">'+"</a>";

Thanks a lot!

Pluda
Re: html img src tag in a html text field elemental .std
5/1/2004 6:35:14 PM
I will do it like this, but i don`t now will it works!

tmp = "txt"+iv;
tgt[tmp].htmlText+='<a href="load."+Phps_Txts/pesquisa.php+arr[iv]+'
">'+arr[iv]+'<img src="batao.swf"></a>";

but i am not quite sure about this QUOTES here
"load."+Phps_Txts/pesquisa.php...
i think that it have to be
'<a href="load.Phps_Txts/pesquisa.php'+arr[iv]+' ">....

Check your quotes and apostrophes again! Use quotes " for HTML syntax and
apostrophes ' for Flash Actionscript syntax. And i think that you have to
rename your Phps_Txts folder only with small letters - php_txts ...
because the server may be cant recognize them!

Hope that helps!

Best Regars
Ivo
Re: html img src tag in a html text field Pluda
5/1/2004 6:44:08 PM
Hello!

Thanks for help, I had found the answer already, but your seems to be easier.

We can use it like this:

tgt["txt"+iv].htmlText += ""+arr[iv]+""+'<img src="botao.swf" vspace ="-12"
hspace="0" id="botao">'+"</a>";

I'm now trying to pass the var "txt"+iv to my search.php, but something isn't
as expect.
Need more research here... :-)

Thanks a lot for help

Pluda
AddThis Social Bookmark Button