Help - Search - Members - Calendar
Full Version: Skype and YUI
Skype Community > English > Products > Toolbars
Chris Curran
Howdy folks. I've got a small problem with a YUI app I'm working on. My app is using the YUI DataTable control and it is being loaded dynamically via an ajax call.

Since the data is being loaded after Skype has done its checks for phone numbers on the screen, phone numbers that are displayed in my table are not being "skyped". If I manually toggle Skype on/off in Firefox, the phone numbers are then "skyped".

Ideally, I need a way of calling (or firing an event) from my YUI code (after data load is complete) to force skype to rescan the screen for phone numbers. I see that (some portion of the) Skype API is based on YUI, so I'm hoping that this issue is resolvable. Anyone have an idea?

thanks in advance,
Chris Curran
Chris Curran
No one? I thought this would be the correct section to post this question to. Who can I contact regarding the following?

/**
* Copyright © 2007, Skype Technologies S.A. All rights reserved.
* Partly based on YUI library (http://developer.yahoo.com/yui/).
* Version: 0.1
*/

I presumed this would mean that integrating Skype into our product would be trivial... Maybe not?

cheers,
Chris
TheUberOverlord
YUI as in "Yahoo! User Interface Library" http://developer.yahoo.com/yui/

I can't speak for everyone, but I don't know of anyone using YUI. I use normal Microsoft methods to get webpage data from web pages, so maybe this is the reason why you are not receiving any responses.

Ir sounds like YUI is getting the web page data after the fact where the Skype toolbar has modified the web pages in some cases, even so, you should be able to programmatically deal with that.

I don't know of ANY part of the Skype API that uses YUI or is based on YUI. Could you please explain?
Chris Curran
I can't speak for everyone, but I don't know of anyone using YUI.

Now you do. smile.png We need cross-platform functionality.

even so, you should be able to programmatically deal with that.

That's exactly what's happening. The DOM is painted, an ajax call is sent to the server, it replies and the client gets that reply. I need to force the Skype plugin to rescan the DOM after I've processed that ajax reply. Head scratcher...

don't know of ANY part of the Skype API that uses YUI or is based on YUI. Could you please explain?

I use Firefox and it's debugger, Firebug for javascript development. One of the things it does for you is show you ALL loaded javascript modules. Load up your Skype plugin, fire up Firebug and look under the skirt of your browser. There will be various Skype javascript files loaded at various times (I'm not yet sure of the sequence required for the various modules that are loaded). Some have the previous copyright notice. A casual glance at the source and it sure does look similar to YUI source.

I don't require a YUI specific method for this. I just thought it'd be easier since our app is also YUI based (e.g. fire an event to cause the plugin to rescan the DOM). If there is some other way (non IE specific), then that'd be just dandy...

cheers & beers,
Chris
TheUberOverlord
Chris, I do all of this now in a Skype Extra I have without the need of YUI, Microsoft provides a clean interface to do these things without the need to add "Yahoo" front ends.

So..I know how the DOM works and how Ajax works wink.png I don't need YUI to access the DOM or perform ajax methods with the API.

API support from Skype is there for "Operating System" platform levels

It's up to us developers to design and support things like Java, YUI and other methods, when or if needed.

Please remember this statement you made in your first post:

"I see that (some portion of the) Skype API is based on YUI, so I'm hoping that this issue is resolvable. Anyone have an idea?"

The Skype API has nothing to do with YUI.

I really have no clue, as of yet, of what you are trying to do, if you could simply explain what you mean by:

"Ideally, I need a way of calling (or firing an event) from my YUI code (after data load is complete) to force skype to rescan the screen for phone numbers."

Are you trying to feed browser pages that the Skype toolbar will somehow auto-change to callto: links?

I think you are looking at Skype4COM examples ("What source code are you looking at that looks like YUI too you?"), but....they require ActiveX as well, when used inside a client browser window, and currently, FireFox does not support Skype4COM. More here https://developer.skype.com/Docs/Skype4COM
Chris Curran
Microsoft provides a clean interface

Perhaps. But as I have previously stated, we *need* platform independence. As in Firefox and Safari. Those Microsoft methods don't work there.

I don't need YUI to access the DOM or perform ajax methods with the API.

OK. However, note that YUI isn't some simply ajax wrapper and discussing it such a simple context is misleading.

The Skype API has nothing to do with YUI.

??? I didn't make up that copyright notice. That's a Skype copyright notice. It says what it says.

I really have no clue, as of yet, of what you are trying to do, if you could simply explain what you mean by:

I don't know how to say it any more succinctly than prior: I need to force the Skype plugin to rescan the DOM after I've processed an ajax reply. You say you know ajax. OK. Forget I ever mentioned YUI.

You process an ajax reply that contains data for a table. You set the field values of various table cells with phone numbers into the DOM. These phone numbers will not be "skyped" since these phone numbers are written to the document *after* the Skype plugin has already does its magic of formating phone numbers to fancy graphic icons. Does that make more sense?

FireFox does not support Skype4COM

Neither does Safari. Skype4COM is simply not an option. Is there no browser independent method of causing the Skyple plugin to rescan the DOM? Some javascript trick to cause the plugin to think it needs rescanning?

cheers,
Chris
TheUberOverlord
What Copyrigtht notice, link please.

Chris, I find it rather impossible at this point, to determine if you want to learn how to do something with the API or you are marketing YUI.

Please define the problem. I am sure someone here can provide a solution.

If these are the questions?:

"I don't know how to say it any more succinctly than prior: I need to force the Skype plugin to rescan the DOM after I've processed an ajax reply. You say you know ajax. OK. Forget I ever mentioned YUI."

and...

"Neither does Safari. Skype4COM is simply not an option. Is there no browser independent method of causing the Skyple plugin to rescan the DOM? Some javascript trick to cause the plugin to think it needs rescanning?"

Then this is for the Skype Toolbar, the Skype toolbar plugin, has nothing to do with the API. It is a stand-alone Skype product. There is a forum for it as well.

Moving to the Skype Toolbar area, hopefully someone can help with this issue there, since there is no desire to use the API/Skype4COM interfaces vs the Skype Toolbar for this.

Chris Curran
What Copyrigtht notice, link please.

See message #2 in this thread.

Please define the problem. I am sure someone here can provide a solution.

I *have* defined it in every previous post.

Chris, I find it rather impossible at this point, to determine if you want to learn how to do something with the API or you are marketing YUI.

Marketing?!?! Dude, you have some serious problems with manners. Never mind. I'll be sure to point my CEO to this thread as to why I will have nothing further to do with this portion of the project.

Chris
TheUberOverlord
Chris, I am trying to get your request handled by the people who best can answer your question.

This is NOT a question about interfacing to the API, you have already stated that "Skype4COM is simply not an option".

Not sure what you want me to do?

Your question is:

"Is there no browser independent method of causing the Skyple plugin to rescan the DOM? Some javascript trick to cause the plugin to think it needs rescanning?"

This is a question for the Skype Toolbar product people, their forum area is located here, it is not an API question.

The copyright statement must also be from the Toolbar, you still have not told me the "Source" of that copyright, which is/was important to make sure it came from the Toolbar, which was/is confucing me, because they API has NO such copyright. I can read, but that does NOT tell me the "Source" of the copyright, understand?

Your statement of "Dude, you have some serious problems with manners." confuses me since I have communicated 4 times with you now, in one day trying to get you help and place your request where it should be in the forum so that the people who work with the toolbar can answer your questions.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.