Jump to content

click adds smiley to posting field


P3t3r

Recommended Posts

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).

Link to comment
https://forums.phpfreaks.com/topic/162838-click-adds-smiley-to-posting-field/
Share on other sites

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.