Search the web
Sign In
New User? Sign Up
yui3 · YUI 3.x Discussion Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 927 - 934 of 934   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#934 From: Mark Jarecki <mjarecki@...>
Date: Tue Dec 15, 2009 8:13 am
Subject: Re: YUI3 and web workers
urbanyte
Offline Offline
Send Email Send Email
 
My current method, in the following simplified example (with some components omitted for clarity), works, but maybe a little clunky.

I'm also wondering how best to bring some of the functionality of YUI3 into the worker.

Thanks,

Mark

HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <script type="text/javascript" src="path/to/yui/build/yui/yui-min.js"></script>
</head>
<body>
<script type="text/javascript">
YUI({

base: 'path/to/yui/build/',
combine: false,
modules: {
worker: {fullpath:'path/to/worker.js'},
view: {fullpath:'path/to/js/view.js', requires: ['dd-constrain']},
manager: {fullpath:'path/to/manager.js', requires: ['base', 'view', 'worker']}
},
timeout: 10000

}).use('manager', function(Y) {

Y.on("domready", function(){ 

var ManagerPages = Y.Base.build("managerPages", Y.Manager, [Y.ManagerPages]);
var mp = new ManagerPages();
}, Y);

});
</script>
</body>
</html>

manager.js
YUI.add("manager", function(Y) {

    var Manager,
    MANAGER = 'manager',
    $D = Y.DOM,
    $L = Y.Lang,
    $J = Y.JSON,
    isBoolean = $L.isBoolean;

   Manager = function(config) { Manager.superclass.constructor.apply(this, arguments); };

Y.mix(Manager, {
NAME: MANAGER,
ATTRS: {

someATTR: {
value: false,
validator: isBoolean
}
}        
});

Y.extend(Manager, Y.Base, {
_worker: null,
initializer: function(config) {

//initialise exchange worker
try {

this. _worker = new Worker('http://127.0.0.1/static/js/exchangeworker.js');
this. _worker.onmessage = function(e) {
if (e.data == "nay") {
alert("the worker responded");
};
}
this. _worker.postMessage("yay");

} catch(e) {

alert('Unable to create worker: ' + e.message);
return;
}
}

});

Y.Manager = Manager;

}, "3.0.0");


worker.js
onmessage = function(e){
postMessage("nay");
};

On 15/12/2009, at 6:45 PM, Mark Jarecki wrote:

 

Hi there,

I was wondering if someone might have a basic example of getting web workers working with YUI3.

Cheers

Mark



#933 From: Mark Jarecki <mjarecki@...>
Date: Tue Dec 15, 2009 7:45 am
Subject: YUI3 and web workers
urbanyte
Offline Offline
Send Email Send Email
 
Hi there,

I was wondering if someone might have a basic example of getting web workers
working with YUI3.

Cheers

Mark

#932 From: Eric Miraglia <miraglia@...>
Date: Fri Dec 4, 2009 6:57 pm
Subject: Re: YUI 3 overlay invisible together with container.css
ericmiraglia
Online Now Online Now
Send Email Send Email
 
Paolo,

Yes, you can subscribe to any individual forum using a subscribe link at the bottom of the page.

Regards,
Eric


On Dec 3, 2009, at 11:28 PM, pnp@... wrote:

 

OK, thanks.
I don't see a setting in the new forum for receiving messages by email. Is'nt it possible?
/paolo

Eric Miraglia skrev:

 

Paolo,


As we are winding down this Yahoo! group and participation here is decreasing, I'd recommend taking your question to the YUI Developer Forums -- specifically the one dedicated to using YUI 3 components:


That's the best place to get help on YUI 3 going forward.

-Eric


On Dec 2, 2009, at 5:41 AM, pnp@italyflash.com wrote:

 

Hi,

I see that a YUI 3 overlay remains invisible if the page has a
container.css included (YUI2).
I take it should be possible to make YUI2 and 3 coexists, so do you know
a way out of this problem?

/Paolo






#930 From: "pnp@..." <pnp@...>
Date: Fri Dec 4, 2009 7:28 am
Subject: Re: YUI 3 overlay invisible together with container.css
paolonesti
Offline Offline
Send Email Send Email
 
OK, thanks.
I don't see a setting in the new forum for receiving messages by email. Is'nt it possible?
/paolo

Eric Miraglia skrev:
 

Paolo,


As we are winding down this Yahoo! group and participation here is decreasing, I'd recommend taking your question to the YUI Developer Forums -- specifically the one dedicated to using YUI 3 components:


That's the best place to get help on YUI 3 going forward.

-Eric


On Dec 2, 2009, at 5:41 AM, pnp@italyflash.com wrote:

 

Hi,

I see that a YUI 3 overlay remains invisible if the page has a
container.css included (YUI2).
I take it should be possible to make YUI2 and 3 coexists, so do you know
a way out of this problem?

/Paolo




#929 From: Eric Miraglia <miraglia@...>
Date: Thu Dec 3, 2009 6:06 pm
Subject: Re: YUI 3 overlay invisible together with container.css
ericmiraglia
Online Now Online Now
Send Email Send Email
 
Paolo,

As we are winding down this Yahoo! group and participation here is decreasing, I'd recommend taking your question to the YUI Developer Forums -- specifically the one dedicated to using YUI 3 components:


That's the best place to get help on YUI 3 going forward.

-Eric


On Dec 2, 2009, at 5:41 AM, pnp@... wrote:

 

Hi,

I see that a YUI 3 overlay remains invisible if the page has a
container.css included (YUI2).
I take it should be possible to make YUI2 and 3 coexists, so do you know
a way out of this problem?

/Paolo



#928 From: "pnp@..." <pnp@...>
Date: Wed Dec 2, 2009 1:41 pm
Subject: YUI 3 overlay invisible together with container.css
paolonesti
Offline Offline
Send Email Send Email
 
Hi,

I see that a YUI 3 overlay remains invisible if the page has a
container.css included (YUI2).
I take it should be possible to make YUI2 and 3 coexists, so do you know
a way out of this problem?

/Paolo

#927 From: Eric Miraglia <miraglia@...>
Date: Tue Oct 27, 2009 9:55 pm
Subject: Re: Have fun at YUI Conf.
ericmiraglia
Online Now Online Now
Send Email Send Email
 
Re: Video, we'll do our best!

-Eric


On Oct 27, 2009, at 1:21 PM, juliebonniedaisy wrote:

 

Make lots of videos please and post them ! Enjoy !



Messages 927 - 934 of 934   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help