Re: Event problem in Firefox for OSX
2006/11/23 16:47
Viewed 4009 times
Replies: 1/2

I'm afraid it's an operating system problem, rather than a browser or DynarchMenu problem. Mac OS X triggers the context menu upon CTRL+click (probably because Macintoshes traditionally come with a single-button mouse). As far as I know, there's no way we can avoid this.

Re[2]: Event problem in Firefox for OSX
2006/11/27 08:42
Viewed 5236 times
Replies: 1/1

Hi,
I am having the following issue, which may be a combination of Firefox and OSX:
When I click on any of the date fields in the calendar, I cannot get the field to be input into a text area. However, when I hit the ">" arrows, the date does enter as the first day of the next month. Hitting the date field generates "Too Much Recursion" on line 1802 from Firefox, which is the following chunk of code:

Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
var d = new Date(this);
d.__msh_oldSetFullYear(y); //<------------------------ Line 1802
if (d.getMonth() != this.getMonth())
this.setDate(28);
this.__msh_oldSetFullYear(y);
};

The calendar is called via a text field with a button event trigger in the following way:

$return = '<input type="text" name="' . $oName .'" id="' . $oName . '" />';

$return .= '<img src="calendar.png" id="trigger_i" alt="+" />' ;

$return .= "<script type=\"text/javascript\">\n"
. "Calendar.setup({"
. 'inputField : "'.$oName.'",' // id of the input field
. 'ifFormat : "'.$this->dateFormat.'",' // format of the input field
. 'button : "trigger_i",' // button to trigger the even.
.'showsTime : false,' // will display a time selector
. 'singleClick: true' // single-click mode
. "});\n"
. "</script>\n";

Any help is appreciated, thanks ilya

last
Re[3]: Event problem in Firefox for OSX
2006/11/27 09:20
Viewed 6532 times
Replies: 0/0

Actually this traces back to the recursion issue discussed elsewhere commenting out the following lines gets rid of the problem, but then the year can no longer be changed.
Is there a way to get around this?

Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
var d = new Date(this);
// d.__msh_oldSetFullYear(y);
if (d.getMonth() != this.getMonth())
this.setDate(28);
// this.__msh_oldSetFullYear(y);
};

last
Google