Basically, I'd like the ability to filter this page based on
information in the printer name and location fields.
I know that I can create my own custom HTML pages, but that requires, I
believe, individually specifying the IPP URL of each printer accessible to
iPrint - NOT something that I want to manage manually.
From the documentation:
"...you must use an HTML editor and create links to the the different
generated lists or create a Web page using the printer's IPP URL. This URL
is displayed when you enable IPP for a printer."
Any thoughts, examples, suggestions appreciated.
Vj.
>>> On 7/21/2006 at 4:59 PM, in message
<k%cwg.1795$a27....@prv-forum2.provo.novell.com>, VJ<vaness...@ubc.ca>
wrote:
Thanks.
>>> On 7/24/2006 at 1:18 PM, in message
<1153768298....@75g2000cwc.googlegroups.com>,
Vj
<OBJECT ID=iPrintAccess
CLASSID=clsid:36723f97-7aa0-11d4-8919-FF2D71D0D32C></OBJECT>
// *********************************
// Function: ListPrinters
// sets up newPAlist which is the list of printers from the PSM
// *********************************
function ListPrinters(serveraddress)
{
var listReturn;
var paList;
//
opValue=serveraddress;
params = "&error-type=none";
paList = iPrintAccess.GetPrinterURLList2(opValue, params, 0);
if(DEBUG_ON)
alert("ListPrinters(GetPrinterURLList2)\n"+paList);
// what if this fails????
if(paList != "" && paList != null)
{
newPAList = paList.split("\n");
listReturn=newPAList.length-1;
}
else
{
newPAList = "NoPrinters"
listReturn=0;
}
return(listReturn);
}
Then for each printer in the list that is returned, you could do something
like
params = "printer-url=" + unescape(printer_name) +
"&result-type=object&error-type=object";
opValue="op-printer-get-status";
installed = iPrintAccess.ExecuteRequest(opValue, params);
which gets status and some basic information
OR
params = "printer-url=" + unescape(printer_name) + "&result-type=object";
opValue="op-dbg-printer-get-all-attrs";
getAllError=iPrintAccess.ExecuteRequest(opValue, params);
which gets all information on the printer
>>> On 7/24/2006 at 2:54 PM, in message
<1153774001.3...@m73g2000cwd.googlegroups.com>,
For the line 'paList =iPrintAccess.GetPrinterURLList2 (...' in the
funcation ListPrinters, are there alternatives to 'GetPrintURLList2'?
(I've done a search, no results).
I'd like to pull more details for each printer in that one function...
At present, I am then taking each Printer Name from newPAList, and
using the operation 'op-printer-get-info' to get the printer location
information. This however, takes a LONG time to run, and ends up
killing my browser.
I only need Printer Name (derived from GetPrintURLList2) and location,
and am hoping to do it all in the one ListPrinters function.
Thanks very much for your replies.
VJ.
Thanks.