P3t3r Posted June 18, 2009 Share Posted June 18, 2009 Hi, I have a posting field on http://pen.problem-solving.be/posting.php?mode=newtopic&f=28 with smileys images. When you click on a smiley, it should add the respective code in the text. However, somehow it doesn't work. I don't see what goes wrong. Can anyone tell me where the mistake is (or, even more helpful, explain me how I can find such things myself -- I'm completely new to javascript). Quote Link to comment https://forums.phpfreaks.com/topic/162838-click-adds-smiley-to-posting-field/ Share on other sites More sharing options...
P3t3r Posted June 19, 2009 Author Share Posted June 19, 2009 Oh, and in firebug it gives this error: document.post is undefined emoticon(":no:")posting....opic&f=28 (line 136) javascript:emoticon(':no:')()()javascri...n(':no:') (line 1) [break on this error] emoticon_insert(document.post.message, text); what do they mean, document.post is undefined? Quote Link to comment https://forums.phpfreaks.com/topic/162838-click-adds-smiley-to-posting-field/#findComment-859289 Share on other sites More sharing options...
P3t3r Posted June 19, 2009 Author Share Posted June 19, 2009 Never mind, problem solved, somehow the name="post" disappeared from <form> :/ Quote Link to comment https://forums.phpfreaks.com/topic/162838-click-adds-smiley-to-posting-field/#findComment-859292 Share on other sites More sharing options...
Maq Posted June 19, 2009 Share Posted June 19, 2009 Never mind, problem solved, somehow the name="post" disappeared from :/ It must be a bug between the chair and the computer... Please mark as solved. Quote Link to comment https://forums.phpfreaks.com/topic/162838-click-adds-smiley-to-posting-field/#findComment-859321 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
× Pasted as rich text. Restore formatting
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.