Re: [PHP] How do I get the resolution of my screen?

2001-09-11 Thread MailingLists

nope, it don't... but you could easily do this in JavaScript:

function OpenCenter() {
 // we're going to center the popup screen
 nLeft = ( screen.width - 350 ) / 2 ;
 nTop = ( screen.height - 300 ) / 2;

 // open the window
 var newWind = window.open( someurl.html, shipit, 
width=450,height=300,titlebar=no,addressbar=0,resizable=yes,scrollbars=yes,screenX= 
+ nLeft + ,screenY= + nTop + ,left= + nLeft + ,top= + nTop );

 if( newWind.opener == null ) {
 newWind.opener = window;
 }
}

At 03:46 PM 9/11/2001 -0400, Don wrote:
Hi,

I have a link that opens a small window.  I'd like to center it in the 
screen regardless of the resolution in use.  Does PHP have a way of 
returning the width/height of the current screen in pixels?

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] remote scripting objects

2001-09-06 Thread MailingLists

In the ASP page I've been developing for work (yeah, I know... icky ASP...) 
I have an order form on the screen.  The first field is a custmer 
number.  In the OnBlur even for that form field, the javascript on that 
page instantiates a remote scripting object, which calls another ASP page 
to lookup that customer number.  If it's found, it returns a string which 
the calling javascript function parses out and populates the form.  All 
without ever leaving the form in the browser or having to refresh the form.

Another example I'm using is exactly like you mentioned.  I have two 
dropdowns.  In the onChange even of the first one, it fires up a remote 
scritping object pulling back a string of values, retrieved from a 
database, and populates the second drop down.  All again without ever 
refreshing or leaving the current browser page.

Useful!!

Ther's a lot more to it, and there are some extensive scritping files you 
have to include, and I've not been completely through them, so I don't know 
what it would take to convert to other platforms.  It also relies on a 
non-visual java applet that loads as well.

At 10:42 AM 9/6/2001 -0500, Alfredo Yong wrote:
Ok, fine but what about something like this:

say you have a page with a dropdown to select cities and a second dropdown 
to select places in the previously selected city. You change the cities 
dropdown and normally you reload all the page to fill in the places for 
the second dropdown. Say also this page weigths a lot, with javascript 
menus, images and etc and don't want to reload all the page at each user 
interaction.

Is there a way to reload *just* the second dropdown based on the OnChange 
event in the first one? This is useful even using only MS-IE, because you 
can use it for restricted, maintenance modules users)

I know there is something about this using a Microsoft technology (called 
DSO?), allowing you to download a recordset, update several records on the 
MS-IE browser, and then send the updates in batch mode back to the 
database. (It doesn't work with my PWS)






Michael Kimsal wrote:

The javascript would have to call a PHP script on the server instead of 
an ASP script.  It's nothing specific to MS stuff.

MailingLists wrote:

I don't know if it's IIS or ASP that handles this, but there's a beast 
called a remote scripting object.  It combines JavaScript and ASP to 
call a remote script on your server without having to submit your 
browser or load a new page.  SO I can add a value to a form field and in 
the onchange event for that form call a function which resides in a 
script on the server, it hits a database or whatever and then returns a 
value that I can display on the same page.

Is there any way to do this within a PHP script on Linux?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread MailingLists


I don't want the rate, I have that through a 3rd party shipping engine... 
it's the tracking info I need...  unfortunately not just for UPS... FedEx, 
DHL, Airborne, etc...At 03:09 PM 9/6/2001 -0500, Christopher CM Allen wrote:

  
  
   has anybody written any routines or functions they'd care to share for
   parsing the tracking information out of UPS, FEDEX, or other shipping
   carriers tracking pages?
  

/*
Begin FEDX GROUND
*/
 $fp = fopen
(http://grd.fedex.com/cgi-bin/rrr2010.exefunc=RateScreen=Ground;
OriginZip=$orig_zipOriginCountryCode=USDestZip=$new_zipDestCountryCode=US
Weight=$w_total, r);
 if(!$fp)
 {
 echo Didnt open br $errstr
($errno)br\n;
 }
 else
 {
 fputs($fp,GET / HTTP/1.0\n\n);

 while(!feof($fp))
 {

$buffer=fgets($fp,100);
 if ( ereg
  ^(\!TotalCharges)([0-9]{1,4})(\.)([0-9]{1,}), $buffer, $regs))
 {

 $fee
.=$regs[2];
 $fee
.=$regs[3];
 $fee
.=$regs[4];
 }
 echo
centerThe Shipping Fee is $feebr;

}



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] remote scripting objects

2001-09-04 Thread MailingLists

I don't know if it's IIS or ASP that handles this, but there's a beast 
called a remote scripting object.  It combines JavaScript and ASP to call a 
remote script on your server without having to submit your browser or load 
a new page.  SO I can add a value to a form field and in the onchange event 
for that form call a function which resides in a script on the server, it 
hits a database or whatever and then returns a value that I can display on 
the same page.

Is there any way to do this within a PHP script on Linux?  


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]