Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] [Interchange] Admin Quicklinks javascript



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Rob Zimmerman (rob@readysite.net):
> 
> I know this is alpha so I did not expect all things to work. I really like this 
> feature alot on the live demo at the Akopia  site. On my simple catalog 
> install the QuickLinks does not work on the admin page. However I can load 
> http://192.168.0.23/cgi-bin/simple/admin/quicklinks.html
> 
> here is the javascript link:
> 
> function open_quicklinks() {
>   window.name = "mainwindow[scratch window_name]";
>   
> opts="top=0,left=0,scrollbars,location=no,status=no,toolbar=no,resizable,fulls
> ize=no,width=[scratch ql_width],height=[scratch ql_height]";
>   window.open('[area href="admin/quicklinks" arg="[scratch window_name]"]', 
> 'Quicklinks[scratch window_name]', opts);
> }
> 
> Returns this:
> 
> function open_quicklinks() {
>   window.name = "mainwindow%s";
>   
> opts="top=0,left=0,scrollbars,location=no,status=no,toolbar=no,resizable,fulls
> ize=no,width=170,height=700";
>   window.open('http://192.168.0.23/cgi-
> bin/simple/admin/quicklinks.html?mv_arg=%25s', 'Quicklinks%s', opts);
> }
> 
> My quess is window.name is not providing the proper results cuasing the 
> error to occur. I do note that on Akopia demo site window.name = 
> "mainwindow964805793"; 
> 
> Is this my lack of understanding javascript and scratch?
> 

This is actually a problem caused by me using %s in the time format
statement. Solaris, and possibly some other Unices do not support that
parameter. (Thanks to Mike Wilkinson for the initial report and pointer
toward the problem.)

We have changed the [tag time]%s[/tag] in lib/UI/vars/UI_STD_HEAD
to [tag time]%m%d%H%M%S[/tag], which corrects this.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>

Any man who is under 30, and is not liberal, has not heart; and any man
who is over 30, and is not a conservative, has not brains.
 -- Winston Churchill
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: