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: 12954
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 33559 - 33588 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#33559 From: "tntnashtm123" <nash.rsa@...>
Date: Mon Jun 30, 2008 8:12 am
Subject: Re: Datatable - initially hidden col width
tntnashtm123
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, "y_lsmith" <lsmith@...> wrote:
>
> >
> > Thnaks for the patch Luke, it works great, however child columns with
> > the parent hidden initially still come up with minWith when shown -
> > any fixes for this ?
> >
> > Thanks
> > Tim
> >
>
> I've updated the bug to include this detail.  I'd be interested to see
> a sample page illustrating your use case.  Specifically because
> there's another bug whereby declaring parent headers hidden at
> construction doesn't work (the column and its children are not
collapsed).
>
> You might be able to get away with something like this:
> YAHOO.widget.Column.correctAutoWidth = function () {
>     if (this.width === this.minWidth &&
>         this.width === YAHOO.widget.Column.prototype.minWidth) {
>         this.width = null;
>         if (YAHOO.lang.isArray(this.children)) {
>             for (var i = this.children.length - 1; i >= 0; --i) {
>                 this.children[i].correctAutoWidth();
>             }
>         }
>     }
> };
>
> // ... construct the DataTable instance, then
>
> myDataTable.showColumn = function (col) {
>     var c = this.getColumn(col);
>     if (c) {
>         YAHOO.widget.DataTable.prototype.showColumn.call(this,col);
>         c.correctAutoWidth();
>         this._syncColWidths();
>     }
> };
>
> Not thoroughly tested, so YMMV.
>
> Luke
>


Luke  - I was/am hiding the nested cols in response to the DataTable
init event so it is not an "initially hidden" col although the
behavior is similar.

thanks
Tim

#33560 From: "Matt Hackett" <richtaur@...>
Date: Mon Jun 30, 2008 8:13 am
Subject: Re: Anonymous Function Hellp
richtaur
Send Email Send Email
 
Your question is kind of sporadic. Anonymous functions are just one
way about getting things done and shouldn't have anything to do with a
particular task. Are you sure you know what you're asking?

To make an input's value all caps on the blur event, try:

yourElement.onblur = function() {
this.value = this.value.toUpperCase();
}; // YUI's YAHOO.util.Event.addListener method is a better way though

For more information on assigning listeners to inputs, see this page:
http://scriptnode.com/article/dynamic-input/

-Matt

--- In ydn-javascript@yahoogroups.com, "jusscriptin" <jusscriptin@...>
wrote:
>
> How do I use anonymous functions to create an input field that converts
> values to uppercase once focus is lost?

#33561 From: "Matt Hackett" <richtaur@...>
Date: Mon Jun 30, 2008 8:20 am
Subject: Re: Fixed Width Tab
richtaur
Send Email Send Email
 
Hi,

I'm not familiar with TabView but style="height=300px;" is incorrect
syntax. Use attribute:value;, so style="height:300px;"

-Matt
http://scriptnode.com/

--- In ydn-javascript@yahoogroups.com, "samrcin" <samikr@...> wrote:
>
> Hello,
> I am trying to create fixed-width tabs using TabView. I was referring
> to the following post:
> http://tech.groups.yahoo.com/group/ydn-javascript/message/32627
>
> I tried doing the following:
> --------------------------------------------------------------
> <div class="yui-content">
>     <div id="tab1" style="height=300px; overflow=auto;">
>     DIV Content
>     </div>
>
>     <div id="tab2" style="height=300px; overflow=auto;">
>     DIV Content
>     </div>
>
>     <div id="tab3" style="height=300px; overflow=auto;">
>     DIV Content
>     </div>
> </div>
> ---------------------------------------------------------------
>
> This works nicely in IE(IE7), but not in FF (FF3). Any other ideas to
> achieve this?
> Thanks.

#33562 From: "Matt Hackett" <richtaur@...>
Date: Mon Jun 30, 2008 8:25 am
Subject: Re: Removing inline styles
richtaur
Send Email Send Email
 
Hi Robert,

Not quite sure what you mean. To reset opacity (back to 100%, I
assume), I tried:

YAHOO.util.Dom.setStyle(element, 'opacity', 1);

And that worked fine in standard browsers. What's the issue you're having?

-Matt
http://scriptnode.com/

--- In ydn-javascript@yahoogroups.com, "Robert" <rpottorff@...> wrote:
>
> At the end of my animation, I want to remove the opacity and height
> properties from the styling - but using
>
> Dom.setStyle(element, 'opacity', '');
>
> doesn't work for IE, the Filter and Zoom properties are still set -- I
> can get around this by combining it with
>
> element.style.zoom = null;
> element.style.filter = null; // this results in FILTER: null -- not
ideal
>
> I'm curious, is it possible to clear the inline styling somehow with
> YUI, Dom.setStyle(element, 'opacity', null) seems like it should be,
> any ideas?
>
> Robert

#33563 From: "peychevi" <iliyan.peychev@...>
Date: Mon Jun 30, 2008 8:34 am
Subject: Re: layout manager resize event!!!!!!
peychevi
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, "ozgursusoy" <ozgursusoy@...> wrote:
> great logic, works with certain examples on certain browser so there
> is nothing wrong with it!!

It works with all supported browsers; I hope you are not testing with Lynx?

> the fact that the code that works in 2.5.0
> stops working on 2.5.2 and starts working again when reverted to 2.5.0
> is a fairly clear sign of a problem with the event! not to mention
> that there were bugfixes on that event in 2.5.1 which can introduce
> new bugs!

The fact your application stopped to work doesn't mean there is a problem with layout manager's resize event.
The reason for issue like yours could be a change in the interface.
For example, DataTable's method getTableEl()  has been removed in 2.5.2 as described here (see "API changes"). The situation for somebody, who blindly upgrades to 2.5.2 will be exactly the same like yours - DataTable will "stop to work" and reverting will "fix" the problem.

> thanx for the sourceforge link though, will be reporting there.
>

Good.


Iliyan

#33564 From: "marclogemann" <ml@...>
Date: Mon Jun 30, 2008 11:21 am
Subject: TabView with DataSrc and embedded DataTable
marclogemann
Send Email Send Email
 
Hi,

i am trying to use a TabView which loads the tab contents via external
URL calls (DataSrc). In general this works for html style content but
if i want to embed a complete DataTable, its not shown.

The DataTable itself is ok because i can display it in standalone mode
(without TabView).

Are there any obstacles when embedding components in a TabView?


Thanks
Marc

#33565 From: Satyam <satyam@...>
Date: Mon Jun 30, 2008 12:31 pm
Subject: Re: TabView with DataSrc and embedded DataTable
satyamutsa
Send Email Send Email
 
The tabView will only insert the HTML read from the given URL into the
innerHTML of the div's content. That does not execute any JavaScript in
it, if that is what you expected.  You might want to check the Bubbling
Library dispatcher :
http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher.

Satyam


marclogemann wrote:
> Hi,
>
> i am trying to use a TabView which loads the tab contents via external
> URL calls (DataSrc). In general this works for html style content but
> if i want to embed a complete DataTable, its not shown.
>
> The DataTable itself is ok because i can display it in standalone mode
> (without TabView).
>
> Are there any obstacles when embedding components in a TabView?
>
>
> Thanks
> Marc
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date: 29/06/2008
15:09
>

#33566 From: "santini.alberto" <albertosantini@...>
Date: Mon Jun 30, 2008 12:33 pm
Subject: Layout with gutter...
santini.alberto
Send Email Send Email
 
Hello.

I should suggest to add in the documentation

http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_gutter

the gutter works fine (is displayed) only if the resize configuration
attribute is true as for instance

...
{position: 'left', width: 300, collapse: true, resize: true,
     body: 'nav', header: 'Navigator', gutter: '0 5 0 0px',
     minWidth: 10, scroll: {overflow: 'auto'}},
...

Ok... I am a newbie but I passed hours to understand the gutter
element was not displayed. :)

Thanks in advance,
Alberto Santini

#33567 From: "ak_9992000" <andrew@...>
Date: Mon Jun 30, 2008 1:01 pm
Subject: DragDrop fire custom Event to start dragging
ak_9992000
Send Email Send Email
 
What I'm trying to do

User gives mousedown event on a large div (with agenda layout).
A drapdrop element jumps to the location of the mousedown event.
User drags the dragdrop element to precisely locate the beginning time
for an appointment.
User releases mouse, dragdrop 'helper' element disappears and
appointment create window opens with information including precisely
located start time.

The problem

Having moved the dragdrop element to where the mousedown event occurred
(using Dom.setXY), how can I get it to start dragging without the user
having to reclick.

Thanks for any help.

#33568 From: Satyam <satyam@...>
Date: Mon Jun 30, 2008 1:02 pm
Subject: Re: Properly setting up a DataSource from a nested array
satyamutsa
Send Email Send Email
 
I can't see what is wrong with your code, if you can print the contents
of the array as you show, DataSource should be able to read it as well.
Perhaps if we could look at a working sample of it?

As to the other question, a DataSource can take a function as its
argument.  This function would receive a single argument with the
initialRequest argument (which might not be a string as it often is but
any value or object), and should return the data generated in whichever
format you want, it can be a JSARRAY or any as set in the responseType
property.  You can see it at work in:

http://www.satyam.com.ar/yui/2.5.0/TableWithDetails.html

In line 53, tableContentGenerator is the function generating the
values.  It is used further down at 80, 118, 156 and elsewhere.  (since
the data itself is meaningless, the same function is used for all).

The data does not need to be an array of objects with named properties,
it can also be an array of arrays.  Since fields are not named, the
values will be read in the order they come.  For a responseSchema such
as this:

full_datasource.responseSchema = {
                 fields: [ 'a', 'b', 'c']
};

This would be valid data:

[
[     'row1colA' ,     'row1colB' ,     'row1colC' ],
{ a: 'row2colA' , b: 'row2colB' , c: 'row2colC' },
{ c: 'row3colC' , b: 'row3colB' , a: 'row3colA' },
[     'row4colA' ,     'row4colB' ,    'row4colC' ]
]

DataSource will even take a mixed array of arrays of unnamed data and
objects with named properties all mixed up.  The unnamed ones have to be
in the right order, the named ones can be in any order as shown.  This
is an extreme example and you would usually opt for one or the other,
but DataSource doesn't mind.

Satyam


Dave Viner wrote:
> Hi,
>
> I am having trouble using the DataTable component - specifically
> setting the datasource to JSARRAY with my dynamically built javascript
> array.  I have an array of arrays.  The following code prints out some
> of the elements of my array:
>
>     var msg = 'Results\n';
>     for(var i =0; i < js_array_filter.length; i++)
>     {
>         msg += 'ISBN: ' + js_array_filter[i]['isbn13'] + ' => ' +
> js_array_filter[i]['total_price'] + '  => Condition ' +
> js_array_filter[i]['condition_text'] + '\n';
>     }
>     alert(msg);
>
> But, when I assign it as a datasource:
>
>     var full_datasource = new YAHOO.util.DataSource(js_array_filter);
>     full_datasource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
>     full_datasource.responseSchema = {
>                 fields: [ 'isbn13', 'isbn10', 'merchant_id',
> 'merchant_name', 'merchant_id', 'price', 'shipping_ground',
> 'total_price', 'link', 'condition_id', 'condition_text',
> 'availability_id', 'availability_text', 'comments']
>             };
>
> Then assign that datasource to a datatable:
>
>     var myColumnDefs2 = [
>                     {key:"merchant_name", label:"Merchant",
> sortable:true},
>                     {key:"condition_text", label:"Condition",
> sortable:true},
>                     {key:"price", label:"Price", sortable:true },
>                     {key:"shipping_ground", label:"Shipping",
> sortable: true },
>                     {key:"total_price", label:"Total", sortable:true },
>                     {key:"link", label:"Purchase",
> formatter:cb_link_formatter}
>                 ];
>
>     var myDataTable = new YAHOO.widget.DataTable("price_div",
> myColumnDefs2, full_datasource);
>
>
> The table shows up with the 6 columns, but all of them are empty.
>
> I think that the problem is in the structure of my javascript array
> passed to the datasource.  All of the examples use pre-defined arrays,
> e.g.,
>
> YAHOO.example.Data = {
>     bookorders: [
>         {id:"po-0167", date:new Date(1980, 2, 24), quantity:1,
> amount:4, title:"A Book About Nothing"},
>         {id:"po-0783", date:new Date("January 3, 1983"),
> quantity:null, amount:12.12345, title:"The Meaning of Life"},
>         {id:"po-0297", date:new Date(1978, 11, 12), quantity:12,
> amount:1.25, title:"This Book Was Meant to Be Read Aloud"},
>         {id:"po-1482", date:new Date("March 11, 1985"), quantity:6,
> amount:3.5, title:"Read Me Twice"}
>     ]
> }
>
>
> But, I can not do that, since my array is dynamically built.
>
> So, what's the right way for me to build this array?  It seems that an
> indexed array of associated arrays is not the right solution (since
> that's what I have).
>
> Are there any examples of dynamically built arrays?
>
> Thanks
> Dave Viner
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.101 / Virus Database: 270.4.3/1524 - Release Date: 28/06/2008
19:42
>

#33569 From: "marclogemann" <ml@...>
Date: Mon Jun 30, 2008 1:13 pm
Subject: Re: TabView with DataSrc and embedded DataTable
marclogemann
Send Email Send Email
 
Hi,

thanks for the link. I checked the bubbling llib and it covers exactly
my use case. But apart from that, i would expect that right inside YUI....

Marc

--- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
>
> The tabView will only insert the HTML read from the given URL into the
> innerHTML of the div's content. That does not execute any JavaScript in
> it, if that is what you expected.  You might want to check the Bubbling
> Library dispatcher :
> http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher.
>
> Satyam
>
>
> marclogemann wrote:
> > Hi,
> >
> > i am trying to use a TabView which loads the tab contents via external
> > URL calls (DataSrc). In general this works for html style content but
> > if i want to embed a complete DataTable, its not shown.
> >
> > The DataTable itself is ok because i can display it in standalone mode
> > (without TabView).
> >
> > Are there any obstacles when embedding components in a TabView?
> >
> >
> > Thanks
> > Marc
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date:
29/06/2008 15:09
> >
>

#33570 From: Satyam <satyam@...>
Date: Mon Jun 30, 2008 2:10 pm
Subject: Re: Re: TabView with DataSrc and embedded DataTable
satyamutsa
Send Email Send Email
 
Caridy did this library long ago, it works and has kept it updated ever
since.  Why would the YUI team bother to duplicate efforts?

Satyam


marclogemann wrote:
> Hi,
>
> thanks for the link. I checked the bubbling llib and it covers exactly
> my use case. But apart from that, i would expect that right inside YUI....
>
> Marc
>
> --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
>
>> The tabView will only insert the HTML read from the given URL into the
>> innerHTML of the div's content. That does not execute any JavaScript in
>> it, if that is what you expected.  You might want to check the Bubbling
>> Library dispatcher :
>> http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher.
>>
>> Satyam
>>
>>
>> marclogemann wrote:
>>
>>> Hi,
>>>
>>> i am trying to use a TabView which loads the tab contents via external
>>> URL calls (DataSrc). In general this works for html style content but
>>> if i want to embed a complete DataTable, its not shown.
>>>
>>> The DataTable itself is ok because i can display it in standalone mode
>>> (without TabView).
>>>
>>> Are there any obstacles when embedding components in a TabView?
>>>
>>>
>>> Thanks
>>> Marc
>>>
>>>
>>> ------------------------------------
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
> ------------------------------------------------------------------------
>
>>> No virus found in this incoming message.
>>> Checked by AVG.
>>> Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date:
>>>
> 29/06/2008 15:09
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date: 29/06/2008
15:09
>

#33571 From: Dav Glass <dav.glass@...>
Date: Mon Jun 30, 2008 2:30 pm
Subject: Re: about DD problem
dav.glass
Send Email Send Email
 
Kenny --

Inside the onDragDrop method for that example, you can place a counter to ensure
that only 2 items get added, then either destroy the DD instances or stop moving
them..

Does that make sense?
Dav

Dav Glass
dav.glass@...
blog.davglass.com




+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine  +



----- Original Message ----
From: Tseng Kuo-Ching <tseng_kuo_ching@...>
To: ydn-javascript@yahoogroups.com
Sent: Sunday, June 29, 2008 11:42:19 PM
Subject: [ydn-javascript] about DD problem

Hi:
Base on YUI's Drag & Drop
demo(http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder_clean.html), if
List 2 container (<ul id="ul2">) is empty(there is no any <li> item).Now I drag
& drop List 1's <li> item(<ul id="ul1">)to List 2 container.The question is how
to limited List 2 container only accept two <li> item which dragged & dropped
from List 1? thanks..

BR,
Kenny

________________________________
聰明搜尋和瀏覽網路的免費工具列 — Windows Live 搜尋工具列

#33572 From: Dav Glass <dav.glass@...>
Date: Mon Jun 30, 2008 2:38 pm
Subject: Re: Layout with gutter...
dav.glass
Send Email Send Email
 
Alberto --

I don't see any issue with the gutter in a Layout Unit with resize off..

I think you are confusing the gutter property with the collapse/collapseSize
property:
http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapse
http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_collapse\
Size

The gutter property allows you to add "padding" around the unit inside the
Layout. There is no HTML element associated with this setting.

So if you set the gutter on the right unit to be 5, then you set the width of
the unit to be 200. The unit would actually be about 190 pixels wide, since we
add 5 pixel's of padding on each side..

The collapse config option allows you to collapse a unit down to a smaller size
(clip), that clip is sized at 50 pixels by default, the collapseSize config
option determines that size..

Does all that make sense?
Dav

  Dav Glass
dav.glass@...
blog.davglass.com




+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine  +



----- Original Message ----
From: santini.alberto <albertosantini@...>
To: ydn-javascript@yahoogroups.com
Sent: Monday, June 30, 2008 5:33:17 AM
Subject: [ydn-javascript] Layout with gutter...

Hello.

I should suggest to add in the documentation

http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_gutter

the gutter works fine (is displayed) only if the resize configuration
attribute is true as for instance

...
{position: 'left', width: 300, collapse: true, resize: true,
     body: 'nav', header: 'Navigator', gutter: '0 5 0 0px',
     minWidth: 10, scroll: {overflow: 'auto'}},
...

Ok... I am a newbie but I passed hours to understand the gutter
element was not displayed. :)

Thanks in advance,
Alberto Santini




------------------------------------

Yahoo! Groups Links

#33573 From: "grimholtz" <grimholtz@...>
Date: Mon Jun 30, 2008 2:43 pm
Subject: Re: IE6 throws error in parseJSONData()
grimholtz
Send Email Send Email
 
The extra comma was the problem. Thanks, everyone!

#33574 From: Dav Glass <dav.glass@...>
Date: Mon Jun 30, 2008 2:45 pm
Subject: Re: DragDrop fire custom Event to start dragging
dav.glass
Send Email Send Email
 
ak_9992000 --

Since you are moving it before DragDrop can do anything with it, you might try
this approach:

After you move the element:

var dd = new YAHOO.util.DD(id); //Unless you already have this info..

dd.handleMouseDown(ev); //Pass the mousedown DOM event to the handleMouseDown
method of the dd instance

Does that help?
Dav

  Dav Glass
dav.glass@...
blog.davglass.com




+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine  +



----- Original Message ----
From: ak_9992000 <andrew@...>
To: ydn-javascript@yahoogroups.com
Sent: Monday, June 30, 2008 6:01:58 AM
Subject: [ydn-javascript] DragDrop fire custom Event  to start dragging

What I'm trying to do

User gives mousedown event on a large div (with agenda layout).
A drapdrop element jumps to the location of the mousedown event.
User drags the dragdrop element to precisely locate the beginning time
for an appointment.
User releases mouse, dragdrop 'helper' element disappears and
appointment create window opens with information including precisely
located start time.

The problem

Having moved the dragdrop element to where the mousedown event occurred
(using Dom.setXY), how can I get it to start dragging without the user
having to reclick.

Thanks for any help.


------------------------------------

Yahoo! Groups Links

#33575 From: "marclogemann" <ml@...>
Date: Mon Jun 30, 2008 2:48 pm
Subject: Re: TabView with DataSrc and embedded DataTable
marclogemann
Send Email Send Email
 
If i were the YUI project leader, i would kindly ask the guy to
integrate his stuff into YUI.

Of course i wouldnt duplicate things if he dont want it.

Marc

--- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
>
> Caridy did this library long ago, it works and has kept it updated ever
> since.  Why would the YUI team bother to duplicate efforts?
>
> Satyam
>
>
> marclogemann wrote:
> > Hi,
> >
> > thanks for the link. I checked the bubbling llib and it covers exactly
> > my use case. But apart from that, i would expect that right inside
YUI....
> >
> > Marc
> >
> > --- In ydn-javascript@yahoogroups.com, Satyam <satyam@> wrote:
> >
> >> The tabView will only insert the HTML read from the given URL
into the
> >> innerHTML of the div's content. That does not execute any
JavaScript in
> >> it, if that is what you expected.  You might want to check the
Bubbling
> >> Library dispatcher :
> >> http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher.
> >>
> >> Satyam
> >>
> >>
> >> marclogemann wrote:
> >>
> >>> Hi,
> >>>
> >>> i am trying to use a TabView which loads the tab contents via
external
> >>> URL calls (DataSrc). In general this works for html style
content but
> >>> if i want to embed a complete DataTable, its not shown.
> >>>
> >>> The DataTable itself is ok because i can display it in
standalone mode
> >>> (without TabView).
> >>>
> >>> Are there any obstacles when embedding components in a TabView?
> >>>
> >>>
> >>> Thanks
> >>> Marc
> >>>
> >>>
> >>> ------------------------------------
> >>>
> >>> Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >
------------------------------------------------------------------------
> >
> >>> No virus found in this incoming message.
> >>> Checked by AVG.
> >>> Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date:
> >>>
> > 29/06/2008 15:09
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 8.0.101 / Virus Database: 270.4.3/1525 - Release Date:
29/06/2008 15:09
> >
>

#33576 From: "zekenie" <zekenie@...>
Date: Mon Jun 30, 2008 3:08 pm
Subject: Uploader problem
zekenie
Send Email Send Email
 
Hi,
I'm getting an error in the YUI uploader....  I'm using the advanced uploader
sample code
right now.
"IO error for file0:
HTTP status error for file0:
Started upload for file0
Files Selected: BOXER_APP.rtf;
Browsing for one or more files..."

Now, I know everyone will say, "look at the php script to see why its working."
But I already
did that. First of all, I used the YUI sample php code, but secondly, I made my
own simple
HTML uploader form, and it worked fine with the same script. The permissions are
fine... I
just can't figure out what is causing the problem.

Any help would be great!


-Zeke

#33577 From: "riku.tuominen" <riku.tuominen@...>
Date: Mon Jun 30, 2008 3:11 pm
Subject: How to display realtime process information in the "loading"panel?
riku.tuominen
Send Email Send Email
 
Container "loading" panel - example
http://developer.yahoo.com/yui/examples/container/panel-loading.html

Any way possible to updating panel information while the new page is
loading.
That example loads page using YAHOO.util.Connect.asyncRequest
  and having "failure" and "success" events.

Anyway possible at server side to have php script to update a process
counter on "loading" panel?

#33578 From: "zekenie" <zekenie@...>
Date: Mon Jun 30, 2008 3:46 pm
Subject: Re: Uploader problem
zekenie
Send Email Send Email
 
It gets all the way through the file's upload.... so it makes me think the
problem is the move_uploaded_file($file['tmp_name'], "./" . $file['name']); in
php, because that line moves
the file from its temporary place and name to the real one. The problem with the
YUI
uploader is that the developer can't actually see the php page to see if it has
errors.

--- In ydn-javascript@yahoogroups.com, "zekenie" <zekenie@...> wrote:
>
> Hi,
> I'm getting an error in the YUI uploader....  I'm using the advanced uploader
sample
code
> right now.
> "IO error for file0:
> HTTP status error for file0:
> Started upload for file0
> Files Selected: BOXER_APP.rtf;
> Browsing for one or more files..."
>
> Now, I know everyone will say, "look at the php script to see why its
working." But I
already
> did that. First of all, I used the YUI sample php code, but secondly, I made
my own
simple
> HTML uploader form, and it worked fine with the same script. The permissions
are
fine... I
> just can't figure out what is causing the problem.
>
> Any help would be great!
>
>
> -Zeke
>

#33579 From: "Dave Viner" <daveviner@...>
Date: Mon Jun 30, 2008 4:03 pm
Subject: Re: Properly setting up a DataSource from a nested array [SOLVED]
daveviner
Send Email Send Email
 
I discovered the problem here.  The DataSource expects, not an array
of arrays or an array of associative arrays, but an array of Objects.

Thanks
Dave Viner

--- In ydn-javascript@yahoogroups.com, "Dave Viner" <daveviner@...> wrote:
>
> Hi,
>
> I am having trouble using the DataTable component - specifically
> setting the datasource to JSARRAY with my dynamically built javascript
> array.  I have an array of arrays.  The following code prints out some
> of the elements of my array:
>
>     var msg = 'Results\n';
>     for(var i =0; i < js_array_filter.length; i++)
>     {
>         msg += 'ISBN: ' + js_array_filter[i]['isbn13'] + ' => ' +
> js_array_filter[i]['total_price'] + '  => Condition ' +
> js_array_filter[i]['condition_text'] + '\n';
>     }
>     alert(msg);
>
> But, when I assign it as a datasource:
>
>     var full_datasource = new YAHOO.util.DataSource(js_array_filter);
>     full_datasource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
>     full_datasource.responseSchema = {
>                 fields: [ 'isbn13', 'isbn10', 'merchant_id',
> 'merchant_name', 'merchant_id', 'price', 'shipping_ground',
> 'total_price', 'link', 'condition_id', 'condition_text',
> 'availability_id', 'availability_text', 'comments']
>             };
>
> Then assign that datasource to a datatable:
>
>     var myColumnDefs2 = [
>                     {key:"merchant_name", label:"Merchant",
> sortable:true},
>                     {key:"condition_text", label:"Condition",
> sortable:true},
>                     {key:"price", label:"Price", sortable:true },
>                     {key:"shipping_ground", label:"Shipping",
> sortable: true },
>                     {key:"total_price", label:"Total", sortable:true },
>                     {key:"link", label:"Purchase",
> formatter:cb_link_formatter}
>                 ];
>
>     var myDataTable = new YAHOO.widget.DataTable("price_div",
> myColumnDefs2, full_datasource);
>
>
> The table shows up with the 6 columns, but all of them are empty.
>
> I think that the problem is in the structure of my javascript array
> passed to the datasource.  All of the examples use pre-defined arrays,
> e.g.,
>
> YAHOO.example.Data = {
>     bookorders: [
>         {id:"po-0167", date:new Date(1980, 2, 24), quantity:1,
> amount:4, title:"A Book About Nothing"},
>         {id:"po-0783", date:new Date("January 3, 1983"),
> quantity:null, amount:12.12345, title:"The Meaning of Life"},
>         {id:"po-0297", date:new Date(1978, 11, 12), quantity:12,
> amount:1.25, title:"This Book Was Meant to Be Read Aloud"},
>         {id:"po-1482", date:new Date("March 11, 1985"), quantity:6,
> amount:3.5, title:"Read Me Twice"}
>     ]
> }
>
>
> But, I can not do that, since my array is dynamically built.
>
> So, what's the right way for me to build this array?  It seems that an
> indexed array of associated arrays is not the right solution (since
> that's what I have).
>
> Are there any examples of dynamically built arrays?
>
> Thanks
> Dave Viner
>

#33580 From: Todd Kloots <kloots@...>
Date: Mon Jun 30, 2008 4:02 pm
Subject: Re: Controlling size of buttons
toddkloots
Send Email Send Email
 
Graham -

By size, do you mean width?  If so, check out this Button example:

http://developer.yahoo.com/yui/examples/button/btn_example12.html

- Todd

grahamellsmore wrote:
>
> Hello,
>
> Can anyone tell me the best way to control the size of buttons so that
> adjacent buttons are the same size?
>
> Thanks
> Graham
>
>

#33581 From: Todd Kloots <kloots@...>
Date: Mon Jun 30, 2008 4:07 pm
Subject: Re: HELP >>> HOW to access ButtonGroup Button element
toddkloots
Send Email Send Email
 
Use the "getButton" method of your ButtonGroup instance to retrieve a
Button instance.  Once you have a Button instance, you can use the "get"
method to access its value:

var oButton = oButtonGroup.getButton(0);
var someValue = oButton.get("value");

Got it?

- Todd

initial wrote:
>
> i have problem for acces ButtonGroup Button.
> for example i use YAHOO.widget function for create a ButtonGroup with
> name = "radio1" and there have a 3 Button that is
> {name: "per0" value: 1}
> {name: "per1" value: 2}
> {name: "per2" value: 3}
>
> my question is : how to access >>> "radio1.per0.value" or there
> value...per0 value???and radio1 value??im already open API doc but
> still confuse ^^"
>
> sorry if my english bad..
>
>

#33582 From: "dsmith21401" <dc_webmastr@...>
Date: Mon Jun 30, 2008 4:26 pm
Subject: Re: Uploader problem
dsmith21401
Send Email Send Email
 
It could be a lot of things.  First, make sure the path to the upload
handler file is correct.  And the handler MUST be pointing to a file,
not just a directory.  For example:

uploader.upload(idToUpload, '/useruploads/index.cfm')

NOT

uploader.upload(idToUpload, '/useruploads/')

Second, look at your web server logs...talking about Apache or IIS,
whatever is your backend.  Sometimes these logs provide extra info.

Third, what is the file size you are attempting to upload?  While
there is a 2Gb hard-limit imposed by Flash because it is a 32-bit
program, your web server and/or php app server might have their own
limits.  If you built a basic HTML form and it went through, that
means your web server (apache/iis) probably don't have a limit, but
if you used PHP and it stops working, then maybe there is a limit
there.

Fourth, make sure the SWF asset is on your server and not linked from
Yahoo or any other domain (cross-domain issues).

If you still can't figure out, please post your code and more
specifics about your setup.

#33583 From: "dsmith21401" <dc_webmastr@...>
Date: Mon Jun 30, 2008 4:34 pm
Subject: Re: Can Uploader also handle SESSION variables correctly?
dsmith21401
Send Email Send Email
 
I am using ColdFusion session variables within my YUI Uploader
implementation, and do not have any problems.  Every app language
handles different so you would have to be more specific or post some
code for more help.  I don't even know there is a session ID that the
Flash uploader creates?  I know it makes IDs for the files and lots of
other variables, but they are not "session" as far as I can tell.  Does
your program work correctly if you take away the login part?

--- In ydn-javascript@yahoogroups.com, "riku.tuominen"
<riku.tuominen@...> wrote:
>
> This problem is a huge bottleneck in my application.
> I would apreciate any help on this.
>
> Has anyone been able to use session variable in the upload script?
>
> Can someone verify that that it uses different Session id?
>

#33584 From: "malutanpetronel" <malutanpetronel@...>
Date: Mon Jun 30, 2008 4:37 pm
Subject: Delaying node.expand() when Nodes from Array
malutanpetronel
Send Email Send Email
 
I have a {"ResultSet":{"Result":['Vodka Cola','Ice Cola
Red'],"nodename":['Vodka Cola','Ice Cola Red'],"IsLeaf"
:['1','1'],"Reference":['1','4']}} and from Result[i] I try to find
pointer to nodes and expand them accordingly. So I do:
for (var i=0, j=oResults1.ResultSet.Result.length; i<j; i++) {
   var id = oResults1.ResultSet.Result[i];
   var nodeToExpand = tree.getNodeByProperty("id", id);
   document.getElementById('center1').innerHTML += i + "-" + id + "-"
+ nodeToExpand + ",";
   while(nodeToExpand.expand()){}
}
   If I comment the id, nodeToExpand, and while lines I get in that
center1 div all the nodes needed to be iterated :

6,0-Receipts-TaskNode (1) Receipts,1-Vodka Cola-null,2-Receipts-
TaskNode (1) Receipts,3-Receipts-TaskNode (1) Receipts,4-Receipts-
TaskNode (1) Receipts,5-Ice Cola Red-null,

otherwise I get :
6,0-Receipts-TaskNode (1) Receipts,1-Vodka Cola-null,

so it looks that the second step in the for cycle is pointing to a
null node which means the first node was not happen to be expanded
(which is false cause I see it expanded)...
   If I insert a alert(id); than all is fine
   The problem is that while(nodeToExpand.expand()){} seems to not be
the answer to my issue of waiting each nodes to be expanded... Any
ideea how to make them wait ?

I am very confused

With my kind regards looking for helps in delaying the nodes above...

Petronel

#33585 From: "dsmith21401" <dc_webmastr@...>
Date: Mon Jun 30, 2008 4:41 pm
Subject: Re: Uploader and PHP file size limitations
dsmith21401
Send Email Send Email
 
The only restriction the Flash upload has is a 2Gb max file size, and
that is due to the 32-bit architecture.  Adobe says they are working on
a 64-bit version, but we'll have to wait for that.

In terms of file chunking, no, Flash is not capable of that.  Java is
absolutely your best option.

If you are limited by your host then you should seriously look at
Amazon Web Services to host your applications.  It provides you all
kinds of virtual computer "instances" that have no limits on them
except whatever the operating system foundation you choose has.

Anyway, I am dealing with similar issues, but only above the 2gb limit.

Oh, you could try using FTP, but Flash does not support FTP protocal.
Just saying in terms of other programs.  FTP doesn't give you as many
options to capture data as HTTP, but it does get around file size
limits.

#33586 From: "dsmith21401" <dc_webmastr@...>
Date: Mon Jun 30, 2008 4:48 pm
Subject: Re: [ANN] Ylastic - Manage your AWS environment
dsmith21401
Send Email Send Email
 
What was the problem with large uploads?

S3 allows for direct posting of files, why didn't that work?

Did you try sending files to EC2 first, then move them up to S3?

It would be nice if there was a best practices document around
somewhere for doing this stuff.  I have a feeling a lot of us
developers are all basically inventing the wheel.  I know that's how I
feel.

Thanks again for any more details or specifics you can offer.  It's
very rare I run into anybody trying to do the same thing with YUI and
AWS.

--- In ydn-javascript@yahoogroups.com, "ylastic" <ylastic@...> wrote:
>
> Our first cut was to try and integrate YUI uploader for posting to S3.
> We had too many issues with getting it to work reliably, particularly
> for large uploads - 30MB+, that we gave up and instead have integrated
> jets3t into the application as the s3 browser for uploads.
>
> We actually had somewhat better luck with the moo.tools uploader, but
> still wasn't good enough. Sorry dont have any sample code, as this was
> a while back.

#33587 From: "Todd Wells" <ttopwells@...>
Date: Mon Jun 30, 2008 5:04 pm
Subject: disabling a menu
ttopwells
Send Email Send Email
 
I'd like to disable one of the menus on my menubar depending on the context, but I can't quite figure out the right way to do it.

What I thought was the right way doesn't seem to have any effect (the menu is still enabled and I can still pick any item on it):

var testPassMenu = oMenuBar.getSubmenus()[1];
testPassMenu.cfg.disabled = true;

What's the right way to do this?



#33588 From: Todd Kloots <kloots@...>
Date: Mon Jun 30, 2008 5:21 pm
Subject: Re: Check SubMenu Items
toddkloots
Send Email Send Email
 
Arup -

A MenuItem's submenu can be accessed via its "submenu" configuration
property:

http://developer.yahoo.com/yui/docs/YAHOO.widget.MenuItem.html#config_submenu

You might also find this section of the Menu landing page helpful:

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

- Todd

arup832003 wrote:
>
> Hi all,
>
> How can I access all the SubMenu Items of a MenuItem. So that, I can
> manipulate it's Configuration properties.
>
> But, I amn't getting How can I access all the SubMenu Items of a
> MenuIten as an object array of MenuItems.
>
> Please, help me in this regard.
>
>

Messages 33559 - 33588 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