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: 12937
  • 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 30087 - 30116 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#30087 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 8:23 am
Subject: Re: DYNAMIC TREE and DOMAIN NAME
satyamutsa
Send Email Send Email
 
What happens if you type that same URL into the address bar of the browser?
Can you see anything?  If the browser can reach that URL as a normal page
then the Connection Manager should, unless the data is in a domain different
from the page, but that wouldn't cause a 404 error.  So, try to fetch that
data as if it were a full page and see what happens.

Satyam

----- Original Message -----
From: "malutanpetronel" <malutanpetronel@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 8:41 AM
Subject: [ydn-javascript] DYNAMIC TREE and DOMAIN NAME


>I try to test a dynamic YUI tree
> I have configured on my development PC a yuitree_proxy.php called
> from the page which generate firstlevel of tree, this proxy.php is
> returning a string "a,b,c"
>
> In the callback I've tried to modify innerHTML for a div to see the
> response...
>    var callback = {
>        success: function(oResponse) {
> document.getElementById('tree').innerHTML =
> oResponse.responseText; ..........
>
>   but when click to expand a node I see in FIREBU a error which
> point to YAHOO.util.Connect=...
>   Could this error be generated by the fact the site where I test is
> it not a existing DNS name... is it defined only locally ?
> http://catalog:82/.... ?
>
> ERROR IS GET http://catalog:82/prog/newcatalog_proxy.php?
> query=Ecomax404 (15ms)....
>
> Or is it something else I should look for ?
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30088 From: "omrigez" <omrigez@...>
Date: Thu May 1, 2008 9:15 am
Subject: Rich text in simple dialog
omrigez
Send Email Send Email
 
Hi,

I have two questions:

1. When I initialize the rich text editor in IE after deleting the
temporary internet file I get only the text area in plain view without
any buttons or functionality. After existing IE and restart it again
it works just fine. Any ideas? I read the post 'Rich Text Editor's
Iframe in IE' and tried the suggestion solution on how to embed the
editor in IE, but it didn't solve the problem.

2. How can I export data from the rich text editor without the <p> tag?

Thanks,
Omrigez

#30089 From: "david_c1986" <david_c1986@...>
Date: Thu May 1, 2008 9:34 am
Subject: Datatable inline cell editing
david_c1986
Send Email Send Email
 
Hi
is there any way to edit directly into the cell rather than have a
textbox/textarea pop up? I want to allow users to edit directly into
cells and have the ability to use the tab and arrow keys to navigate
between the cells.
Any advice would be great
Thanks
David

#30090 From: "amirlaher" <amirlaher@...>
Date: Thu May 1, 2008 9:54 am
Subject: DataTable pagination issue (YUI version 2.5.0)
amirlaher
Send Email Send Email
 
Hi there,

The DataTable is a beautiful thing, but I've had one issue with it...

I've got serverside pagination working, but for some reason the
totalRecords wasn't being recognised without a hack. For some reason
it uses the recordsReturned value in place of totalRecords.

::: My responseSchema looks like this:
SENRO.clientsearch.myDataSource.responseSchema = {
	       		 resultsList: 'records',
	       		 fields: getResponseSchemaFields(SENRO.clientsearch.columnDefs),
	       		 metaFields : {
		             totalRecords: 'totalRecords',
		             paginationRecordOffset : "startIndex"
	       		 }
	         };

::: My server's JSON results look like this:
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,"dir":"asc\
"","records":[{"status":"1",
....
}

** My config looks like this
SENRO.clientsearch.configs = {
        	     initialRequest : initRequest,
        	     generateRequest : SENRO.clientsearch.buildQueryString,
				 paginator: new YAHOO.widget.Paginator({
					 rowsPerPage : 20,
					 template: "{FirstPageLink} {PreviousPageLink} {PageLinks}
{NextPageLink} {LastPageLink} {CurrentPageReport}",
					 pageReportTemplate : "Showing items {startIndex} - {endIndex} of
{totalRecords}",
					 totalRecords: SENRO.clientsearch.resultcount,

			     }),
				 renderLoopSize : 20,
				 scrollable: false,
				 paginated: true,
//        	    paginationEventHandler :
SENRO.clientsearch.handlePagination,
        	     paginationEventHandler :
YAHOO.widget.DataTable.handleDataSourcePagination,
        	     recordOffset: 0
				 };

I haven't posted the whole of the code because it's not for public
consumption, let me know if you need more info.

The hack I used to fix it was to store the totalRecords amount
separately in the page, and hack together a different
paginationEventHandler.
I copied and pasted the handleSimplePagination and
handleDataSourcePagination functions straight out of
datatable-beta-debug.js, and hard-coded the totalRecords value into my
modified handleSimplePagination function.

I can live with this, but it's not ideal. I can't really figure out
what's wrong with my setup that it's not taking note of my
totalRecords value. Is this a known issue?

Cheers,

Amir

#30091 From: abhishek Reddy <yui_query@...>
Date: Thu May 1, 2008 11:13 am
Subject: Re: Re: Is it possible to change the root node image in the tree view?
yui_query
Send Email Send Email
 
how do i do that?
tell me its urgent

fx_aeb <fx_aeb@...> wrote:
Hi,

You can change this CSS property:

.ygtvtp {
background:transparent url(treeview-sprite.gif) no-repeat scroll 0pt
-6400px;
}

and also the .ygtvtm . So you can add your own, which will change
every image of your tree. (tips:You can use firebug to find which
class correspond to which element)

If you only want to change for the first level, you should consider
using icons:
http://developer.yahoo.com/yui/examples/treeview/customicons.html
or adding a custom class to the first level

If you have any more problem, please send a sample of your code.

Francois-Xavier Aeberhard



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

#30092 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 11:59 am
Subject: Re: Datatable inline cell editing
satyamutsa
Send Email Send Email
 
This example:

http://www.satyam.com.ar/yui/#assortedControls

might help.  It was done for 2.4 and then slightly changed for 2.5, your
choice.

Anyway, regarding textboxes, the issue is how to make sure the user
confirmation or cancel of the entry, that is the part I don't like much
about not having an obvious means of confirming or canceling the change.
That, of course, is relevant if you are sending the changes to the server
each time.  If, as with spreadsheets, you save changes for the whole sheet
at once, that should not be a problem.

Another way is if in the columns definitions you set
editorOptions:{disableBtns:true} then the Ok/Cancel buttons won't show and
the cell editor will adjust more tightly to the underlying cell. If not,
look at method editTextbox in datatable-beta.js and use it as the basis to
define your own editor. That one and showCellEditor is where the size of the
overlaying edit box is set. Don't bother changing showCellEditor, you can
fix any sizing done there in your own editor.

There used to be a bug that if you disabled buttons there was no way to save
the changes.  I see it has been fixed for the current version, if you press
enter it will save the changes.  If you are using a previous version, Enter
might not have any effect.

Any handling of arrow keys to move around, saving changes and activating the
cell editor on the moved-to cell is not supported, you'll have to handle
that.  In that same formatTextbox you can see how the Enter key is handled
(keyCode == 13) you can do the same for other keys.  Methods saveCellEditor,
cancelCellEditor and showCellEditor are the key methods you would need to
use..

Satyam

----- Original Message -----
From: "david_c1986" <david_c1986@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 11:34 AM
Subject: [ydn-javascript] Datatable inline cell editing


> Hi
> is there any way to edit directly into the cell rather than have a
> textbox/textarea pop up? I want to allow users to edit directly into
> cells and have the ability to use the tab and arrow keys to navigate
> between the cells.
> Any advice would be great
> Thanks
> David
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30093 From: "Tom Cloyd, M.S., M.A." <tomcloyd@...>
Date: Thu May 1, 2008 12:03 pm
Subject: HTML tidy messing up grid structure
tomcloyd2001
Send Email Send Email
 
I have just joined this List, and searched for posts re: this problem,
and have come up with zip, so here it is:

I'm only trying to set up a page using one of the YUI grids. After
having worked with several different arrangements, I've found that
some cannot stand up to Tidy. It strips out various "div" wrappers,
with no error being registered. I haven't yet found a pattern to it.

I'm running tidy from within the jEdit editor, and have good access to
the tidy configuration parameters, but nothing I've tried so far has
fixed the problem from that end of things. At this point I simple
don't dare tidy my pages - doing so breaks them, plain and simple.
This is clearly not good.

I'm hoping someone else has had and solved this problem.

Any ideas as to the source of the problem?

#30094 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 12:11 pm
Subject: Re: DataTable pagination issue (YUI version 2.5.0)
satyamutsa
Send Email Send Email
 
In the constructor to the Paginator you have:

totalRecords: SENRO.clientsearch.resultcount,

I am not sure what it might do.  It is not required and I suspect that if
resultcount is zero or undefined, it might end up erasing totalRecords as it
came in the metaFields description.  If that is so, when totalRecords is
undefined, the paginator reads the actual number of records present in the
data array, not the recordsReturned field, which it knows nothing about, but
it simply reads the length of the recordSet.  That's what might be
happening.

Satyam



----- Original Message -----
From: "amirlaher" <amirlaher@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 11:54 AM
Subject: [ydn-javascript] DataTable pagination issue (YUI version 2.5.0)


> Hi there,
>
> The DataTable is a beautiful thing, but I've had one issue with it...
>
> I've got serverside pagination working, but for some reason the
> totalRecords wasn't being recognised without a hack. For some reason
> it uses the recordsReturned value in place of totalRecords.
>
> ::: My responseSchema looks like this:
> SENRO.clientsearch.myDataSource.responseSchema = {
>        resultsList: 'records',
>        fields: getResponseSchemaFields(SENRO.clientsearch.columnDefs),
>        metaFields : {
>             totalRecords: 'totalRecords',
>             paginationRecordOffset : "startIndex"
>        }
>         };
>
> ::: My server's JSON results look like this:
>
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,"dir":"asc\
"","records":[{"status":"1",
> ....
> }
>
> ** My config looks like this
> SENRO.clientsearch.configs = {
>            initialRequest : initRequest,
>            generateRequest : SENRO.clientsearch.buildQueryString,
> paginator: new YAHOO.widget.Paginator({
> rowsPerPage : 20,
> template: "{FirstPageLink} {PreviousPageLink} {PageLinks}
> {NextPageLink} {LastPageLink} {CurrentPageReport}",
> pageReportTemplate : "Showing items {startIndex} - {endIndex} of
> {totalRecords}",
> totalRecords: SENRO.clientsearch.resultcount,
>
>     }),
> renderLoopSize : 20,
> scrollable: false,
> paginated: true,
> //            paginationEventHandler :
> SENRO.clientsearch.handlePagination,
>            paginationEventHandler :
> YAHOO.widget.DataTable.handleDataSourcePagination,
>            recordOffset: 0
> };
>
> I haven't posted the whole of the code because it's not for public
> consumption, let me know if you need more info.
>
> The hack I used to fix it was to store the totalRecords amount
> separately in the page, and hack together a different
> paginationEventHandler.
> I copied and pasted the handleSimplePagination and
> handleDataSourcePagination functions straight out of
> datatable-beta-debug.js, and hard-coded the totalRecords value into my
> modified handleSimplePagination function.
>
> I can live with this, but it's not ideal. I can't really figure out
> what's wrong with my setup that it's not taking note of my
> totalRecords value. Is this a known issue?
>
> Cheers,
>
> Amir
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30095 From: "Jacques" <news@...>
Date: Thu May 1, 2008 12:40 pm
Subject: Making a panel visible directly with javascript instead of listener
pspri92229
Send Email Send Email
 
I have a panel that I need to make visible with pure javascript not
any of the listeners.

the reason is because there are multiple of these objects, and it
would be unreasonable in my situation to create a listener for each
object.

more detailed explanation:

I have a list of products in a table that is dynamically generated
from a database. I want to take make each of the products in the table
a link that pushes a URL into a specific. The url is always slightly
different to accomodate for the different ID of the product, but the
panel is always the same panel. Make sense?

#30096 From: "amirlaher" <amirlaher@...>
Date: Thu May 1, 2008 12:51 pm
Subject: Re: DataTable pagination issue (YUI version 2.5.0)
amirlaher
Send Email Send Email
 
Hi Satyam, wow that was quick - thanks.

I actually put that totalRecords in the constructor as an initial
attempt to remedy the problem. Sorry, I should have taken it out again
before posting. Just to be sure, I've taken it out and re-tried it. It
doesn't make any difference.

I'll strip out the recordsReturned from the response, thanks.

Any other ideas? If not I might have to dig deeper myself and perhaps
even submit a bug!

Thanks for your swift response

Amir



--- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
>
> In the constructor to the Paginator you have:
>
> totalRecords: SENRO.clientsearch.resultcount,
>
> I am not sure what it might do.  It is not required and I suspect
that if
> resultcount is zero or undefined, it might end up erasing
totalRecords as it
> came in the metaFields description.  If that is so, when
totalRecords is
> undefined, the paginator reads the actual number of records present
in the
> data array, not the recordsReturned field, which it knows nothing
about, but
> it simply reads the length of the recordSet.  That's what might be
> happening.
>
> Satyam
>
>
>
> ----- Original Message -----
> From: "amirlaher" <amirlaher@...>
> To: <ydn-javascript@yahoogroups.com>
> Sent: Thursday, May 01, 2008 11:54 AM
> Subject: [ydn-javascript] DataTable pagination issue (YUI version 2.5.0)
>
>
> > Hi there,
> >
> > The DataTable is a beautiful thing, but I've had one issue with it...
> >
> > I've got serverside pagination working, but for some reason the
> > totalRecords wasn't being recognised without a hack. For some reason
> > it uses the recordsReturned value in place of totalRecords.
> >
> > ::: My responseSchema looks like this:
> > SENRO.clientsearch.myDataSource.responseSchema = {
> >        resultsList: 'records',
> >        fields: getResponseSchemaFields(SENRO.clientsearch.columnDefs),
> >        metaFields : {
> >             totalRecords: 'totalRecords',
> >             paginationRecordOffset : "startIndex"
> >        }
> >         };
> >
> > ::: My server's JSON results look like this:
> >
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,"dir":"asc\
"","records":[{"status":"1",
> > ....
> > }
> >
> > ** My config looks like this
> > SENRO.clientsearch.configs = {
> >            initialRequest : initRequest,
> >            generateRequest : SENRO.clientsearch.buildQueryString,
> > paginator: new YAHOO.widget.Paginator({
> > rowsPerPage : 20,
> > template: "{FirstPageLink} {PreviousPageLink} {PageLinks}
> > {NextPageLink} {LastPageLink} {CurrentPageReport}",
> > pageReportTemplate : "Showing items {startIndex} - {endIndex} of
> > {totalRecords}",
> > totalRecords: SENRO.clientsearch.resultcount,
> >
> >     }),
> > renderLoopSize : 20,
> > scrollable: false,
> > paginated: true,
> > //            paginationEventHandler :
> > SENRO.clientsearch.handlePagination,
> >            paginationEventHandler :
> > YAHOO.widget.DataTable.handleDataSourcePagination,
> >            recordOffset: 0
> > };
> >
> > I haven't posted the whole of the code because it's not for public
> > consumption, let me know if you need more info.
> >
> > The hack I used to fix it was to store the totalRecords amount
> > separately in the page, and hack together a different
> > paginationEventHandler.
> > I copied and pasted the handleSimplePagination and
> > handleDataSourcePagination functions straight out of
> > datatable-beta-debug.js, and hard-coded the totalRecords value into my
> > modified handleSimplePagination function.
> >
> > I can live with this, but it's not ideal. I can't really figure out
> > what's wrong with my setup that it's not taking note of my
> > totalRecords value. Is this a known issue?
> >
> > Cheers,
> >
> > Amir
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> > 30/04/2008 18:10
> >
> >
>

#30097 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 1:04 pm
Subject: Re: Re: DataTable pagination issue (YUI version 2.5.0)
satyamutsa
Send Email Send Email
 
My own sample is not really different from the example along the docs, but
it might give you some clue.

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

Satyam

----- Original Message -----
From: "amirlaher" <amirlaher@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 2:51 PM
Subject: [ydn-javascript] Re: DataTable pagination issue (YUI version 2.5.0)


> Hi Satyam, wow that was quick - thanks.
>
> I actually put that totalRecords in the constructor as an initial
> attempt to remedy the problem. Sorry, I should have taken it out again
> before posting. Just to be sure, I've taken it out and re-tried it. It
> doesn't make any difference.
>
> I'll strip out the recordsReturned from the response, thanks.
>
> Any other ideas? If not I might have to dig deeper myself and perhaps
> even submit a bug!
>
> Thanks for your swift response
>
> Amir
>
>
>
> --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
>>
>> In the constructor to the Paginator you have:
>>
>> totalRecords: SENRO.clientsearch.resultcount,
>>
>> I am not sure what it might do.  It is not required and I suspect
> that if
>> resultcount is zero or undefined, it might end up erasing
> totalRecords as it
>> came in the metaFields description.  If that is so, when
> totalRecords is
>> undefined, the paginator reads the actual number of records present
> in the
>> data array, not the recordsReturned field, which it knows nothing
> about, but
>> it simply reads the length of the recordSet.  That's what might be
>> happening.
>>
>> Satyam
>>
>>
>>
>> ----- Original Message -----
>> From: "amirlaher" <amirlaher@...>
>> To: <ydn-javascript@yahoogroups.com>
>> Sent: Thursday, May 01, 2008 11:54 AM
>> Subject: [ydn-javascript] DataTable pagination issue (YUI version 2.5.0)
>>
>>
>> > Hi there,
>> >
>> > The DataTable is a beautiful thing, but I've had one issue with it...
>> >
>> > I've got serverside pagination working, but for some reason the
>> > totalRecords wasn't being recognised without a hack. For some reason
>> > it uses the recordsReturned value in place of totalRecords.
>> >
>> > ::: My responseSchema looks like this:
>> > SENRO.clientsearch.myDataSource.responseSchema = {
>> >        resultsList: 'records',
>> >        fields: getResponseSchemaFields(SENRO.clientsearch.columnDefs),
>> >        metaFields : {
>> >             totalRecords: 'totalRecords',
>> >             paginationRecordOffset : "startIndex"
>> >        }
>> >         };
>> >
>> > ::: My server's JSON results look like this:
>> >
>
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,"dir":"asc\
"","records":[{"status":"1",
>> > ....
>> > }
>> >
>> > ** My config looks like this
>> > SENRO.clientsearch.configs = {
>> >            initialRequest : initRequest,
>> >            generateRequest : SENRO.clientsearch.buildQueryString,
>> > paginator: new YAHOO.widget.Paginator({
>> > rowsPerPage : 20,
>> > template: "{FirstPageLink} {PreviousPageLink} {PageLinks}
>> > {NextPageLink} {LastPageLink} {CurrentPageReport}",
>> > pageReportTemplate : "Showing items {startIndex} - {endIndex} of
>> > {totalRecords}",
>> > totalRecords: SENRO.clientsearch.resultcount,
>> >
>> >     }),
>> > renderLoopSize : 20,
>> > scrollable: false,
>> > paginated: true,
>> > //            paginationEventHandler :
>> > SENRO.clientsearch.handlePagination,
>> >            paginationEventHandler :
>> > YAHOO.widget.DataTable.handleDataSourcePagination,
>> >            recordOffset: 0
>> > };
>> >
>> > I haven't posted the whole of the code because it's not for public
>> > consumption, let me know if you need more info.
>> >
>> > The hack I used to fix it was to store the totalRecords amount
>> > separately in the page, and hack together a different
>> > paginationEventHandler.
>> > I copied and pasted the handleSimplePagination and
>> > handleDataSourcePagination functions straight out of
>> > datatable-beta-debug.js, and hard-coded the totalRecords value into my
>> > modified handleSimplePagination function.
>> >
>> > I can live with this, but it's not ideal. I can't really figure out
>> > what's wrong with my setup that it's not taking note of my
>> > totalRecords value. Is this a known issue?
>> >
>> > Cheers,
>> >
>> > Amir
>> >
>> >
>> > ------------------------------------
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>> >
>> > --
>> > No virus found in this incoming message.
>> > Checked by AVG.
>> > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
>> > 30/04/2008 18:10
>> >
>> >
>>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30098 From: "Jacques" <news@...>
Date: Thu May 1, 2008 1:10 pm
Subject: Re: Making a panel visible directly with javascript instead of listener
pspri92229
Send Email Send Email
 
I got it half working but I think my implementation is wrong.

I have a URL you can look at

http://www.vimarksolutions.com/admin

the login box is fake.

Click investors, then click on a name. Now click the name 5-6 times
and then drag the detail box around...

I added the following to an onclick to get this effect

		 YAHOO.example.container.panel4 = new YAHOO.widget.Panel('panel4', {
visible:true } );
		 YAHOO.example.container.panel4.hide();
		 YAHOO.example.container.panel4.render();

Is there a way for me to make panel4 visible without creating a new
instance of it?

--- In ydn-javascript@yahoogroups.com, "Jacques" <news@...> wrote:
>
> I have a panel that I need to make visible with pure javascript not
> any of the listeners.
>
> the reason is because there are multiple of these objects, and it
> would be unreasonable in my situation to create a listener for each
> object.
>
> more detailed explanation:
>
> I have a list of products in a table that is dynamically generated
> from a database. I want to take make each of the products in the table
> a link that pushes a URL into a specific. The url is always slightly
> different to accomodate for the different ID of the product, but the
> panel is always the same panel. Make sense?
>

#30099 From: "Karr, David" <david.karr@...>
Date: Thu May 1, 2008 1:38 pm
Subject: RE: HTML tidy messing up grid structure
david.karr@...
Send Email Send Email
 
Just a guess, but are you perhaps using the strict doctype?  Did you validate your HTML against the doctype to make sure you don't have any violations?  For instance, one possibility is that you have "div" elements inside "p" elements, which violates the strict doctype.  I wonder if Tidy just "cleans it up" by removing those elements?


From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Tom Cloyd, M.S., M.A.
Sent: Thursday, May 01, 2008 5:04 AM
To: ydn-javascript@yahoogroups.com
Subject: [ydn-javascript] HTML tidy messing up grid structure

I have just joined this List, and searched for posts re: this problem,
and have come up with zip, so here it is:

I'm only trying to set up a page using one of the YUI grids. After
having worked with several different arrangements, I've found that
some cannot stand up to Tidy. It strips out various "div" wrappers,
with no error being registered. I haven't yet found a pattern to it.

I'm running tidy from within the jEdit editor, and have good access to
the tidy configuration parameters, but nothing I've tried so far has
fixed the problem from that end of things. At this point I simple
don't dare tidy my pages - doing so breaks them, plain and simple.
This is clearly not good.

I'm hoping someone else has had and solved this problem.

Any ideas as to the source of the problem?


#30100 From: "b.ellingson" <b.ellingson@...>
Date: Thu May 1, 2008 1:43 pm
Subject: Re: Slider within an expandable/collapsible div
b.ellingson
Send Email Send Email
 
Thanks for the help Luke.  Modifying the #demo class solved the problem.

--- In ydn-javascript@yahoogroups.com, "y_lsmith" <lsmith@...> wrote:
>
> This looks like a stacking context issue.
>
> I believe adding position: relative to the element that will be
> collapsed should handle it (#demo).
>
> For more expert advice, you can submit the question to the css-discuss
> list at http://css-discuss.org (search their archives first, of course)
>
> Hope this helps,
> Luke
>
> --- In ydn-javascript@yahoogroups.com, "b.ellingson" <b.ellingson@>
> wrote:
> >
> > Sorry should have put a link up in the first post.  Here it is
> > http://www.lib.byu.edu/~bd123/testSlide.php
> >
> > --- In ydn-javascript@yahoogroups.com, "y_lsmith" <lsmith@> wrote:
> > >
> > > --- In ydn-javascript@yahoogroups.com, "b.ellingson" <b.ellingson@>
> > > wrote:
> > > >
> > > > I have a div to which I have applied an animation to expand and
> > > > collapse its contents.  Within this div I have 2 different
sliders.
> > > > The problem I am running into is when I collapse the div in
IE7 the
> > > > sliders do not disappear with the rest of the content.  It works
> great
> > > > if Firefox BTW.  I'm wondering if anyone has tried to do something
> > > > similar and been able to find a work around.
> > > >
> > > > I would appreciate any ideas or other insights.
> > > >
> > > > Thanks for your help and this wonderful tool!
> > > >
> > > > Regards,
> > > >
> > > > Brent
> > > >
> > >
> > > Brent, do you have a sample page we could look at?
> > >
> >
>

#30101 From: Tom Cloyd <tomcloyd@...>
Date: Thu May 1, 2008 1:59 pm
Subject: Re: HTML tidy messing up grid structure
tomcloyd2001
Send Email Send Email
 
Karr, David wrote:
>
> Just a guess, but are you perhaps using the strict doctype?  Did you
> validate your HTML against the doctype to make sure you don't have any
> violations?  For instance, one possibility is that you have "div"
> elements inside "p" elements, which violates the strict doctype.  I
> wonder if Tidy just "cleans it up" by removing those elements?
>
>     ------------------------------------------------------------------------
>     *From:* ydn-javascript@yahoogroups.com
>     [mailto:ydn-javascript@yahoogroups.com] *On Behalf Of *Tom Cloyd,
>     M.S., M.A.
>     *Sent:* Thursday, May 01, 2008 5:04 AM
>     *To:* ydn-javascript@yahoogroups.com
>     *Subject:* [ydn-javascript] HTML tidy messing up grid structure
>
>     I have just joined this List, and searched for posts re: this problem,
>     and have come up with zip, so here it is:
>
>     I'm only trying to set up a page using one of the YUI grids. After
>     having worked with several different arrangements, I've found that
>     some cannot stand up to Tidy. It strips out various "div" wrappers,
>     with no error being registered. I haven't yet found a pattern to it.
>
>     I'm running tidy from within the jEdit editor, and have good access to
>     the tidy configuration parameters, but nothing I've tried so far has
>     fixed the problem from that end of things. At this point I simple
>     don't dare tidy my pages - doing so breaks them, plain and simple.
>     This is clearly not good.
>
>     I'm hoping someone else has had and solved this problem.
>
>     Any ideas as to the source of the problem?
>
>

David,

Thanks for your thoughts. Yes, I am validating against HTML strict, but
WHAT I'm validating is the initial code I get from YUI's Grids builder
at http://developer.yahoo.com/yui/grids/builder/, asking it to set up,
for example, a 95% width page with a left and right sidebar. Before I do
anything to it, I tidy it, and it breaks. This has happened with several
- the majority - of the preconfigured grid setups I've downloaded from
Yahoo and immediately run through Tidy. I'd think that maybe the problem
was with jEdit's tidy set up, but I've used it with several XHTML
website successfully for several years. And, as I said, when I looked at
the configuration carefully, I didn't see anything which would account
for the site-breaking. Tidy runs fine, and reports no errors, but
removes a div - different ones with different page templates - and
breaks the page.

Have never seen this problem before, which is one reason I'm not making
sense of it yet.

Any more ideas anyone?

T.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@... >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#30102 From: "amirlaher" <amirlaher@...>
Date: Thu May 1, 2008 3:12 pm
Subject: Re: DataTable pagination issue (YUI version 2.5.0)
amirlaher
Send Email Send Email
 
Satyam you're a hero!

Your example was enlightening, thanks.

All I needed to do was define a doBeforeCallback:

myDataSource.doBeforeCallback = function(oRequest, oFullResponse,
oParsedResponse) {
				 oParsedResponse.totalRecords =
parseInt(SENRO.clientsearch.resultcount);
				 return oParsedResponse;
			 };

My global object, SENRO, stores the totalRecords so I just used that -
perfect.

I'm not sure why it's necessary but this is a far more satisfactory
workaround than the one I hacked together

Thanks again, I'm bookmarking your example for future reference



--- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
>
> My own sample is not really different from the example along the
docs, but
> it might give you some clue.
>
> http://www.satyam.com.ar/yui/2.5.0/dt_serverdriven.html
>
> Satyam
>
> ----- Original Message -----
> From: "amirlaher" <amirlaher@...>
> To: <ydn-javascript@yahoogroups.com>
> Sent: Thursday, May 01, 2008 2:51 PM
> Subject: [ydn-javascript] Re: DataTable pagination issue (YUI
version 2.5.0)
>
>
> > Hi Satyam, wow that was quick - thanks.
> >
> > I actually put that totalRecords in the constructor as an initial
> > attempt to remedy the problem. Sorry, I should have taken it out again
> > before posting. Just to be sure, I've taken it out and re-tried it. It
> > doesn't make any difference.
> >
> > I'll strip out the recordsReturned from the response, thanks.
> >
> > Any other ideas? If not I might have to dig deeper myself and perhaps
> > even submit a bug!
> >
> > Thanks for your swift response
> >
> > Amir
> >
> >
> >
> > --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@> wrote:
> >>
> >> In the constructor to the Paginator you have:
> >>
> >> totalRecords: SENRO.clientsearch.resultcount,
> >>
> >> I am not sure what it might do.  It is not required and I suspect
> > that if
> >> resultcount is zero or undefined, it might end up erasing
> > totalRecords as it
> >> came in the metaFields description.  If that is so, when
> > totalRecords is
> >> undefined, the paginator reads the actual number of records present
> > in the
> >> data array, not the recordsReturned field, which it knows nothing
> > about, but
> >> it simply reads the length of the recordSet.  That's what might be
> >> happening.
> >>
> >> Satyam
> >>
> >>
> >>
> >> ----- Original Message -----
> >> From: "amirlaher" <amirlaher@>
> >> To: <ydn-javascript@yahoogroups.com>
> >> Sent: Thursday, May 01, 2008 11:54 AM
> >> Subject: [ydn-javascript] DataTable pagination issue (YUI version
2.5.0)
> >>
> >>
> >> > Hi there,
> >> >
> >> > The DataTable is a beautiful thing, but I've had one issue with
it...
> >> >
> >> > I've got serverside pagination working, but for some reason the
> >> > totalRecords wasn't being recognised without a hack. For some
reason
> >> > it uses the recordsReturned value in place of totalRecords.
> >> >
> >> > ::: My responseSchema looks like this:
> >> > SENRO.clientsearch.myDataSource.responseSchema = {
> >> >        resultsList: 'records',
> >> >        fields:
getResponseSchemaFields(SENRO.clientsearch.columnDefs),
> >> >        metaFields : {
> >> >             totalRecords: 'totalRecords',
> >> >             paginationRecordOffset : "startIndex"
> >> >        }
> >> >         };
> >> >
> >> > ::: My server's JSON results look like this:
> >> >
> >
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,"dir":"asc\
"","records":[{"status":"1",
> >> > ....
> >> > }
> >> >
> >> > ** My config looks like this
> >> > SENRO.clientsearch.configs = {
> >> >            initialRequest : initRequest,
> >> >            generateRequest : SENRO.clientsearch.buildQueryString,
> >> > paginator: new YAHOO.widget.Paginator({
> >> > rowsPerPage : 20,
> >> > template: "{FirstPageLink} {PreviousPageLink} {PageLinks}
> >> > {NextPageLink} {LastPageLink} {CurrentPageReport}",
> >> > pageReportTemplate : "Showing items {startIndex} - {endIndex} of
> >> > {totalRecords}",
> >> > totalRecords: SENRO.clientsearch.resultcount,
> >> >
> >> >     }),
> >> > renderLoopSize : 20,
> >> > scrollable: false,
> >> > paginated: true,
> >> > //            paginationEventHandler :
> >> > SENRO.clientsearch.handlePagination,
> >> >            paginationEventHandler :
> >> > YAHOO.widget.DataTable.handleDataSourcePagination,
> >> >            recordOffset: 0
> >> > };
> >> >
> >> > I haven't posted the whole of the code because it's not for public
> >> > consumption, let me know if you need more info.
> >> >
> >> > The hack I used to fix it was to store the totalRecords amount
> >> > separately in the page, and hack together a different
> >> > paginationEventHandler.
> >> > I copied and pasted the handleSimplePagination and
> >> > handleDataSourcePagination functions straight out of
> >> > datatable-beta-debug.js, and hard-coded the totalRecords value
into my
> >> > modified handleSimplePagination function.
> >> >
> >> > I can live with this, but it's not ideal. I can't really figure out
> >> > what's wrong with my setup that it's not taking note of my
> >> > totalRecords value. Is this a known issue?
> >> >
> >> > Cheers,
> >> >
> >> > Amir
> >> >
> >> >
> >> > ------------------------------------
> >> >
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > No virus found in this incoming message.
> >> > Checked by AVG.
> >> > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> >> > 30/04/2008 18:10
> >> >
> >> >
> >>
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> > 30/04/2008 18:10
> >
> >
>

#30103 From: Neil Erdwien <neil@...>
Date: Thu May 1, 2008 3:26 pm
Subject: Re: download YUI
agidihtf
Send Email Send Email
 
It looks like Sourceforge had an outage:

http://news.netcraft.com/archives/2008/04/30/slashdot_sourceforge_back_online_af\
ter_outage.html

However, if you've been trying for several days, perhaps something else
is wrong.  I just successfully re-downloaded 2.5.1 from Sourceforge with
no problems.


Octavian Rasnita wrote:
>
>
> Hi,
>
> I am a new member of this list and I want to download YUI, but the
> sourceforge servers are overcrowded, so I cannot download from there. I
> have
> tried for a few days but I still see Opening page...
>
> Does anyone know if I can download YUI and the documentation for it from
> somewhere else?
>
> Thank you.
>
> Octavian
>
>

--
Neil Erdwien, neil@..., 785-532-4905
Acting Associate Director / Web Technologies Manager
Computing and Telecommunications Services, Kansas State University

#30104 From: "monsieurdizzy" <ewalklet@...>
Date: Thu May 1, 2008 3:46 pm
Subject: (2.3.0) Pressing [Enter] on async Dialog forces POST submit in FF/Saf
monsieurdizzy
Send Email Send Email
 
Hello, everyone.

I am guessing this was an issue that was fixed in later versions of
YUI as we've missed a few upgrades, but I wanted to confirm before
attempting to tackle the problem any further.  We want all our
existing bugs squashed before upgrading to the latest version of YUI.

We have a number of Dialogs on our website.  These Dialogs do not have
their "postmethod" attribute configured, so they use the default
asynchronous method.  There are also no KeyListeners defined.

However, in Firefox and Safari, when the user presses the [Enter] key
while the Dialog box is in focus, the Dialog box submits.  Not only
that, but instead of using the default asynchronous method, it submits
using a POST, which causes all kinds of crazy things to happen, not
the least of which being a page reload.

Is this a known issue that was remedied in later versions of YUI, or
is something else mysterious going on?

Thank you very much.

#30105 From: "Raphael Bauduin" <rblists@...>
Date: Thu May 1, 2008 4:00 pm
Subject: datasource: json format expected
raphinou
Send Email Send Email
 
Hi,

Is the data source component able to work with this json?

{ "length" : 3,
"resources":  [
      {  "url": "http://localhost:3000/instances/5.json",
         "lock_version": 0,
         "entity_url": "http://localhost:3000/entities/1.json",
         "details_url": "http://localhost:3000/entities/1/details.json",
         "links_url": "http://localhost:3000/instances/5/links.json",
         "status": [
                { "url": "http://localhost:3000/details/5/values/3.json",
                  "lock_version": 0,
                  "value": "On-hold"}
         ],
         "title": [
               { "url": "http://localhost:3000/details/1/values/6.json",
                 "lock_version": 0, "value": "second test"}
         ],
         "deadline": [
              { "url": "http://localhost:3000/details/4/values/3.json",
                "lock_version": 0,
                "value": "2008-05-01 15:35:50"}
         ],
         "description": [
               { "url": "http://localhost:3000/details/2/values/7.json",
                 "lock_version": 0,
                 "value": "another descrpition"}
          ]
      }
   ]
}

As you can see there are nested objects. I always get a failure, even
when I try with parser functions.
Here is the latest version of my code, thanks for any hint to solve the problem.

Raph


var oCallback = {
   success: function(oRequest,oResponse,oPayload) {
     console.log('success');
   },
   failure: function(oRequest,oResponse,oPayload) {
     console.log('failure');
   },
   scope:this
}

var myDataSource = new
YAHOO.util.DataSource("http://localhost:3000/entities/1/instances.json?");
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema = {
	 fields: ["url", "lock_version", "entity_url","details_url",
"links_url", { "status" : function(status) { "status" }}, {"title":
function(t){"title"}} , {"deadline": function(t){"deadline"}},
{"description":function(v){"description"}} ],
         resultsList: "resources"
  };

myDataSource.sendRequest("test=1", oCallback);




--
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

#30106 From: "jeremymefford" <jeremymefford@...>
Date: Thu May 1, 2008 4:03 pm
Subject: Re: How to Connection.setForm() encode in utf-8
jeremymefford
Send Email Send Email
 
So I finally found out what I needed to do.  I'm not quite sure
exactly what the difference is between this and what I was trying to
do earlier... I get confused when trying to send strange characters in
the request.  In any case, here's the code that I ended up with and it
works like a charm.


         generatePostData: function(eForm) {
             var aElements = eForm.elements;
             var sPostData = "";
             for (var iter = 0;iter < aElements.length;iter++) {
                 var currElement = aElements[iter];
                 if (currElement.name) {
                     if (currElement.name != "") {
                         if (sPostData != "") {
                             sPostData += "&";
                         }
                         sPostData += currElement.name + "=" +
escape(currElement.value);
                     }
                 }
             }
             return sPostData;
         },

Thanks for your help though.

Best-
Jeremy

--- In ydn-javascript@yahoogroups.com, "jeremymefford"
<jeremymefford@...> wrote:
>
> Hi all-
>
> I'm having some difficulty with the connection.setForm() method.  It's
> encoding my form via ISO-8859-1 instead of utf-8.  I did:
>
> connection.initHeader("Content-Type","text/html; charset=utf-8");
>
> and that didn't do anything.  Also, the page that the form is on has a
> <meta> tag defining it as UTF-8.  Any help is greatly appreciated!
>
> Thanks-
> Jeremy
>

#30107 From: "bretlevy" <bret@...>
Date: Thu May 1, 2008 4:05 pm
Subject: Re: DataTable pagination issue (YUI version 2.5.0)
bretlevy
Send Email Send Email
 
Amir:

Can you try taking the quotes off the object literals in your
returned JSON?  You said you return this:

{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,
"dir":"asc"","records":[{"status":"1",...

Try:

{recordsReturned:300,totalRecords:5222,startIndex:0,sort:null,dir:"asc
",records:[{status:"1",...

I also notice you have an extra quote (") after the "asc" value.
This might solve your problem.

Hope it helps...

~~bret



--- In ydn-javascript@yahoogroups.com, "amirlaher" <amirlaher@...>
wrote:
>
> Hi there,
>
> The DataTable is a beautiful thing, but I've had one issue with
it...
>
> I've got serverside pagination working, but for some reason the
> totalRecords wasn't being recognised without a hack. For some reason
> it uses the recordsReturned value in place of totalRecords.
>
> ::: My responseSchema looks like this:
> SENRO.clientsearch.myDataSource.responseSchema = {
> 	       	 resultsList: 'records',
> 	       	 fields: getResponseSchemaFields
(SENRO.clientsearch.columnDefs),
> 	       	 metaFields : {
> 		            totalRecords: 'totalRecords',
> 		            paginationRecordOffset : "startIndex"
> 	       	 }
> 	        };
>
> ::: My server's JSON results look like this:
>
{"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,
"dir":"asc"","records":[{"status":"1",
> ....
> }
>
> ** My config looks like this
> SENRO.clientsearch.configs = {
>         	    initialRequest : initRequest,
>         	    generateRequest :
SENRO.clientsearch.buildQueryString,
> 			 paginator: new YAHOO.widget.Paginator
({
> 				 rowsPerPage : 20,
> 				 template: "{FirstPageLink}
{PreviousPageLink} {PageLinks}
> {NextPageLink} {LastPageLink} {CurrentPageReport}",
> 				 pageReportTemplate : "Showing
items {startIndex} - {endIndex} of
> {totalRecords}",
> 				 totalRecords:
SENRO.clientsearch.resultcount,
>
> 			    }),
> 			 renderLoopSize : 20,
> 			 scrollable: false,
> 			 paginated: true,
> //        	    paginationEventHandler :
> SENRO.clientsearch.handlePagination,
>         	    paginationEventHandler :
> YAHOO.widget.DataTable.handleDataSourcePagination,
>         	    recordOffset: 0
> 			 };
>
> I haven't posted the whole of the code because it's not for public
> consumption, let me know if you need more info.
>
> The hack I used to fix it was to store the totalRecords amount
> separately in the page, and hack together a different
> paginationEventHandler.
> I copied and pasted the handleSimplePagination and
> handleDataSourcePagination functions straight out of
> datatable-beta-debug.js, and hard-coded the totalRecords value into
my
> modified handleSimplePagination function.
>
> I can live with this, but it's not ideal. I can't really figure out
> what's wrong with my setup that it's not taking note of my
> totalRecords value. Is this a known issue?
>
> Cheers,
>
> Amir
>

#30108 From: Ivan Queiroz <ifqueiroz@...>
Date: Thu May 1, 2008 4:12 pm
Subject: Re: Treeview Help
ifqueiroz
Send Email Send Email
 
Adam,
 
Thanks for your response. At this point, I'm trying to understand how the whole thing works (this is the first time I am playing with the YUI, and I'm not really familiar with the framework). After I do that, I'll implement something similar to the demo in my application. The problem that I have with the demo is that I can't get the actual checkboxes to draw on the page... I may be missing something, but I can't see that that is. I do believe I'm using the same exact code as the sample, except that I removed all the YAHOO.log calls.
 
I appreciate any help you can give me.
 
Thanks,
 
Ivan

----- Original Message ----
From: Adam Moore <adamoore@...>
To: ydn-javascript@yahoogroups.com
Sent: Wednesday, April 30, 2008 4:16:46 PM
Subject: Re: [ydn-javascript] Treeview Help

On Wed, Apr 30, 2008 at 07:37:07PM -0000, ifqueiroz wrote:
> Would someone have an example of a working treeview with checkbox that
> you could share? I am having problem using the sample at
> http://developer.yahoo.com/yui/examples/treeview/tasklist.html.

Ivan, that is a working checkbox example.  What problems are you having
with it, and what exactly are you trying to accomplish?

-Adam

#30109 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 4:17 pm
Subject: Re: datasource: json format expected
satyamutsa
Send Email Send Email
 
The JSON message seems fine to me, though it is quite redundant in that you
have every nested object within an array that only contains that single
object.    Unless any of those arrays is actually meant to contain more than
one item (I guess "resources" would) they are quite unneeded and can only
make it harder on the parser.

What is wrong is the responseSchema.fields.  The items in the fields array
can be either simple strings giving the property name holding the value or
an object composed of a key and a parser property.  You have properties
status, deadline, description, title which are quite pointless, no matter
what they contain, the best it can be hoped is that the functions will be
ignored.

Satyam


----- Original Message -----
From: "Raphael Bauduin" <rblists@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 6:00 PM
Subject: [ydn-javascript] datasource: json format expected


> Hi,
>
> Is the data source component able to work with this json?
>
> { "length" : 3,
> "resources":  [
>     {  "url": "http://localhost:3000/instances/5.json",
>        "lock_version": 0,
>        "entity_url": "http://localhost:3000/entities/1.json",
>        "details_url": "http://localhost:3000/entities/1/details.json",
>        "links_url": "http://localhost:3000/instances/5/links.json",
>        "status": [
>               { "url": "http://localhost:3000/details/5/values/3.json",
>                 "lock_version": 0,
>                 "value": "On-hold"}
>        ],
>        "title": [
>              { "url": "http://localhost:3000/details/1/values/6.json",
>                "lock_version": 0, "value": "second test"}
>        ],
>        "deadline": [
>             { "url": "http://localhost:3000/details/4/values/3.json",
>               "lock_version": 0,
>               "value": "2008-05-01 15:35:50"}
>        ],
>        "description": [
>              { "url": "http://localhost:3000/details/2/values/7.json",
>                "lock_version": 0,
>                "value": "another descrpition"}
>         ]
>     }
>  ]
> }
>
> As you can see there are nested objects. I always get a failure, even
> when I try with parser functions.
> Here is the latest version of my code, thanks for any hint to solve the
> problem.
>
> Raph
>
>
> var oCallback = {
>  success: function(oRequest,oResponse,oPayload) {
>    console.log('success');
>  },
>  failure: function(oRequest,oResponse,oPayload) {
>    console.log('failure');
>  },
>  scope:this
> }
>
> var myDataSource = new
> YAHOO.util.DataSource("http://localhost:3000/entities/1/instances.json?");
> myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
> myDataSource.responseSchema = {
> fields: ["url", "lock_version", "entity_url","details_url",
> "links_url", { "status" : function(status) { "status" }}, {"title":
> function(t){"title"}} , {"deadline": function(t){"deadline"}},
> {"description":function(v){"description"}} ],
>        resultsList: "resources"
> };
>
> myDataSource.sendRequest("test=1", oCallback);
>
>
>
>
> --
> Web database: http://www.myowndb.com
> Free Software Developers Meeting: http://www.fosdem.org
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30110 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 4:21 pm
Subject: Re: Re: DataTable pagination issue (YUI version 2.5.0)
satyamutsa
Send Email Send Email
 
Actually, you might do worse by taking those quotes out.  If you include the
json component, the DataSource will use it and that one does expect the
property names to be enclosed in quotes, which is what the standard says.
If you don't include YUI's JSON component, the original parser in the
DataSource will tolerate those absent quotes.

Satyam



----- Original Message -----
From: "bretlevy" <bret@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 6:05 PM
Subject: [ydn-javascript] Re: DataTable pagination issue (YUI version 2.5.0)


>
> Amir:
>
> Can you try taking the quotes off the object literals in your
> returned JSON?  You said you return this:
>
> {"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,
> "dir":"asc"","records":[{"status":"1",...
>
> Try:
>
> {recordsReturned:300,totalRecords:5222,startIndex:0,sort:null,dir:"asc
> ",records:[{status:"1",...
>
> I also notice you have an extra quote (") after the "asc" value.
> This might solve your problem.
>
> Hope it helps...
>
> ~~bret
>
>
>
> --- In ydn-javascript@yahoogroups.com, "amirlaher" <amirlaher@...>
> wrote:
>>
>> Hi there,
>>
>> The DataTable is a beautiful thing, but I've had one issue with
> it...
>>
>> I've got serverside pagination working, but for some reason the
>> totalRecords wasn't being recognised without a hack. For some reason
>> it uses the recordsReturned value in place of totalRecords.
>>
>> ::: My responseSchema looks like this:
>> SENRO.clientsearch.myDataSource.responseSchema = {
>>        resultsList: 'records',
>>        fields: getResponseSchemaFields
> (SENRO.clientsearch.columnDefs),
>>        metaFields : {
>>             totalRecords: 'totalRecords',
>>             paginationRecordOffset : "startIndex"
>>        }
>>         };
>>
>> ::: My server's JSON results look like this:
>>
> {"recordsReturned":300,"totalRecords":5222,"startIndex":0,"sort":null,
> "dir":"asc"","records":[{"status":"1",
>> ....
>> }
>>
>> ** My config looks like this
>> SENRO.clientsearch.configs = {
>>             initialRequest : initRequest,
>>             generateRequest :
> SENRO.clientsearch.buildQueryString,
>> paginator: new YAHOO.widget.Paginator
> ({
>> rowsPerPage : 20,
>> template: "{FirstPageLink}
> {PreviousPageLink} {PageLinks}
>> {NextPageLink} {LastPageLink} {CurrentPageReport}",
>> pageReportTemplate : "Showing
> items {startIndex} - {endIndex} of
>> {totalRecords}",
>> totalRecords:
> SENRO.clientsearch.resultcount,
>>
>>     }),
>> renderLoopSize : 20,
>> scrollable: false,
>> paginated: true,
>> //            paginationEventHandler :
>> SENRO.clientsearch.handlePagination,
>>             paginationEventHandler :
>> YAHOO.widget.DataTable.handleDataSourcePagination,
>>             recordOffset: 0
>> };
>>
>> I haven't posted the whole of the code because it's not for public
>> consumption, let me know if you need more info.
>>
>> The hack I used to fix it was to store the totalRecords amount
>> separately in the page, and hack together a different
>> paginationEventHandler.
>> I copied and pasted the handleSimplePagination and
>> handleDataSourcePagination functions straight out of
>> datatable-beta-debug.js, and hard-coded the totalRecords value into
> my
>> modified handleSimplePagination function.
>>
>> I can live with this, but it's not ideal. I can't really figure out
>> what's wrong with my setup that it's not taking note of my
>> totalRecords value. Is this a known issue?
>>
>> Cheers,
>>
>> Amir
>>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30111 From: "Raphael Bauduin" <rblists@...>
Date: Thu May 1, 2008 4:28 pm
Subject: Re: datasource: json format expected
raphinou
Send Email Send Email
 
On Thu, May 1, 2008 at 6:17 PM, Satyam <satyam@...> wrote:
> The JSON message seems fine to me, though it is quite redundant in that you
>  have every nested object within an array that only contains that single
>  object.    Unless any of those arrays is actually meant to contain more than
>  one item (I guess "resources" would) they are quite unneeded and can only
>  make it harder on the parser.

Those arrays are indeed meant to enable multiple values.


>
>  What is wrong is the responseSchema.fields.  The items in the fields array
>  can be either simple strings giving the property name holding the value or
>  an object composed of a key and a parser property.  You have properties
>  status, deadline, description, title which are quite pointless, no matter
>  what they contain, the best it can be hoped is that the functions will be
>  ignored.

Thanks for pointing that out!

I tried with this version, but still got a failure :(

myDataSource.responseSchema = {
  fields: ["url", "lock_version", "entity_url","details_url", "links_url",
     { "key": "status", "parser" : function(status) { "status" }},
     {"key":"title", "parser":function(t){"title"}} ,
     {"key":"deadline", "parser": function(t){"deadline"}},
     {"key": "description", "parser" :function(v){"description"}} ],
   resultsList: "resources"
  };

Do all fields in the json have to be present in the fields array?
(trying with some fields not present also give me a failure....)

Raph

>
>  Satyam
>
>
>
>
>  ----- Original Message -----
>  From: "Raphael Bauduin" <rblists@...>
>  To: <ydn-javascript@yahoogroups.com>
>  Sent: Thursday, May 01, 2008 6:00 PM
>  Subject: [ydn-javascript] datasource: json format expected
>
>
>  > Hi,
>  >
>  > Is the data source component able to work with this json?
>  >
>  > { "length" : 3,
>  > "resources":  [
>  >     {  "url": "http://localhost:3000/instances/5.json",
>  >        "lock_version": 0,
>  >        "entity_url": "http://localhost:3000/entities/1.json",
>  >        "details_url": "http://localhost:3000/entities/1/details.json",
>  >        "links_url": "http://localhost:3000/instances/5/links.json",
>  >        "status": [
>  >               { "url": "http://localhost:3000/details/5/values/3.json",
>  >                 "lock_version": 0,
>  >                 "value": "On-hold"}
>  >        ],
>  >        "title": [
>  >              { "url": "http://localhost:3000/details/1/values/6.json",
>  >                "lock_version": 0, "value": "second test"}
>  >        ],
>  >        "deadline": [
>  >             { "url": "http://localhost:3000/details/4/values/3.json",
>  >               "lock_version": 0,
>  >               "value": "2008-05-01 15:35:50"}
>  >        ],
>  >        "description": [
>  >              { "url": "http://localhost:3000/details/2/values/7.json",
>  >                "lock_version": 0,
>  >                "value": "another descrpition"}
>  >         ]
>  >     }
>  >  ]
>  > }
>  >
>  > As you can see there are nested objects. I always get a failure, even
>  > when I try with parser functions.
>  > Here is the latest version of my code, thanks for any hint to solve the
>  > problem.
>  >
>  > Raph
>  >
>  >
>  > var oCallback = {
>  >  success: function(oRequest,oResponse,oPayload) {
>  >    console.log('success');
>  >  },
>  >  failure: function(oRequest,oResponse,oPayload) {
>  >    console.log('failure');
>  >  },
>  >  scope:this
>  > }
>  >
>  > var myDataSource = new
>  > YAHOO.util.DataSource("http://localhost:3000/entities/1/instances.json?");
>  > myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
>  > myDataSource.responseSchema = {
>  > fields: ["url", "lock_version", "entity_url","details_url",
>  > "links_url", { "status" : function(status) { "status" }}, {"title":
>  > function(t){"title"}} , {"deadline": function(t){"deadline"}},
>  > {"description":function(v){"description"}} ],
>  >        resultsList: "resources"
>  > };
>  >
>  > myDataSource.sendRequest("test=1", oCallback);
>  >
>  >
>  >
>  >
>  > --
>  > Web database: http://www.myowndb.com
>  > Free Software Developers Meeting: http://www.fosdem.org
>  >
>  > ------------------------------------
>  >
>  > Yahoo! Groups Links
>  >
>  >
>  >
>  >
>  >
>  > --
>  > No virus found in this incoming message.
>  > Checked by AVG.
>  > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
>  > 30/04/2008 18:10
>  >
>  >
>
>
>  ------------------------------------
>
>  Yahoo! Groups Links
>
>
>
>



--
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

#30112 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 5:00 pm
Subject: Re: datasource: json format expected
satyamutsa
Send Email Send Email
 
If they contain multiple values, which one is the one you mean to show.
There can only be one value returned per field, if there are going to be
multiple status objects, which one is the one you care to show? I understand
"results" would contain more than one, but the others? Anyway, the DataTable
can only show a single value per cell so whatever you can't do that.

Besides, the code:

  function(t){"deadline"}

or any other is not invalid but does nothing.  It evaluates the string
"deadline" and then does nothing with it.

  function(t){return "deadline"}

would, at least, return the string "deadline" which would end up being shown
in the Datatable, but that is quite boring and probably not what you mean.

If, for example, the "status" field had a single item, not an array, you
could declare a field like:

fields: [...,"status.value",...]

and the DataSource will give you the value, it doesn't need a parser to do
that.

You might even try:

"status.0.value"

with the data as it is now, which might (though probably not) fetch the
value field in the first item in the status array.

Satyam


----- Original Message -----
From: "Raphael Bauduin" <rblists@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Thursday, May 01, 2008 6:28 PM
Subject: Re: [ydn-javascript] datasource: json format expected


> On Thu, May 1, 2008 at 6:17 PM, Satyam <satyam@...> wrote:
>> The JSON message seems fine to me, though it is quite redundant in that
>> you
>>  have every nested object within an array that only contains that single
>>  object.    Unless any of those arrays is actually meant to contain more
>> than
>>  one item (I guess "resources" would) they are quite unneeded and can
>> only
>>  make it harder on the parser.
>
> Those arrays are indeed meant to enable multiple values.
>
>
>>
>>  What is wrong is the responseSchema.fields.  The items in the fields
>> array
>>  can be either simple strings giving the property name holding the value
>> or
>>  an object composed of a key and a parser property.  You have properties
>>  status, deadline, description, title which are quite pointless, no
>> matter
>>  what they contain, the best it can be hoped is that the functions will
>> be
>>  ignored.
>
> Thanks for pointing that out!
>
> I tried with this version, but still got a failure :(
>
> myDataSource.responseSchema = {
> fields: ["url", "lock_version", "entity_url","details_url", "links_url",
>    { "key": "status", "parser" : function(status) { "status" }},
>    {"key":"title", "parser":function(t){"title"}} ,
>    {"key":"deadline", "parser": function(t){"deadline"}},
>    {"key": "description", "parser" :function(v){"description"}} ],
>  resultsList: "resources"
> };
>
> Do all fields in the json have to be present in the fields array?
> (trying with some fields not present also give me a failure....)
>
> Raph
>
>>
>>  Satyam
>>
>>
>>
>>
>>  ----- Original Message -----
>>  From: "Raphael Bauduin" <rblists@...>
>>  To: <ydn-javascript@yahoogroups.com>
>>  Sent: Thursday, May 01, 2008 6:00 PM
>>  Subject: [ydn-javascript] datasource: json format expected
>>
>>
>>  > Hi,
>>  >
>>  > Is the data source component able to work with this json?
>>  >
>>  > { "length" : 3,
>>  > "resources":  [
>>  >     {  "url": "http://localhost:3000/instances/5.json",
>>  >        "lock_version": 0,
>>  >        "entity_url": "http://localhost:3000/entities/1.json",
>>  >        "details_url": "http://localhost:3000/entities/1/details.json",
>>  >        "links_url": "http://localhost:3000/instances/5/links.json",
>>  >        "status": [
>>  >               { "url":
>> "http://localhost:3000/details/5/values/3.json",
>>  >                 "lock_version": 0,
>>  >                 "value": "On-hold"}
>>  >        ],
>>  >        "title": [
>>  >              { "url": "http://localhost:3000/details/1/values/6.json",
>>  >                "lock_version": 0, "value": "second test"}
>>  >        ],
>>  >        "deadline": [
>>  >             { "url": "http://localhost:3000/details/4/values/3.json",
>>  >               "lock_version": 0,
>>  >               "value": "2008-05-01 15:35:50"}
>>  >        ],
>>  >        "description": [
>>  >              { "url": "http://localhost:3000/details/2/values/7.json",
>>  >                "lock_version": 0,
>>  >                "value": "another descrpition"}
>>  >         ]
>>  >     }
>>  >  ]
>>  > }
>>  >
>>  > As you can see there are nested objects. I always get a failure, even
>>  > when I try with parser functions.
>>  > Here is the latest version of my code, thanks for any hint to solve
>> the
>>  > problem.
>>  >
>>  > Raph
>>  >
>>  >
>>  > var oCallback = {
>>  >  success: function(oRequest,oResponse,oPayload) {
>>  >    console.log('success');
>>  >  },
>>  >  failure: function(oRequest,oResponse,oPayload) {
>>  >    console.log('failure');
>>  >  },
>>  >  scope:this
>>  > }
>>  >
>>  > var myDataSource = new
>>  >
>> YAHOO.util.DataSource("http://localhost:3000/entities/1/instances.json?");
>>  > myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
>>  > myDataSource.responseSchema = {
>>  > fields: ["url", "lock_version", "entity_url","details_url",
>>  > "links_url", { "status" : function(status) { "status" }}, {"title":
>>  > function(t){"title"}} , {"deadline": function(t){"deadline"}},
>>  > {"description":function(v){"description"}} ],
>>  >        resultsList: "resources"
>>  > };
>>  >
>>  > myDataSource.sendRequest("test=1", oCallback);
>>  >
>>  >
>>  >
>>  >
>>  > --
>>  > Web database: http://www.myowndb.com
>>  > Free Software Developers Meeting: http://www.fosdem.org
>>  >
>>  > ------------------------------------
>>  >
>>  > Yahoo! Groups Links
>>  >
>>  >
>>  >
>>  >
>>  >
>>  > --
>>  > No virus found in this incoming message.
>>  > Checked by AVG.
>>  > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
>>  > 30/04/2008 18:10
>>  >
>>  >
>>
>>
>>  ------------------------------------
>>
>>  Yahoo! Groups Links
>>
>>
>>
>>
>
>
>
> --
> Web database: http://www.myowndb.com
> Free Software Developers Meeting: http://www.fosdem.org
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10
>
>

#30113 From: "Michael Terry" <formido@...>
Date: Thu May 1, 2008 5:19 pm
Subject: Disable Controls
michaelwterry
Send Email Send Email
 
I have a set of controls that edits rows in a datatable, several autocompletes and sliders. Sometimes I want the controls to be in a disabled state so no editing can be done. What is a good UI strategy for this? The YUI controls don't seem to have a feature for this built in.

Michael

#30114 From: "Raphael Bauduin" <rblists@...>
Date: Thu May 1, 2008 5:38 pm
Subject: Re: datasource: json format expected
raphinou
Send Email Send Email
 
On Thu, May 1, 2008 at 7:00 PM, Satyam <satyam@...> wrote:
> If they contain multiple values, which one is the one you mean to show.
>  There can only be one value returned per field, if there are going to be
>  multiple status objects, which one is the one you care to show? I understand
>  "results" would contain more than one, but the others? Anyway, the DataTable
>  can only show a single value per cell so whatever you can't do that.
>
>  Besides, the code:
>
>   function(t){"deadline"}
>
>  or any other is not invalid but does nothing.  It evaluates the string
>  "deadline" and then does nothing with it.
>
>   function(t){return "deadline"}
>
>  would, at least, return the string "deadline" which would end up being shown
>  in the Datatable, but that is quite boring and probably not what you mean.


hem, yes..... Mixing languages.....


>
>  If, for example, the "status" field had a single item, not an array, you
>  could declare a field like:
>
>  fields: [...,"status.value",...]
>
>  and the DataSource will give you the value, it doesn't need a parser to do
>  that.
>
>  You might even try:
>
>  "status.0.value"
>
>  with the data as it is now, which might (though probably not) fetch the
>  value field in the first item in the status array.
>

I still get a failure indeed. Does that mean there's no solution to
consume that JSON with the datasource component?

Thanks for your help.

Raph


>
>  Satyam
>
>
>  ----- Original Message -----
>  From: "Raphael Bauduin" <rblists@...>
>  To: <ydn-javascript@yahoogroups.com>
>
>
> Sent: Thursday, May 01, 2008 6:28 PM
>  Subject: Re: [ydn-javascript] datasource: json format expected
>
>
>  > On Thu, May 1, 2008 at 6:17 PM, Satyam <satyam@...> wrote:
>  >> The JSON message seems fine to me, though it is quite redundant in that
>  >> you
>  >>  have every nested object within an array that only contains that single
>  >>  object.    Unless any of those arrays is actually meant to contain more
>  >> than
>  >>  one item (I guess "resources" would) they are quite unneeded and can
>  >> only
>  >>  make it harder on the parser.
>  >
>  > Those arrays are indeed meant to enable multiple values.
>  >
>  >
>  >>
>  >>  What is wrong is the responseSchema.fields.  The items in the fields
>  >> array
>  >>  can be either simple strings giving the property name holding the value
>  >> or
>  >>  an object composed of a key and a parser property.  You have properties
>  >>  status, deadline, description, title which are quite pointless, no
>  >> matter
>  >>  what they contain, the best it can be hoped is that the functions will
>  >> be
>  >>  ignored.
>  >
>  > Thanks for pointing that out!
>  >
>  > I tried with this version, but still got a failure :(
>  >
>  > myDataSource.responseSchema = {
>  > fields: ["url", "lock_version", "entity_url","details_url", "links_url",
>  >    { "key": "status", "parser" : function(status) { "status" }},
>  >    {"key":"title", "parser":function(t){"title"}} ,
>  >    {"key":"deadline", "parser": function(t){"deadline"}},
>  >    {"key": "description", "parser" :function(v){"description"}} ],
>  >  resultsList: "resources"
>  > };
>  >
>  > Do all fields in the json have to be present in the fields array?
>  > (trying with some fields not present also give me a failure....)
>  >
>  > Raph
>  >
>  >>
>  >>  Satyam
>  >>
>  >>
>  >>
>  >>
>  >>  ----- Original Message -----
>  >>  From: "Raphael Bauduin" <rblists@...>
>  >>  To: <ydn-javascript@yahoogroups.com>
>  >>  Sent: Thursday, May 01, 2008 6:00 PM
>  >>  Subject: [ydn-javascript] datasource: json format expected
>  >>
>  >>
>  >>  > Hi,
>  >>  >
>  >>  > Is the data source component able to work with this json?
>  >>  >
>  >>  > { "length" : 3,
>  >>  > "resources":  [
>  >>  >     {  "url": "http://localhost:3000/instances/5.json",
>  >>  >        "lock_version": 0,
>  >>  >        "entity_url": "http://localhost:3000/entities/1.json",
>  >>  >        "details_url": "http://localhost:3000/entities/1/details.json",
>  >>  >        "links_url": "http://localhost:3000/instances/5/links.json",
>  >>  >        "status": [
>  >>  >               { "url":
>  >> "http://localhost:3000/details/5/values/3.json",
>  >>  >                 "lock_version": 0,
>  >>  >                 "value": "On-hold"}
>  >>  >        ],
>  >>  >        "title": [
>  >>  >              { "url": "http://localhost:3000/details/1/values/6.json",
>  >>  >                "lock_version": 0, "value": "second test"}
>  >>  >        ],
>  >>  >        "deadline": [
>  >>  >             { "url": "http://localhost:3000/details/4/values/3.json",
>  >>  >               "lock_version": 0,
>  >>  >               "value": "2008-05-01 15:35:50"}
>  >>  >        ],
>  >>  >        "description": [
>  >>  >              { "url": "http://localhost:3000/details/2/values/7.json",
>  >>  >                "lock_version": 0,
>  >>  >                "value": "another descrpition"}
>  >>  >         ]
>  >>  >     }
>  >>  >  ]
>  >>  > }
>  >>  >
>  >>  > As you can see there are nested objects. I always get a failure, even
>  >>  > when I try with parser functions.
>  >>  > Here is the latest version of my code, thanks for any hint to solve
>  >> the
>  >>  > problem.
>  >>  >
>  >>  > Raph
>  >>  >
>  >>  >
>  >>  > var oCallback = {
>  >>  >  success: function(oRequest,oResponse,oPayload) {
>  >>  >    console.log('success');
>  >>  >  },
>  >>  >  failure: function(oRequest,oResponse,oPayload) {
>  >>  >    console.log('failure');
>  >>  >  },
>  >>  >  scope:this
>  >>  > }
>  >>  >
>  >>  > var myDataSource = new
>  >>  >
>  >> YAHOO.util.DataSource("http://localhost:3000/entities/1/instances.json?");
>  >>  > myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
>  >>  > myDataSource.responseSchema = {
>  >>  > fields: ["url", "lock_version", "entity_url","details_url",
>  >>  > "links_url", { "status" : function(status) { "status" }}, {"title":
>  >>  > function(t){"title"}} , {"deadline": function(t){"deadline"}},
>  >>  > {"description":function(v){"description"}} ],
>  >>  >        resultsList: "resources"
>  >>  > };
>  >>  >
>  >>  > myDataSource.sendRequest("test=1", oCallback);
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  > --
>  >>  > Web database: http://www.myowndb.com
>  >>  > Free Software Developers Meeting: http://www.fosdem.org
>  >>  >
>  >>  > ------------------------------------
>  >>  >
>  >>  > Yahoo! Groups Links
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  > --
>  >>  > No virus found in this incoming message.
>  >>  > Checked by AVG.
>  >>  > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
>  >>  > 30/04/2008 18:10
>  >>  >
>  >>  >
>  >>
>  >>
>  >>  ------------------------------------
>  >>
>  >>  Yahoo! Groups Links
>  >>
>  >>
>  >>
>  >>
>  >
>  >
>  >
>  > --
>
>
> > Web database: http://www.myowndb.com
>  > Free Software Developers Meeting: http://www.fosdem.org
>  >
>  > ------------------------------------
>  >
>  > Yahoo! Groups Links
>  >
>  >
>  >
>  >
>  >
>  > --
>  > No virus found in this incoming message.
>  > Checked by AVG.
>  > Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
>  > 30/04/2008 18:10
>  >
>  >
>
>
>  ------------------------------------
>
>  Yahoo! Groups Links
>
>
>
>



--
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

#30115 From: "Satyam" <satyam@...>
Date: Thu May 1, 2008 5:40 pm
Subject: Re: Disable Controls
satyamutsa
Send Email Send Email
 
 
 
If you are using the in-line cell editors, you are listening to "cellClickEvent" and passing that on to onEventShowCellEditor.  Make that conditional.  
 
 The cursor, though, will still change shape to a pointing hand.  You can fix that easily by combining Dom.batch and the Selector component to remove the "yui-dt-editable" class, which is the one that sets the cursor. You can also render the table again, and it should change the cursor setting.  You might also change the setting for the "yui-dt-editable" class, whichever is easier
 
Satyam
 
 
 
----- Original Message -----
Sent: Thursday, May 01, 2008 7:19 PM
Subject: [ydn-javascript] Disable Controls

I have a set of controls that edits rows in a datatable, several autocompletes and sliders. Sometimes I want the controls to be in a disabled state so no editing can be done. What is a good UI strategy for this? The YUI controls don't seem to have a feature for this built in.

Michael


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date: 30/04/2008 18:10

#30116 From: "David P. Nesbitt" <david_p_nesbitt@...>
Date: Thu May 1, 2008 5:55 pm
Subject: RTE and embedded HTML
david_p_nesbitt
Send Email Send Email
 
I have a question with respect to how RTE works with embedded HTML.

When I enter an HTML embed such as below:

<object width="425" height="355"><param name="movie"
value="http://www.youtube.com/v/FI4jqpnbiM0&hl=en"></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/FI4jqpnbiM0&hl=en"
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="355"></embed></object>

it gets treated as text.  Is there a way to get it to be treated as
HTML (i.e. I would like to see the embedded video in the editor)?

Messages 30087 - 30116 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