Abel
Thanks ... you were correct. I'm not a Javascript programmer -- I am a Java
programmer but
have gotten lazy by letting Eclipse do my syntax checking for me. I've got
to find a good
Javascript plugin for Eclipse. I originally created my site in Java with
JSPs but decided I wanted
to learn something about AJAX ... Javascript is proving difficult for me
because it isn't typed.
Oh well, I'll figure it out.
Anyway, thanks to you I've got the code working the way I want it to work.
Thanks
On 2/11/07, Abel Braaksma <[EMAIL PROTECTED]> wrote:
Hi 'mortsahl',
Nice website!
see my comments below.
mortsahl wrote:
>
> if (win == undefined) {
This should really be:
if( typeof win == 'undefined')
sometimes your code will work, but it is bad practice and will bring you
too much trouble. The variable 'undefined' is not a keyword, but an
undefined variable. Note the subtle differences.
> win = new Window('window_id', {className: "spread", title: "",
> top: findScrollTop() + 70, left:10, width: myWidth-40, height:
> myHeight-110, resizable: false, maximizable: false, minimizable:
> false, url: url});
> }
> else {
> win.setUrl(url);
Your browser is right these. setUrl() is not a function. Read the
documentation: javascript is case sensitive and it says setURL() ;)
http://prototype-window.xilinus.com/documentation.html#setURL
I can't see all your code, so I'm not sure it will work. However, these
parts give me the impression that you are new to JavaScript. Be careful
with a complex piece of software as PWC, which uses pretty advanced
techniques. However, if you stick to the basic interface, you should be
fine for most common cases.
Cheers,
-- Abel
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com