Hey Lesile
Thanks for the quick reply. So i checked the doc and as i checked the
different files I realized there was an issue in dialog.js
Position.GetViewportSize = function() {
var w = window;
var width = w.innerWidth ||
(w.document.documentElement.clientWidth ||
w.document.body.clientWidth);
var height = w.innerHeight ||
(w.document.documentElement.clientHeight ||
w.document.body.clientHeight);
return [width, height]
}
Position.EyeLevel = function(element, parent) {
var w, h, pw, ph;
var d = Element.getDimensions(element);
w = d.width;
h = d.height;
Position.prepare();
if (!parent) {
var ws = Position.GetViewportSize();
pw = ws[0];
ph = ws[1];
} else {
pw = parent.offsetWidth;
ph = parent.offsetHeight;
}
var eyeLevel = ph - (ph/4*3) - (h/2);
var screenCenter = (ph/2) - (h/2);
var scrollX = 0, scrollY = 0;
if(!window.XMLHttpRequest) {
// IE 6 only, as we can't use position: fixed
scrollX = Position.deltaX;
scrollY = Position.deltaY;
}
element.style.top = (eyeLevel < (ph / 10) ? screenCenter :
eyeLevel) + scrollY + "px";
element.style.left = (pw/2) - (w/2) + scrollX + "px";
}
As you can see it is missing a ; on line 6, 7 and 32 (which results in
a not so nice dialog).
Should I upload to the repository (not sure yet if I have permission).
Regards,
On Jun 29, 5:47 pm, "Leslie P. Polzer" <[email protected]>
wrote:
> Mackram wrote:
> > On a side note, does the menu support multiple sub-menus or did anyone
> > attempt that?
>
> It's not hard to do this at a basic level by simply nesting
> navigations.
>
> To have a comfortable declarative interface one would have to
> extend the INIT-NAVIGATION macro.
>
> > Also I have been checking the thread and i know that
> > there was some work for jquery is there a way to replace the current
> > javascript framework and if not anyone cares to point me in the
> > direction?
>
> You need to edit the few scripts that come with Weblocks.
>
> See docs/js-backend-abstraction.txt for some notes on this.
>
> Here's a working AJAX interface for JQuery:
>
> function initiateActionWithArgs(actionCode, sessionString, args, method) {
> jj.ajax(
> {
> url:getActionUrl(actionCode, sessionString),
> type: method,
> success: onActionSuccess,
> error: onActionFailure,
> data: args
> });
>
> }
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---