telmessos
01-08-2007, 03:08 PM
Hi all,
I have a text area in a form. I am planning to put a button of "Add Image" on the top. When someone clicks on it I want a window to be opened where people can enter the file name. When they enter the file I want the code write [img=thefilenametypedinwindow] where the cursor is.
For example.
If my text in the text area is "This is a test sentence." and the cursor is between the words "a" and "test", and then they click on "Add Image", I want the window opens and when the client type test.jpg and click OK. Then my text in the text area needs to be :
This is a [img=test.jpg] test message
Any idea ??
Thanks
I have a text area in a form. I am planning to put a button of "Add Image" on the top. When someone clicks on it I want a window to be opened where people can enter the file name. When they enter the file I want the code write [img=thefilenametypedinwindow] where the cursor is.
For example.
If my text in the text area is "This is a test sentence." and the cursor is between the words "a" and "test", and then they click on "Add Image", I want the window opens and when the client type test.jpg and click OK. Then my text in the text area needs to be :
This is a [img=test.jpg] test message
Any idea ??
Thanks