Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12955
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 51842 - 51872 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#51842 From: "prash_monte" <prash_monte@...>
Date: Tue Oct 6, 2009 5:57 pm
Subject: YUI menubar: Drop down is being covered by Yahoo.widget.Panel
prash_monte
Send Email Send Email
 
Hi All,

In my page, in addition to the YUI menubar I also have a
Yahoo.widget.Panel. When I rollover a menu item, the drop down that
appears is partially covered by the overlay Panel.

Is there any way to prevent this so that the menu drop down is always
displayed on top of the Panel?

Regards,
Prashant

#51843 From: "YUI" <tsha@...>
Date: Tue Oct 6, 2009 6:26 pm
Subject: Re: Problem with setForm and multi-select List
tssha
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, Daniel <ikaro75@...> wrote:
>
> Hello:
>
> I'm posting a multiselect list, before sending it I select all the options.
> However, setForm doesn't send this field to the Server side script used to
> process the responses. (I'm using firebug)
>
> Anyone have a solution for this?

Is the "name" attribute value on the select element set?

The following is an example of a multi-select field, with varied option
elements:

<select name="typeSelectMultiple" size="5" multiple="multiple">
   <option value="">First</option>
   <option value="2">Second</option>
   <option>Third</option>
   <option>Fourth</option>
   <option>Fifth</option>
</select>

Selecting all options, via Connection Manager's setForm(), produces the
following response from PHP:
[typeSelectMultiple] =>
   Array ( [0] =>
           [1] => 2
           [2] => Third
           [3] => Fourth
           [4] => Fifth )

If you are still unable to resolve this problem, please post a link to a
functional example; or, show me the full code example that produces the
described condition.

Regards,
Thomas

#51844 From: "Carlos Vadillo" <carlos.m.vadillo@...>
Date: Tue Oct 6, 2009 7:30 pm
Subject: Submenus dissapearing in IE7
c_vadillo
Send Email Send Email
 
I have seen many threads on this topic, and I have a new insight on it. The
zoom: 1 works fine if you are in IE7 quirks mode. But if you try to use html4 or
xhtml and add a line in your page like

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Or any or many other variations then the problem appears again.

Does anyone found a solution for this problem. MenuBar works fine in IE6,
Firefox and others but it is very annoying in IE7 and certainly our product
cannot go on production with this problem.

#51845 From: Todd Kloots <kloots@...>
Date: Wed Oct 7, 2009 2:31 am
Subject: Re: Re: YUIMenuBar: Adding "id" to the anchor tag for each menu item.
toddkloots
Send Email Send Email
 
Prashant -

The easiest way to add an id to the anchor of each item would be via a
"render" event listener:

myMenuBar.subscribe("render", function () {

      var items = this.getItems(),
          anchor;

      for (var i=0, nItems = items.length; i<nItems; i++) {

          anchor = items[i].element.firstChild;

          YAHOO.util.Dom.generateId(anchor);

      }

});

- Todd

On Oct 6, 2009, at 2:13 AM, prash_monte wrote:

> Hi,
>
> Just a little more clarification. I am creating the menu bar using
> JSON and Javascript.
>
> Regards,
> Prashant
>
> --- In ydn-javascript@yahoogroups.com, "prash_monte"
> <prash_monte@...> wrote:
>>
>> Hi,
>>
>> Is it possible to add an id to the anchor tag of each menu item in
>> the YUI menu bar?
>> This is required for automated testing of my website.
>>
>> Thanks in advance,
>> Regards,
>> Prashant
>>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#51846 From: Todd Kloots <kloots@...>
Date: Wed Oct 7, 2009 4:32 am
Subject: Re: YUI menubar: Drop down is being covered by Yahoo.widget.Panel
toddkloots
Send Email Send Email
 
Prashant -

Menu inherits Overlay's "bringToTop" method which you can call in
response to the "show" event of a submenu to ensure it is on top.
Here is some sample code:

myMenuBar.subscribe("show", function () {

     if (this.parent) {
         this.bringToTop();
     }

});

Additionally, I would recommend reading this section of the Overlay
landing page for further reading:
http://developer.yahoo.com/yui/container/overlay/#stack

- Todd


On Oct 6, 2009, at 10:57 AM, prash_monte wrote:

> Hi All,
>
> In my page, in addition to the YUI menubar I also have a
> Yahoo.widget.Panel. When I rollover a menu item, the drop down that
> appears is partially covered by the overlay Panel.
>
> Is there any way to prevent this so that the menu drop down is always
> displayed on top of the Panel?
>
> Regards,
> Prashant
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#51847 From: "prash_monte" <prash_monte@...>
Date: Wed Oct 7, 2009 5:32 am
Subject: Re: YUIMenuBar: Adding "id" to the anchor tag for each menu item.
prash_monte
Send Email Send Email
 
Thanks Todd ! That worked for me.

Since an id is already defined for the menu item in the JSON, is there a
possibility that the id that is applied to the <li> could be automatically
applied to the anchor as well, rather than having to implement the function you
have mentioned below?

Or is there a specific reason that this was not done?

Regards,
Prashant

--- In ydn-javascript@yahoogroups.com, Todd Kloots <kloots@...> wrote:
>
> Prashant -
>
> The easiest way to add an id to the anchor of each item would be via a
> "render" event listener:
>
> myMenuBar.subscribe("render", function () {
>
>      var items = this.getItems(),
>          anchor;
>
>      for (var i=0, nItems = items.length; i<nItems; i++) {
>
>          anchor = items[i].element.firstChild;
>
>          YAHOO.util.Dom.generateId(anchor);
>
>      }
>
> });
>
> - Todd
>
> On Oct 6, 2009, at 2:13 AM, prash_monte wrote:
>
> > Hi,
> >
> > Just a little more clarification. I am creating the menu bar using
> > JSON and Javascript.
> >
> > Regards,
> > Prashant
> >
> > --- In ydn-javascript@yahoogroups.com, "prash_monte"
> > <prash_monte@> wrote:
> >>
> >> Hi,
> >>
> >> Is it possible to add an id to the anchor tag of each menu item in
> >> the YUI menu bar?
> >> This is required for automated testing of my website.
> >>
> >> Thanks in advance,
> >> Regards,
> >> Prashant
> >>
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>

#51848 From: "prash_monte" <prash_monte@...>
Date: Wed Oct 7, 2009 5:34 am
Subject: Re: YUI menubar: Drop down is being covered by Yahoo.widget.Panel
prash_monte
Send Email Send Email
 
Thanks Todd ! This worked !

I will read through the link that you have sent. There's still a lot for me to
learn in YUI. :)

Regards,
Prashant

--- In ydn-javascript@yahoogroups.com, Todd Kloots <kloots@...> wrote:
>
> Prashant -
>
> Menu inherits Overlay's "bringToTop" method which you can call in
> response to the "show" event of a submenu to ensure it is on top.
> Here is some sample code:
>
> myMenuBar.subscribe("show", function () {
>
>     if (this.parent) {
>         this.bringToTop();
>     }
>
> });
>
> Additionally, I would recommend reading this section of the Overlay
> landing page for further reading:
> http://developer.yahoo.com/yui/container/overlay/#stack
>
> - Todd
>
>
> On Oct 6, 2009, at 10:57 AM, prash_monte wrote:
>
> > Hi All,
> >
> > In my page, in addition to the YUI menubar I also have a
> > Yahoo.widget.Panel. When I rollover a menu item, the drop down that
> > appears is partially covered by the overlay Panel.
> >
> > Is there any way to prevent this so that the menu drop down is always
> > displayed on top of the Panel?
> >
> > Regards,
> > Prashant
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>

#51849 From: "nagaraj" <manne_swiss@...>
Date: Wed Oct 7, 2009 7:06 am
Subject: Can we add an blank row to the dynamic datatable?
manne_swiss
Send Email Send Email
 
My requirement is some thing like this :

i have implemented auto-complete to the datatable and it worked fine..i wish to
keep the search box(filter) inside the datatable is that possible?

instead of keeping the search filter just above the datatable can i integrate it
within the datatable itself by adding another dummy row and placing it within
that row.

Note: the datatable consists of dynamic data and server side pagination too..as
i navigate to the next page the dummy row needs to be shown always at the top.

Can this be achieved ? if so please help me out.

Thanks Much

#51850 From: Sarah <thabit139a1@...>
Date: Wed Oct 7, 2009 10:55 am
Subject: Free Online Education Degree
thabit139a1@...
Send Email Send Email
 
Considering for getting an Online Education Degree?? What should you know before
getting enrolled in online education?? What programs are best for you? We have
developed this blog to provide you with answers to such questions.

Visit:  http://free-online-education.info/  for more information.







This is not a spam. You receive this e-mail because YOU Choose to Receive
e-mails from Yahoo Group. Please change your group message delivery setting to
"Web only" or choose "Leave Group" if you wish to be removed from future
mailings. OR reply to this e-mail with subject "Remove". If you are a group
Admin and no longer wish to receive our posts, please remove us from your group.
Thank you for your understanding.

#51851 From: "Colm Aengus" <colm.murphy@...>
Date: Wed Oct 7, 2009 1:29 pm
Subject: Charts in tabs slow in Firefox
colmaengusmu...
Send Email Send Email
 
Hi,

When you have charts in tabs it seems that in Firefox the chart redraws every
time you switch tabs.
With IE, Chrome or Safari the charts aren't redrawn when you switch tabs.

This can be easily seen in the example :
http://developer.yahoo.com/yui/examples/charts/charts-tabview.html

This chart redraw impacts on Firefox performance when you have a few charts in a
tab.

Is there any way to avoid this redraw ?

I'm using YUI 2.8.0r4.

Regards

Colm A

#51852 From: Colm Aengus Murphy <colm.murphy@...>
Date: Wed Oct 7, 2009 1:40 pm
Subject: Re: Charts in tabs slow in Firefox
colmaengusmu...
Send Email Send Email
 
Hi,

Just noticed that when you have multiple charts in a tab only IE8 can do fast tab switching.
Firefox (3.5.3), Safari (4.0.3), Chrome (3.0.195.25) all take quite a few seconds to switch tabs.

Regards

Colm A

Colm Aengus wrote:
 

Hi,

When you have charts in tabs it seems that in Firefox the chart redraws every time you switch tabs.
With IE, Chrome or Safari the charts aren't redrawn when you switch tabs.

This can be easily seen in the example : http://developer.yahoo.com/yui/examples/charts/charts-tabview.html

This chart redraw impacts on Firefox performance when you have a few charts in a tab.

Is there any way to avoid this redraw ?

I'm using YUI 2.8.0r4.

Regards

Colm A


--
Colm Aengus Murphy
Staff Engineer
TV Technology

Direct: +353 1 291 1373
Email: colm.murphy@...

Silicon & Software Systems (S3) Ltd.   South County Business Park, Leopardstown, Dublin 18, Ireland
Switch: +353 1 291 1000   Fax: +353 1 291 1001   Visit S3 website: www.s3group.com


The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: communications@.... Thank You. Silicon and Software Systems Limited. Registered in Ireland no. 378073. Registered Office: South County Business Park, Leopardstown, Dublin 18



#51853 From: Vaneeza <thabit139a1@...>
Date: Wed Oct 7, 2009 2:50 pm
Subject: Advantage of Online Learning System
thabit139a1@...
Send Email Send Email
 
Online learning programs are getting popular every day. There are so many online
education degree programs that it is becoming disturbing for one to decide which
one to choose from. We have developed this blog to provide you the answer for
the exact question.

Visit: http://free-online-education.info/8/online-degree-system/







This is not a spam. You receive this e-mail because YOU Choose to Receive
e-mails from Yahoo Group. Please change your group message delivery setting to
"Web only" or choose "Leave Group" if you wish to be removed from future
mailings. OR reply to this e-mail with subject "Remove". If you are a group
Admin and no longer wish to receive our posts, please remove us from your group.
Thank you for your understanding.

#51854 From: "tripp.bridges" <trippb@...>
Date: Wed Oct 7, 2009 4:17 pm
Subject: Re: Charts in tabs slow in Firefox
tripp.bridges
Send Email Send Email
 
This is due to the flash player plugin. When the tabs are toggled, the browsers
reset the flash player. As a result, the chart needs to redraw. Otherwise, there
would be no chart.

Tripp

#51855 From: Colm Aengus Murphy <colm.murphy@...>
Date: Wed Oct 7, 2009 4:42 pm
Subject: Re: Re: Charts in tabs slow in Firefox
colmaengusmu...
Send Email Send Email
 
Hi Tripp,

This is a shame as it really impacts on user experience.
There is no such delay in IE8, does this mean Microsoft just do things different ?

Regards

Colm A

tripp.bridges wrote:
 


This is due to the flash player plugin. When the tabs are toggled, the browsers reset the flash player. As a result, the chart needs to redraw. Otherwise, there would be no chart.

Tripp


--
Colm Aengus Murphy
Staff Engineer
TV Technology

Direct: +353 1 291 1373
Email: colm.murphy@...

Silicon & Software Systems (S3) Ltd.   South County Business Park, Leopardstown, Dublin 18, Ireland
Switch: +353 1 291 1000   Fax: +353 1 291 1001   Visit S3 website: www.s3group.com


The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: communications@.... Thank You. Silicon and Software Systems Limited. Registered in Ireland no. 378073. Registered Office: South County Business Park, Leopardstown, Dublin 18



#51856 From: mlavinder@...
Date: Wed Oct 7, 2009 5:14 pm
Subject: Panel Modal in IE7
mattlavinder
Send Email Send Email
 

I am using IE7 and YUI 2.8.0. Appears to be an issue when using the modal. Text on the page cannot be selected when the modal is turned on. All I did was turn of the modal and now text can be selected again. Any way to work around this?

Thanks,
Matt
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________


#51857 From: Todd Kloots <kloots@...>
Date: Wed Oct 7, 2009 5:21 pm
Subject: Re: Re: YUIMenuBar: Adding "id" to the anchor tag for each menu item.
toddkloots
Send Email Send Email
 
The id of the of the menuitem's li shouldn't be applied to the anchor
as well because ids need to be unique.  You are the first to request
the need to apply an id to the anchor.  Is there a reason why you
can't use the id on the anchor's parent <LI>?  If you've got a valid
use case it might be something we can add in a future version of YUI.

- Todd

On Oct 6, 2009, at 10:32 PM, prash_monte wrote:

> Thanks Todd ! That worked for me.
>
> Since an id is already defined for the menu item in the JSON, is
> there a possibility that the id that is applied to the <li> could be
> automatically applied to the anchor as well, rather than having to
> implement the function you have mentioned below?
>
> Or is there a specific reason that this was not done?
>
> Regards,
> Prashant
>
> --- In ydn-javascript@yahoogroups.com, Todd Kloots <kloots@...> wrote:
>>
>> Prashant -
>>
>> The easiest way to add an id to the anchor of each item would be
>> via a
>> "render" event listener:
>>
>> myMenuBar.subscribe("render", function () {
>>
>>     var items = this.getItems(),
>>         anchor;
>>
>>     for (var i=0, nItems = items.length; i<nItems; i++) {
>>
>>         anchor = items[i].element.firstChild;
>>
>>         YAHOO.util.Dom.generateId(anchor);
>>
>>     }
>>
>> });
>>
>> - Todd
>>
>> On Oct 6, 2009, at 2:13 AM, prash_monte wrote:
>>
>>> Hi,
>>>
>>> Just a little more clarification. I am creating the menu bar using
>>> JSON and Javascript.
>>>
>>> Regards,
>>> Prashant
>>>
>>> --- In ydn-javascript@yahoogroups.com, "prash_monte"
>>> <prash_monte@> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Is it possible to add an id to the anchor tag of each menu item in
>>>> the YUI menu bar?
>>>> This is required for automated testing of my website.
>>>>
>>>> Thanks in advance,
>>>> Regards,
>>>> Prashant
>>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#51858 From: Todd Kloots <kloots@...>
Date: Thu Oct 8, 2009 6:26 am
Subject: Re: Submenus dissapearing in IE7
toddkloots
Send Email Send Email
 
Carlos -

Todd Kloots here, author of YUI Menu.  My understanding was that this
was only an issue with IE 7 when in Quirks Mode.  I have never seen it
reported as being an issue when IE 7 is in strict/standards mode.
Hence my solution in the Known Issues section of the YUI Menu landing
page:

http://developer.yahoo.com/yui/menu/#knownissues

If you have a URL that reproduces this issue in IE 7 in standards
mode, then can you forward it on to me so that I can take a look at
the issue for you?

- Todd


On Oct 6, 2009, at 12:30 PM, Carlos Vadillo wrote:

> I have seen many threads on this topic, and I have a new insight on
> it. The zoom: 1 works fine if you are in IE7 quirks mode. But if you
> try to use html4 or xhtml and add a line in your page like
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd
> ">
>
> Or any or many other variations then the problem appears again.
>
> Does anyone found a solution for this problem. MenuBar works fine in
> IE6, Firefox and others but it is very annoying in IE7 and certainly
> our product cannot go on production with this problem.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#51859 From: Christian Tiberg <ctiberg@...>
Date: Thu Oct 8, 2009 7:19 am
Subject: DataTable pagination abandoned in 3.0?
ctiberg
Send Email Send Email
 
Hello!

I hope to hear that the DataTable in YUI 3 has abandoned pagination in favor of something, say, a bit more natural. Present a user with a table of data and a scrollbar. Will he try to drag the scrollbar to the approximate position he needs, or will he try to guess a page number at random? It's your guess, enough said.

In an ideal world, I'd like to see something that client programs in all modern OS's have had for years - virtual lists. You simply tell the DataTable that there are 1,497,977,412 rows, and the first screenful is displayed, along with a scrollbar. You might say that with such a huge number of rows, a search is the most efficient way to find what one's looking for - but that's also irrelevant, since even a search would probably turn up thousands of records in such a humungous dataset.

So, will we ever get to this higher form of DataTable, or will I have to continue to dream?

Best regards,
 Christian Tiberg

#51860 From: "r2b2_ry" <r2b2_ry@...>
Date: Thu Oct 8, 2009 8:00 am
Subject: YUI Animation : Hiding a DIV element with a FORM elements inside
r2b2_ry
Send Email Send Email
 
Hi,
I enclosed a form within div tags and then i wanted to hide the div container of
the form when a button is click :

var attributes = {height: { to: 0 },width: {to:0}};

var anim = new YAHOO.util.Anim('projectFilterContainer', attributes, 1,
YAHOO.util.Easing.easeOut);

when i call anim.animate() , the div does hide but the Form and its elements are
retained. How can I hide a div and its child nodes?

Thanks !

#51861 From: "Dan" <daniel.ldoyle@...>
Date: Thu Oct 8, 2009 2:44 pm
Subject: Chart Resizing Crashes Flash
daniel.ldoyle
Send Email Send Email
 
Hi there,

One of our users brought it to my attention that the YUI Charts (both the 2.7.0
and the 2.8.0r4 versions) crash the flash plugin in Safari when resizing the
window. After some testing, this only seems to occur when the width of the
element is set to "auto" and the window is collapsing to the point where the
chart is trying to resize - if I set it to a hard value like "400px" nothing bad
happens.

This seems to work fine in Firefox regardless, and IE is already on our "no
support" list so I haven't tested it there.

#51862 From: "Dan" <daniel.ldoyle@...>
Date: Thu Oct 8, 2009 2:50 pm
Subject: Re: Chart Resizing Crashes Flash
daniel.ldoyle
Send Email Send Email
 
Sorry, I hit "Send" when I meant to preview what I had already and there's no
way to back that out save for making the browser go back.

It seems that there is an actual issue with Safari when height / width
attributes are set to a % with flash crashing. I was posting this to make it a
known issue, not to suggest that there is something wrong with YUI. Thanks.

--- In ydn-javascript@yahoogroups.com, "Dan" <daniel.ldoyle@...> wrote:
>
> Hi there,
>
> One of our users brought it to my attention that the YUI Charts (both the
2.7.0 and the 2.8.0r4 versions) crash the flash plugin in Safari when resizing
the window. After some testing, this only seems to occur when the width of the
element is set to "auto" and the window is collapsing to the point where the
chart is trying to resize - if I set it to a hard value like "400px" nothing bad
happens.
>
> This seems to work fine in Firefox regardless, and IE is already on our "no
support" list so I haven't tested it there.
>

#51863 From: "stepheneighmey@..." <stepheneighmey@...>
Date: Thu Oct 8, 2009 3:44 pm
Subject: Re: DataTable pagination abandoned in 3.0?
stepheneighm...
Send Email Send Email
 
I think the key here is to understand your user and to design accordingly.
Provide them enough search refinement to allow them to target selectively. If
your point is to decide between pagination and scrolling, this really depends on
the user's needs.  Let the user be able to sort or refine the results once they
are returned.

#51864 From: "tripp.bridges" <trippb@...>
Date: Thu Oct 8, 2009 3:44 pm
Subject: Re: Chart Resizing Crashes Flash
tripp.bridges
Send Email Send Email
 
Dan,
Could you file a ticket for this issue?

http://yuilibrary.com/projects/yui2/newticket

Thanks,
Tripp
--- In ydn-javascript@yahoogroups.com, "Dan" <daniel.ldoyle@...> wrote:
>
> Hi there,
>
> One of our users brought it to my attention that the YUI Charts (both the
2.7.0 and the 2.8.0r4 versions) crash the flash plugin in Safari when resizing
the window. After some testing, this only seems to occur when the width of the
element is set to "auto" and the window is collapsing to the point where the
chart is trying to resize - if I set it to a hard value like "400px" nothing bad
happens.
>
> This seems to work fine in Firefox regardless, and IE is already on our "no
support" list so I haven't tested it there.
>

#51865 From: "Luke" <lucas.e.smith@...>
Date: Thu Oct 8, 2009 5:17 pm
Subject: Re: DataTable pagination abandoned in 3.0?
y_lsmith
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, Christian Tiberg <ctiberg@...> wrote:
>
> Hello!
>
> I hope to hear that the DataTable in YUI 3 has abandoned pagination in favor
> of something, say, a bit more natural. Present a user with a table of data
> and a scrollbar. Will he try to drag the scrollbar to the approximate
> position he needs, or will he try to guess a page number at random? It's
> your guess, enough said.
>
> In an ideal world, I'd like to see something that client programs in all
> modern OS's have had for years - virtual lists. You simply tell the
> DataTable that there are 1,497,977,412 rows, and the first screenful is
> displayed, along with a scrollbar. You might say that with such a huge
> number of rows, a search is the most efficient way to find what one's
> looking for - but that's also irrelevant, since even a search would probably
> turn up thousands of records in such a humungous dataset.
>
> So, will we ever get to this higher form of DataTable, or will I have to
> continue to dream?
>
> Best regards,
>  Christian Tiberg
>

Pagination will not be abandoned in YUI 3.  It is a well understood design
pattern.  A scrollable interface that limits fetched table records to those
appropriate to display in a scrolled region has been on the todo list for YUI 2
DataTable as well and will undoubtedly be addressed in YUI 3 at some point--we
have to get DataTable into YUI 3 first :)

Of course, YUI is an open source library and we welcome feature contributions,
so you don't have to wait for us to implement it!

Luke

#51866 From: Brendan Vogt <brendan.vogt@...>
Date: Thu Oct 8, 2009 5:51 pm
Subject: Grid in YUI 3?
brendan.vogt@...
Send Email Send Email
 
Hi,
 
Is grids still part the YUI framework 3?
 
Brendan

#51867 From: "Craig" <craig_music@...>
Date: Thu Oct 8, 2009 6:48 pm
Subject: upon initial load, all content pushed down in webkit browser by container
craig_music
Send Email Send Email
 
Hello,

   Thanks for all the help in these forums guys.

   I'm having a problem with a new page I'm creating. On webkit browsers, upon
initial load of the page, sometimes all the content is pushed down and there is
white space for about 50 pixels at the top of the page.

  Link to effect in safari with dev window open:
http://www.flickr.com/photos/12756057@N07/3992956597/sizes/l/

   It seems the problem is due because the 'rendered containers' in this case
simple dialogues instead of actually being hidden are actually taking up space,
they are not visible, but still taking up space.

   I was initially using onDomReady to send various ajax calls to get initial
content for the Table and other search items and that caused the problem to
accur very frequently.

   I changed onDomReady to window onload and this has reduced the frequency of
this problem, perhaps this is some sort of race condition.

   The code is quite extensive, and I'll be glad to add anything here, but
thought this might be enought to get a pointer from someone.

  The initial jsp page includes all the necessary yui components (2.7.0) and i
never get this problem on non-webkit browsers.

  at the end of my jsp, i'm actually calling:
	 <script type="text/javascript">
		 window.onload = function() {
			 createTable();
			 filter();
			 updatePortfolioSummary();
			 init();
		 }

	 </script>

Very simple, and pretty much each of these functions will send an ajax call
using connection mamanger to create the elements seen from the image, DataTable,
simpledialogue which serves as search on left, and other data gathering.

Any clues would be greatly appreciated!

#51869 From: Matt Sweeney <msweeney@...>
Date: Fri Oct 9, 2009 1:35 am
Subject: Re: YUI Animation : Hiding a DIV element with a FORM elements inside
matt.sweeney
Send Email Send Email
 
r2b2_ry wrote:
> Hi,
> I enclosed a form within div tags and then i wanted to hide the div container
of the form when a button is click :
>
> var attributes = {height: { to: 0 },width: {to:0}};
>
> var anim = new YAHOO.util.Anim('projectFilterContainer', attributes, 1,
YAHOO.util.Easing.easeOut);
>
> when i call anim.animate() , the div does hide but the Form and its elements
are retained. How can I hide a div and its child nodes?
>
> Thanks !
>

Hi,

Without seeing the rest of the implementation code, I would guess that
setting overflow:hidden on the containing element will fix this.

If not, send along the rest of the code, and I will take a look.

-Matt

#51870 From: Satyen Desai <sdesai@...>
Date: Fri Oct 9, 2009 1:46 am
Subject: Re: upon initial load, all content pushed down in webkit browser by container
sdezzi
Send Email Send Email
 
Hi,
Take a look at the progressive enhancement technique ("Avoiding The
Initial Flash Of Unstyled Content") used in the following examples:

http://developer.yahoo.com/yui/examples/container/module.html
http://developer.yahoo.com/yui/examples/container/dialog-quickstart.html

By window load (I imagine the init() function is creating your Dialog
instances), the page should have retrieved the container CSS required
to position the Dialog absolutely and hide it, thereby removing the
whitespace.

Hope that helps.
Satyen


On Oct 8, 2009, at 11:48 AM, Craig wrote:

> Hello,
>
> Thanks for all the help in these forums guys.
>
> I'm having a problem with a new page I'm creating. On webkit
> browsers, upon initial load of the page, sometimes all the content
> is pushed down and there is white space for about 50 pixels at the
> top of the page.
>
> Link to effect in safari with dev window open:
> http://www.flickr.com/photos/12756057@N07/3992956597/sizes/l/
>
> It seems the problem is due because the 'rendered containers' in
> this case simple dialogues instead of actually being hidden are
> actually taking up space, they are not visible, but still taking up
> space.
>
> I was initially using onDomReady to send various ajax calls to get
> initial content for the Table and other search items and that caused
> the problem to accur very frequently.
>
> I changed onDomReady to window onload and this has reduced the
> frequency of this problem, perhaps this is some sort of race
> condition.
>
> The code is quite extensive, and I'll be glad to add anything here,
> but thought this might be enought to get a pointer from someone.
>
> The initial jsp page includes all the necessary yui components
> (2.7.0) and i never get this problem on non-webkit browsers.
>
> at the end of my jsp, i'm actually calling:
> <script type="text/javascript">
> window.onload = function() {
> createTable();
> filter();
> updatePortfolioSummary();
> init();
> }
>
> </script>
>
> Very simple, and pretty much each of these functions will send an
> ajax call using connection mamanger to create the elements seen from
> the image, DataTable, simpledialogue which serves as search on left,
> and other data gathering.
>
> Any clues would be greatly appreciated!
>
>
>

#51871 From: Christian Tiberg <ctiberg@...>
Date: Fri Oct 9, 2009 6:41 am
Subject: Re: Re: DataTable pagination abandoned in 3.0?
ctiberg
Send Email Send Email
 
Yes of course, I'm all for search & sort, just saying that it should be possible to scroll through a large data volume using DataTable.

Best regards,
 Christian Tiberg


2009/10/8 Luke <lucas.e.smith@...>
 



--- In ydn-javascript@yahoogroups.com, Christian Tiberg <ctiberg@...> wrote:
>
> Hello!
>
> I hope to hear that the DataTable in YUI 3 has abandoned pagination in favor
> of something, say, a bit more natural. Present a user with a table of data
> and a scrollbar. Will he try to drag the scrollbar to the approximate
> position he needs, or will he try to guess a page number at random? It's
> your guess, enough said.
>
> In an ideal world, I'd like to see something that client programs in all
> modern OS's have had for years - virtual lists. You simply tell the
> DataTable that there are 1,497,977,412 rows, and the first screenful is
> displayed, along with a scrollbar. You might say that with such a huge
> number of rows, a search is the most efficient way to find what one's
> looking for - but that's also irrelevant, since even a search would probably
> turn up thousands of records in such a humungous dataset.
>
> So, will we ever get to this higher form of DataTable, or will I have to
> continue to dream?
>
> Best regards,
> Christian Tiberg
>

Pagination will not be abandoned in YUI 3. It is a well understood design pattern. A scrollable interface that limits fetched table records to those appropriate to display in a scrolled region has been on the todo list for YUI 2 DataTable as well and will undoubtedly be addressed in YUI 3 at some point--we have to get DataTable into YUI 3 first :)

Of course, YUI is an open source library and we welcome feature contributions, so you don't have to wait for us to implement it!

Luke



#51872 From: m_nhk <m_nhk@...>
Date: Fri Oct 9, 2009 3:58 pm
Subject: Creating dynamic containers
m_nhk
Send Email Send Email
 
I want to be able to instantiate multiple panels dynamically, the examples in
YUI create the panels by hard coding when instantiating the Panels, thus:

YAHOO.example.container.panel1 = new YAHOO.widget.Panel("panel1" ...
YAHOO.example.container.panel2 = new YAHOO.widget.Panel("panel2" ...
YAHOO.example.container.panel3 = new YAHOO.widget.Panel("panel3" ...

I would be able to name the Panels dynamically by creating a global counter
function and do something like

{
counter++;
return "panel"+counter;
}

but I don't see how I can dynamically create the variable to reference:

YAHOO.example.container.panel1

any help on this would be great, I basically want to create a 1..n popups
thx

--
View this message in context:
http://www.nabble.com/Creating-dynamic-containers-tp25823496p25823496.html
Sent from the ydn-javascript mailing list archive at Nabble.com.

Messages 51842 - 51872 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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