• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

pfc.insert_text error

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby onslo » Tue May 29, 2007 10:48 am

Clicking on a nick in the chat interface in Firefox inserts the nick into the input text box, but this does not work in Internet Explorer or Opera.
Internet Explorer shows a javascript error...

Error : 'undefined' is null or not an object

Any clues as to how to fix ?

I am running 1.0-beta9 at the moment, but your demo of 1.0-beta10 also exhibits the same problem.

rgs

onslo
Last edited by onslo on Tue May 29, 2007 4:04 pm, edited 1 time in total.
onslo
Member
 
Posts: 14
Joined: Wed May 02, 2007 1:41 pm
Top

Postby onslo » Thu Jun 21, 2007 1:04 pm

Anyone replicated this yet or any ideas on how to resolve it ?

Regards

Onslo
onslo
Member
 
Posts: 14
Joined: Wed May 02, 2007 1:41 pm
Top

Postby phpfreechat » Sat Jun 23, 2007 11:10 am

Thank you for the bug report, I will add it to my todo list.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Sat Jun 30, 2007 10:07 pm

Thank you for your bug report, I fixed the bug in 1045 revision.

Here is the patch I applied :

Code: Select all
kerphi@ketchup:~/pfc$ svn diff data/public/js/pfcclient.js
Index: data/public/js/pfcclient.js
===================================================================
--- data/public/js/pfcclient.js (révision 1040)
+++ data/public/js/pfcclient.js (copie de travail)
@@ -1550,11 +1550,10 @@
     if (document.selection && document.selection.createRange)
     {
       msgfield.focus();
-      sel = document.selection.createRange();
-      var text = sel.text;
+      pfcp.sel = document.selection.createRange();
+      var text = pfcp.sel.text;
       if (text == "" && promptifselempty)
       {
-        pfcp.sel = document.selection.createRange();
         pfcp.prompt(this.res.getLabel('Enter the text to format'), '');
         pfcp.focus();
       }
@@ -1594,7 +1593,6 @@
     var promptifselempty = pfcp.promptifselempty;
     var msgfield         = pfcp.msgfield;
     var sel              = pfcp.sel;
-
     // IE support
     if (document.selection && document.selection.createRange)
     {
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub