mobius1983
Technical User
Hi everyone,
I hope someone can help, I have been going around in circles for days!!
I am building a chat room for a charity, it uses a php socket server and a flash front end. The flash has a dynamic html text box and each xml communication from the server is formatted and added to the htmlText.
Everything is working fine, but I wanted to add the functionality of sending 'emoticons' with the chat. To do this I format the message coming from the server to replace the shortcut string with an <img> tag,
but (and here is the annoying BIG but!) it all works fine apart from the images always appear on a separate line below the text rather than inline even though a trace of the html looks good.
Anyone that can help would save me pulling my hair out over the next few days!
Many thanks,
Nick
I hope someone can help, I have been going around in circles for days!!
I am building a chat room for a charity, it uses a php socket server and a flash front end. The flash has a dynamic html text box and each xml communication from the server is formatted and added to the htmlText.
Everything is working fine, but I wanted to add the functionality of sending 'emoticons' with the chat. To do this I format the message coming from the server to replace the shortcut string with an <img> tag,
Code:
msgBody = msgBody.split("(1)").join("<img src='1.jpg' height='14px' width='14px' hspace='0' vspace='0' />");}
Anyone that can help would save me pulling my hair out over the next few days!
Many thanks,
Nick