Gossamer Forum
Home : General : Perl Programming :

push url or webpages

Quote Reply
push url or webpages
i have been look for sample on how to push a webpage or url to the viewer.

The function is a standard feature of live support. I have figure out all

others expect this one.



any one have ever see the code or know its know how it works?



Thanks
Quote Reply
Re: [courierb] push url or webpages In reply to
Something like this => http://pm.fbagroup.co.uk/cgi-bin/chatter.pl <= you mean? Where the screen refreshes every x amount of seconds to make it look 'live'? By the way, I'm pulling this data from an XML feed from another site - there is no backend to this.

I believe another forum member, Paul, has written a commercial package for this. See:

http://www.wiredon.net/wochat/

- wil
Quote Reply
Re: [Wil] push url or webpages In reply to
It is not the refresh to have message updated .

I mean when you chat with A, and have some page pop up on A's window, so A will review the pages you recommend to him to got all the infos from that pop up page.

in other words. you just open a specified webpage at A' PC, this is call to push a URL to A.



Thanks
Quote Reply
Re: [courierb] push url or webpages In reply to
I've never used this software you're talking about, but I'm going to make assumptions.

I'm going to make the assumption that this is a lot easier than it seems. They are probably just using javascript to open up a new (specified) window in your browser.

Can you give me an example URL?

- wil
Quote Reply
Re: [Wil] push url or webpages In reply to
here is the sample at

http://www.turnkeywebtools.com/...roduct=phplivehelper
Quote Reply
Re: [courierb] push url or webpages In reply to
Yup, they are using Javascript... if you look at the phplivehelper.js that gets included, you will find this function.

Code:
function push(mypage,myname) {
var winl = (screen.width-500)/2;
var wint = (screen.height-500)/2;
PushPage=window.open(mypage,myname,'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top='+wint+',left='+winl);
if (parseInt(navigator.appVersion) >= 4) {
PushPage.window.focus();
}
}

So then it's just a matter of the main window setting the correct OnLoad handler in the body tag when a page needs to be pushed.