HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Firefox 3.6 bugs

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#69056 (In Topic #14648)
Avatar

Just tested two attachments and was working for me. Could you let me know if you had the WYSIWYG editor on, and which browser you were in, and if you previewed before posting, and if you attached via manual selection or via drag&drop, and if you got some kind of error message.

Regarding the CSS, I think this is just because CSS can be pretty difficult. I'm not sure ocPortal can do much about it. I'd be happy to have a look at your problem but I'll need access to your forum, or a copy of your theme.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69068
Avatar

Community saint

Chris Graham said

Just tested two attachments and was working for me. Could you let me know if you had the WYSIWYG editor on, and which browser you were in, and if you previewed before posting, and if you attached via manual selection or via drag&drop, and if you got some kind of error message.

* Problem occurs with WYSIWYG on or off.

* Firefox 3.6.8

* No preview

* Manual attachment using the flash uploader

* No error messages. But you can see the symptom as a second upload field set here:



The WYSIWYG editor does act funny for me. When is first appears and I start typing I don't get a caret, and if I click anywhere in it, or move around with the arrow keys, it gets totally confused as to where the caret should be.

Clicking preview actually fixes this problem.

Regarding the CSS, I think this is just because CSS can be pretty difficult. I'm not sure ocPortal can do much about it.
Yeah, CSS can be a real pain especially where tables are involved.

I think my style problems are probably 70% CSS and 30% ocPortal. The last two ocPortal ones that stand out to me are the inconsistencies in the gallery and friends tooltips (had fun trying to force it to use the specific colours I wanted in column 1 and column 2, and not the inherited colours), and the fact that the "* Required field" box did not share the same style as the required fields themselves.

Note that I have not updated my CSS files for several version upgrades primarily due to my extensive manual colour changes, and I am not keeping track of all the other tweaks I am doing.

 I'd be happy to have a look at your problem but I'll need access to your forum, or a copy of your theme.

Thanks for the offer, but in this particular case I think I have it working acceptably at the moment.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69069
Avatar

Hmm, that WYSIWYG problem looks like you might have our old JS file in your browser cache.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69073
Avatar

Community saint

OK, flushing the cache seems to have fixed the WYSIWYG problem. Upload problem still remains.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69322
Avatar

Sorry for the delay. This is an issue on Firefox 3.6 specifically (not Firefox 4), for our Javascript AJAX handling change we made relativelyrecently. I can account for the doubling up of the upload button, although I can't for them showing Flash icons - that might be a flashblocker plugin, or a slightly different bug behaviour on your particular version, or a different flash version. I am fixing the issue on this site now. The fix is to change the setInnerHTML function in JAVASCRIPT.tpl to:

Code


function setInnerHTML(element,tHTML,append) {
   {$,Parser hint: .innerHTML okay}
   if ((document.write) && (typeof element.innerHTML!="undefined") && (!document.xmlVersion))
   {
      var clone=element.cloneNode(true);
      try
      {
         if (append)
         {
            element.innerHTML+=tHTML;
         } else
         {
            window.js_runs_test=false;
            tHTML+='<script type="text/javascript">window.js_runs_test=true;</script>';
            element.innerHTML=tHTML;
            var scripts=element.getElementsByTagName('script'),text;
            for (var i=0;i<scripts.length;i++)
            {
               text=(scripts[i].nodeValue?scripts[i].nodeValue:(scripts[i].textContent?scripts[i].textContent:(scripts[i].text?scripts[i].text.replace(/^<script[^>]*>/,''):"")));
               window.setTimeout( function(text) { return function() {
                  if (!window.js_runs_test) // If JS was not run by the above op
                     eval(text);
               } }(text) , 0); // Delayed so we know DOM has loaded
            }
         }
         window.setTimeout( function() { fixImagesIn(element); } , 500); // Delayed so that the image dimensions can load up
         return;
      }
      catch(ignore) {};
   }

   tHTML=EntitiesToUnicode(tHTML);

   {$,load the XML and copies to DOM}
   tHTML="<root>"+tHTML+"</root>";
   var xmlDoc=Load(tHTML);
   if (element && xmlDoc) {
      if (!append) while (element.lastChild) element.removeChild(element.lastChild);
      Copy(element,xmlDoc.documentElement);

      window.setTimeout( function() { fixImagesIn(element); } , 500); // Delayed so that the image dimensions can load up
   }
}

Firefox 3.6 executes Javascript when .innerHTML is set, other browsers (include Firefox 4) do not. This change will track the behaviour and act accordingly.


Last edit: by Chris Graham


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69326
Avatar

Community saint

Thanks Chris, good to see that you finally tracked it down.

The Flash icons are just from my flash blocker, so nothing for you to fix there.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: