Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#16) Old
mdvuser Offline
New Member
 
Posts: 5
Join Date: Dec 2006
Location: Bad Homburg, Germany
Solved the rendering issue - 19-06-2007, 05:28 PM

After some digging in the sourcecode I found a hack to get the menu dissapearing on macs.

NOTE: This is a HACK. I can note take any responsibilities for using this!

It seems, that the used version of the cooljsmenu has somewhere a feature, that handles Macs different than other OSes.

So I grep'ed for 'mac' in main.js and found on line 1496 (or somewhere around that) the following code:

_1._1s=_1._1K.match(/Mac/);

So. There is a detection for macs. Where is it used?

next grep for _1._1s and what do I find?

if(_1._15&&!_1._1s) with some function being called in that case.

Next thing I did was just to comment out the '&&!_1_1s' so the part now reads as follows

if(_1._15/*&&!_1._1s)

Reload the page in FF and voila. Menu-Items dissapear! (Both Mac an Windows ;-)

I have NO idea what else this does, but for me it works.

I repeat: I CAN TAKE NO RESPONSIBILITIES WHATSOEVER FOR THIS HACK!!

Oh. And my version of the main.js is 1.50 of 2007/02/13 06:47:44 (look around line 1538)

Last edited by mdvuser; 19-06-2007 at 05:42 PM..
   
Reply With Quote
  (#17) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
Lightbulb 21-06-2007, 07:28 AM

Here's a possible workaround for Safari on Mac users.

First, Enable "Debug" mode for Safari: (If you haven't already)
  1. Quit Safari if running
  2. In Terminal.app execute the following command:

    defaults write com.apple.safari IncludeDebugMenu 1

Enables the debug menu in Safari. Type again but with 0 instead of 1 at the end to disable.

  1. Launch Safari.
  2. Go to Debug menu and select "User Agent" then select "Konqueror 3"
  3. Test out your drop-down menus in Safari (When I click off the menus, they roll up now)


Haven't tested extensively, but so far so good.

I'm on an intel imac, OS X 10.4.10, Safari 2.0.4 (419.3)

Interesting that changing the user agent fixes the menu issue... isn't user agent a server side thing???

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!

Last edited by richm; 21-06-2007 at 07:32 AM..
   
Reply With Quote
  (#18) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
21-06-2007, 07:44 AM

A side note here, the only other thing I noticed, and I have no idea of this is part of the problem, is, the java console seems to get a lot of the following errors all over the app:

Object (result of expression goforit) does not allow calls.
https://support.portellus.com/staff/...&_a=dashboard#


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#19) Old
mdvuser Offline
New Member
 
Posts: 5
Join Date: Dec 2006
Location: Bad Homburg, Germany
21-06-2007, 08:05 AM

Quote:
Originally Posted by rixm View Post
  1. Launch Safari.
  2. Go to Debug menu and select "User Agent" then select "Konqueror 3"
  3. Test out your drop-down menus in Safari (When I click off the menus, they roll up now)
No wonder this works.

normaly Safari submits the following user-agent
Code:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3
.

By changing the User Agent to Konqueror the submited user-agent is now
Code:
Mozilla/5.0 (compatible; Konqueror/3)
which does not contain the string 'mac' somewhere and therefore the menu works.

But IMHO the problem should be solved on the server-side of the system so the user does not need to hassle with user-agents an debug menus or manualy editing http-headers in FF via TamperData or URLParams

Regards

mdvuser
   
Reply With Quote
  (#20) Old
Chris Boulton Online
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
21-06-2007, 01:35 PM

Quote:
Originally Posted by mdvuser View Post
After some digging in the sourcecode I found a hack to get the menu dissapearing on macs.

NOTE: This is a HACK. I can note take any responsibilities for using this!

It seems, that the used version of the cooljsmenu has somewhere a feature, that handles Macs different than other OSes.

So I grep'ed for 'mac' in main.js and found on line 1496 (or somewhere around that) the following code:

_1._1s=_1._1K.match(/Mac/);

So. There is a detection for macs. Where is it used?

next grep for _1._1s and what do I find?

if(_1._15&&!_1._1s) with some function being called in that case.

Next thing I did was just to comment out the '&&!_1_1s' so the part now reads as follows

if(_1._15/*&&!_1._1s)

Reload the page in FF and voila. Menu-Items dissapear! (Both Mac an Windows ;-)

I have NO idea what else this does, but for me it works.

I repeat: I CAN TAKE NO RESPONSIBILITIES WHATSOEVER FOR THIS HACK!!

Oh. And my version of the main.js is 1.50 of 2007/02/13 06:47:44 (look around line 1538)
Looks good.

I'd submit it all to the bug tracker along with your fix as long as it all works.

This should be put in the release ASAP.
   
Reply With Quote
  (#21) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
21-06-2007, 02:38 PM

For OSX Firefox users go to the FF add-ons page and download/install user agent switcher

Once done, go to this page:

http://techpatterns.com/forums/about304.html

Download the long list of user agents, save list as useragents.xml, then go into the user agent prefs in FF and import the list (I overwrote mine)

In the FF Tools menu, User Agent menu, I selected MSIE 5.5 Win 2000, This one worked.

I suppose you could use the info from the previous posts and simply modify FF's user agent defs to exclude the M word.

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#22) Old
Chris Boulton Online
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
21-06-2007, 02:40 PM

Changing your user-agent is dodgy - you'll break other things and other services which rely on agent detection.

The patch above is what Kayako should be using.
   
Reply With Quote
  (#23) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
21-06-2007, 03:19 PM

Well the nice thing about both user agent workarounds is, they can be switched back with a menu item immediately. Not every user is going to want to change the code (though I might )

I do agree that Kayako clarly needs to update their code to deal with OS X browsers.


Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#24) Old
kenja Offline
New Member
 
Posts: 6
Join Date: Nov 2007
07-11-2007, 06:31 AM

I am having the same issue with both Firefox and Safari under Leopard. Has Kayako figured out a way to address this, yet?!? It seems like a pretty big deal since more and more folks are using macs and this bug is VERY annoying. I don't want to change user agents if I don't have to. You never know what effects that will have on your browsing experience.
   
Reply With Quote
  (#25) Old
Chris Boulton Online
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
08-11-2007, 10:40 AM

Make the changes mentioned by mdvuser above - the modification (removing the User-Agent detection) will allow it to work correctly.

Chris
   
Reply With Quote
  (#26) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,668
Join Date: Jan 2006
Location: United Kingdom
08-11-2007, 10:56 AM

Hi all,

I have submitted this to the developers for review.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#27) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,668
Join Date: Jan 2006
Location: United Kingdom
08-11-2007, 08:36 PM

Bug confirmed and fixed in the CVS build. Thanks everyone,


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
rendering

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
InstaAlert Login Issues kami InstaAlert 9 05-03-2007 07:58 PM
cPanel/Exim Piping Issues - Resolution Varun Shoor News and Announcements 0 24-01-2006 04:06 AM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48