Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

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

Yahoo! Groups Tips

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

Messages

Advanced
Messages Help
Messages 28419 - 28450 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#28419 From: "evi" <evi@...>
Date: Tue Apr 1, 2008 7:02 am
Subject: RE: Browser History Manager Iframe placement
eviaevi
Send Email Send Email
 
It is for Inetrnet Explorer. Firefox works fine without it.
 
Anyhow, in this list you get no replies on Borwser History Manager. In 4 months that I have been using the list I have not seen ANY question on BHM got replies...
 
Rgds,
Evi


From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Alan McLean
Sent: Tuesday, April 01, 2008 12:39 AM
To: ydn-javascript@yahoogroups.com
Subject: [ydn-javascript] Browser History Manager Iframe placement

I am not able to place the iframe right after the body tag... is that
totally necessary for proper performance?

--Alan


#28420 From: "melvin.nijholt" <melvin.nijholt@...>
Date: Tue Apr 1, 2008 9:10 am
Subject: CSS Grids IE Problem when using table in content block
melvin.nijholt
Send Email Send Email
 
Hi,

I have a little problem with the CSS Grids part of yui. I have made a
small test site to demonstrate my problem.

http://www.cyberdot.nl/yui/test.html 

The problem only occurs (for a fare as I could test it) in IE 6 and 7.
When you open the site and resize the browser so the width of the
table is bigger than the width of the screen the navigation bar jumps
bellow the content. When you resize the your browser even more the
content will be shown outside of the browser.

In Firefox the behavior is "correct". The block stay in place and a
horizontal scrollbar is displayed.

Am I doing something wrong or is this the normal behavior? Or is the
someone that had the same problem and could give me a hint how to fix
this?

Thanks

Melvin


#28421 From: "pieter.thoma" <pieter.thoma@...>
Date: Tue Apr 1, 2008 9:38 am
Subject: YUI buttons layout with AJAX request
pieter.thoma
Send Email Send Email
 
Hi,

I'm having a small problem when using YUI buttons and doing an AJAX
request. I have some dynamic content which gets into a span or div
using AJAX. The HTML is well returned, but the initialisation of the
javascript code to make the hover of the button look well doesn't seem
to work.

I changed this:

YAHOO.example.init = function () {
YAHOO.util.Event.onContentReady("add-initial-aliquots", function () {
var oSubmitButton1 = new
YAHOO.widget.Button("add-initial-aliquots-submit-button", { type:
"submit" });
});
} ();

to:
function click() {
//ajax request
YAHOO.util.Event.onContentReady("add-initial-aliquots", function () {
var oSubmitButton1 = new
YAHOO.widget.Button("add-initial-aliquots-submit-button", { type:
"submit" });
});

But it doesn't seem to work.

What am I doing wrong?
} ();

#28423 From: "bacteries_metalorgie" <bacteries_metalorgie@...>
Date: Tue Apr 1, 2008 11:05 am
Subject: Re: Rich Text Editor : Pre Check
bacteries_me...
Send Email Send Email
 
Thanks! I will check this.

--- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
>
> bacteries_metalorgie --
>
> You could listen to the windowcreatelinkOpen event like this:
>
> myEditor.on('windowcreatelinkOpen', function() {
>     YAHOO.util.Dom.get('createlink_target').checked = true;
> });
>
> Hope that helps :)
> 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: bacteries_metalorgie <bacteries_metalorgie@...>
> To: ydn-javascript@yahoogroups.com
> Sent: Monday, March 31, 2008 2:11:28 PM
> Subject: [ydn-javascript] Rich Text Editor : Pre Check
>
> Hello,
> I use RTE (wonderful editor!) and I would like to have a pre checked box
> for "Open In A New Window" when I click on the link button. How can I do
> that? (and also, how traduce text in this box?)
>
> And bonus question :  is there a doc (I searched it but don't find)
> listing all the button possibility?
>
> Thanks.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>

#28424 From: "rsewar2" <rsewar2@...>
Date: Tue Apr 1, 2008 11:11 am
Subject: YUI editor: How do I stop the cursor position in editor being lost (IE7)?
rsewar2
Send Email Send Email
 
I'm using the editor as part of a small CMS I'm putting together. I've
added a file input element to the page. When a user selects a file, it
is uploaded to our server via AJAX, and a link to the file is returned
which gets inserted into the editor (using the execCommand
insertHTML). This works fine, except that in IE7, when the user clicks
the file input's 'browse' button, the cursor position in the text
editor is lost and the link just gets added to the beginning of the
text, rather than at the last place in the editor that the user clicked.

Looking through the editor's .js file, I see that there are private
functions such as '_getselection' and '_getrange' that have obviously
have had a lot of time spent on them to make them cross-browser
compatible. I'm thinking of using one of these as part of a
'getCursorPosition' function, which I can use to record the cursor
position before it gets lost.

Does this sound do-able, and am I going about this the right way? Can
you give me any pointers to get started, or is there already a
function which does something similar that I've not noticed?

Thanks for your help!
Rob

#28425 From: "restless.being" <restless.being@...>
Date: Tue Apr 1, 2008 11:58 am
Subject: Re: Autocomplete - how to populate it with data from code
restless.being
Send Email Send Email
 
Ok, I've found this: http://tech.groups.yahoo.com/group/ydn-
javascript/message/11075

--
eXt

#28426 From: "Jim Byrne" <webdesign@...>
Date: Tue Apr 1, 2008 12:59 pm
Subject: CSS grids: is there a recommended way to add css to grids?
slimjimbuk
Send Email Send Email
 
Hi,

I'm been looking at the YUI CSS grids and would like to adopt the
approach for a project - but I'm a bit lost as to how I add my own
styles to the basic grids. I don't mean I don't know how to use CSS, I
mean what's the best way to apply my own css rules to an existing grid?

Is there a recommended approach?

Do I just use the existing id's as hooks for my own extra padding,
background images, colours and so on? Will this break the grid?

I've done some searching and browsed the YUI website but can't find
anything that points me in the right direction.

Your help is appreciated. Thanks.

All the best,
Jim

#28427 From: "Nitefoll" <nitefoll0@...>
Date: Tue Apr 1, 2008 1:56 pm
Subject: v2.5.1 - How do i prevent sam-skin loading using YUILoader?
nitefoll0
Send Email Send Email
 
Hi All

Just downloaded v2.5.1 and loving the yuiloader-dom-event.js rollup.

One thing, how do I prevent the YUILoader loading the default
sam-skin.css file when including modules?

I already have the "sam-skin.css" loading in the <head> section of the
page, so having the YUILoader load it is a duplication?

Can anyone help?

Thanks
N.

#28428 From: "ton.romeyn" <ton.romeyn@...>
Date: Tue Apr 1, 2008 2:07 pm
Subject: error in server side paging moving to last record
ton.romeyn
Send Email Send Email
 
We are using server side paging. It works fine in most cases, except
one. When a list is paged and the last page consists of only 1 record,
then this record cannot be seen. The next page button is enabled but no
call is generated to the server to request the last page and
consequently no record is shown. Is this a known bug or are we making a
mistake in the configuratin?

#28429 From: Caridy Patiño Mayea <caridy@...>
Date: Tue Apr 1, 2008 2:35 pm
Subject: Re: v2.5.1 - How do i prevent sam-skin loading using YUILoader?
caridyp
Send Email Send Email
 
Hello,

Here you have an example...

APP.Loader = new YAHOO.util.YUILoader();
APP.Loader.require(['modules here....']);
APP.Loader.insert({
	 onSuccess: function() {
	 }
}, 'js'); // <-- here is the hack....

The last parameter for the insert method, can be either "js" or "css"
to filter by module's type.

Best Regards,
Caridy Patino (caridy at gmail.com)
http://www.bubbling-library.com/

--- In ydn-javascript@yahoogroups.com, "Nitefoll" <nitefoll0@...> wrote:
>
> Hi All
>
> Just downloaded v2.5.1 and loving the yuiloader-dom-event.js rollup.
>
> One thing, how do I prevent the YUILoader loading the default
> sam-skin.css file when including modules?
>
> I already have the "sam-skin.css" loading in the <head> section of the
> page, so having the YUILoader load it is a duplication?
>
> Can anyone help?
>
> Thanks
> N.
>

#28430 From: "Nitefoll" <nitefoll0@...>
Date: Tue Apr 1, 2008 2:51 pm
Subject: Re: v2.5.1 - How do i prevent sam-skin loading using YUILoader?
nitefoll0
Send Email Send Email
 
Wow, can't believe I missed that, thank you so much Caridy, I've been
scratching my head for over 2 hours on this :)

Thank you very much
N.



--- In ydn-javascript@yahoogroups.com, Caridy Patiño Mayea
<caridy@...> wrote:
>
> Hello,
>
> Here you have an example...
>
> APP.Loader = new YAHOO.util.YUILoader();
> APP.Loader.require(['modules here....']);
> APP.Loader.insert({
>  onSuccess: function() {
>  }
> }, 'js'); // <-- here is the hack....
>
> The last parameter for the insert method, can be either "js" or "css"
> to filter by module's type.
>

#28431 From: "Satyam" <satyam@...>
Date: Tue Apr 1, 2008 2:59 pm
Subject: RE: DataTable Sorting: how to bypass a special row
satyamutsa
Send Email Send Email
 
Check the documentation about custom sorting.  You could write your own sorting function that will have to recognize the totals row somehow and return a value such that it is always less than any other row.  You could also add an additional tbody to the HTML table, but if the DataTable structure changes in the future, this might now work any longer.

-------
Mira en la documentacion, como se escribe una funcion de ordenamiento propia.  Haz una funcion que pueda reconocer la fila con los totales y siempre responda que es menor que cualquier otra conque la compare.  Podrias tambien agregar un elemento tbody pero si en algun momento en el futuro cambia la forma en que el componente manipula la tabla, te puedes encontrar conque ya no funciona.

Satyam
--------- Mensaje Original --------
De: ydn-javascript@yahoogroups.com
Para: "ydn-javascript@yahoogroups.com" <ydn-javascript@yahoogroups.com>
Asunto: [ydn-javascript] DataTable Sorting: how to bypass a special row
Fecha: 31/03/08 20:36


Hello everyone!
I have a DataTable for displaying numbers with every column sortable
and it has one of the rows for the total. I need to have the "total"
row always being the first row no matter what sorting do I apply to
any of the columns. Is there some way of doing this?

Thank you and sorry for my bad english.


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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest@yahoogroups.com
mailto:ydn-javascript-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


#28432 From: "Satyam" <satyam@...>
Date: Tue Apr 1, 2008 3:17 pm
Subject: RE: datatable and checkbox
satyamutsa
Send Email Send Email
 
The DataTable fires the checkboxClickEvent and you can do whatever you want with that. 

In http://satyam.com.ar/yui/2.5.0/assortedControls.html I showed how you can send that information to the server on each click because that is what many people ask, but you are certainly not forced to do so.  If you have sortable columns, you have to update the recordset for each click so that on sorting the checked boxes don't get lost, but you don't need to communicate that to the server and you certainly can keep a separate array of your own in parallel with this.

Satyam

--------- Mensaje Original --------
De: ydn-javascript@yahoogroups.com
Para: "ydn-javascript@yahoogroups.com" <ydn-javascript@yahoogroups.com>
Asunto: [ydn-javascript] datatable and checkbox
Fecha: 31/03/08 16:32

hi,
is it possible to save checked values in array to check by javascript so that we can make less server trip.
suppose i have checked on 1st row and 3rd row then i need to store that true values in array and later go to database and check to delete or to modify or to move.
plz help me.
thanks


Did you know? You can CHAT without downloading messenger. Click here

#28434 From: "david_c1986" <david_c1986@...>
Date: Tue Apr 1, 2008 3:43 pm
Subject: Accessing Data Source Response
david_c1986
Send Email Send Email
 
Hi

I have a post method in a servlet returning some xml:

<ResultSet><Result><Field>Testing</Field></Result></ResultSet>

and a dataSource with response schema:

jobDetailsDataSource.responseSchema = {resultNode: "Result",
         fields: ["Field"]};

DataSourceS.sendRequest method, this returns an array of schema parsed
data results to my callBack handler. I want to access this array and
return the value in <Field> but i cant work out how to do it. Ive tried:

success: function(oRequest,oResponse,oPayload){
       alert(oResponse.results[0]);
}, etc.....

but it returns an object, i just want to return the value in the field
tag, and advice?
Thanks
David

#28435 From: "John" <brjelder@...>
Date: Tue Apr 1, 2008 3:44 pm
Subject: Refresh a tree node with new data
brjvmpr
Send Email Send Email
 
How do I refresh a tree node to get new data to appear with that node
still expanded after refresh?

#28436 From: Eric Miraglia <miraglia@...>
Date: Tue Apr 1, 2008 3:55 pm
Subject: Re: YUI Chart with datasource polling in CakePHP
ericmiraglia
Send Email Send Email
 
Riki,

This might be easier for Charts-savvy developers to help you with if you provided a URL where they can see it in action and poke around in Firebug.   Is there a URL you can share?

Regards,
Eric

______________________________________________
Eric Miraglia
Yahoo! User Interface Library



On Mar 31, 2008, at 8:53 AM, Riki Pribadi wrote:

Hi everyone,

Im using CakePHP now and i never use YUI before untill i saw YUI Chart with datasource polling feature. I've testing it with its original source and it works. Then i try to implement it in CakePHP. But i can make it out. FYI, i placed the YUI folder in webroot/js/YUI.

i have changed this line, 
var jsonData = new YAHOO.util.DataSource( "assets/generatedata.php?" );

into :
var jsonData = new YAHOO.util.DataSource("<?= $html->url('tester/generate') ?>");

i have created Tester Controller with it s function like this :
function index() {
    // do nothing just display view
}
function generate() {
    $this->layout = 'ajax';
    $this->render('generate');
    
}

this is the index.ctp, i just copy-paste and edit the href 
<link rel="stylesheet" type="text/css" href="<?= $this->webroot ?>js/yui/assets/yui.css" >

<link rel="stylesheet" type="text/css" href="<?= $this->webroot ?>js/yui/assets/dpSyntaxHighlighter.css">
<link rel="stylesheet" type="text/css" href="<?= $this->webroot ?>js/yui/build/button/assets/skins/sam/button.css" />

<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/yahoo/yahoo-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/dom/dom-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?> ;js/yui/build/event/event-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/json/json-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/connection/connection-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/datasource/datasource-beta-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?> ;js/yui/build/charts/charts-experimental-min.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/yui/build/button/button-min.js"></script>

<div id="example-canvas" class="bd">
    <div id="chart">Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player Download Center</a>.</p>
    </div>

    <script type="text/javascript">
    
        YAHOO.widget.Chart.SWFURL = "<?= $this->webroot ?>js/yui/build/charts/assets/charts.swf";

        var jsonData = new YAHOO.util.DataSource( "<?= $html->url('/tester/generate') ?>" );      

        jsonData.connMethodPost = true;
        jsonDa ta.responseType = YAHOO.util.DataSource.TYPE_JSON;
        jsonData.responseSchema =
        {
                resultsList: "Results",
                fields: ["Name","Value"]
        };
        
        var yAxis = new YAHOO.widget.NumericAxis();
         yAxis.minimum = 0;
        yAxis.maximum = 100;
        
        var mychart = new YAHOO.widget.ColumnChart( "chart", jsonData,
        {
            xField: "Name",
            yField: "Value",
            yAxis: yAxis,
            polling: 2000,
            expressInstall: "<?= $this->webroot ?>expressinstall.swf"
        });
        
    </script>    
        
    </div>   
</div>

FYI, i coppied expressintall.swf to webroot folder

and last, i create the generate.ctp in tester view folder and its content just like in generate.php example :
{"Results":
    {"Name":"A","Value":"<?= rand(0,99) ?>"},
    {"Name":"B","Value":"<?= rand(0,99) ?>"},
    {"Name":"C","Value":"<?= rand(0,99) ?>"},
    {"Name":"D","Value":"<?= rand(0,99) ?>"},
    {"Name":"E","Value":"<?= rand(0,99) ?>"}
}


everything is up, the image, the background, the swf file. but it doesnt load any data from generate.php. i think the problem is in 
var jsonData = new YAHOO.util.DataSource("<?= $html->url('tester/generate') ?>");
because jsonData is empty, feels like it doesnt render generate.ctp view or maybe something else i dont know. 

Does anyone could help me please with example. thanks for reply soon

Best Regards

Riki Pribadi
 



Special deal for Yahoo! users friends - No Cost. Get a month of Blockbuster Total Access now



#28437 From: "bagam_venkat" <bagam.venkat@...>
Date: Tue Apr 1, 2008 3:58 pm
Subject: how to make an ajax call when clicking on date in yahoo calendar.
bagam_venkat
Send Email Send Email
 
Hi all, i am pretty much new to yahoo calendar. I am using the
calendar component in my rails app.I have such a scenario that when I
click on a particular date, a call to server side action is made to
store the date selected. Right now, to deal with this issue, I used a
not-so-good technique. I have a hiden form-field and upon cliking a
date, selectEvent trigers and updating the form-field value. Using the
AJAX observer, am making XMLHttp request to the server. But this is
not working always. Is there any way to make an ajax call upon
clicking a date? any help appreciated...

regards,
Venkat

#28438 From: Eric Miraglia <miraglia@...>
Date: Tue Apr 1, 2008 4:13 pm
Subject: Re: Changing overlay/container size
ericmiraglia
Send Email Send Email
 
gerabigfoot,

Try:

overlay.cfg.setProperty("width", "200px");

Regards,
Eric



On Mar 31, 2008, at 6:51 AM, gerabigfoot wrote:

How can I change overlay/container size at runtime?

I tried:
overlay.cfg.config.width.value = 200;
overlay.cfg.config.height.value = 200;

but that didn't work.



#28439 From: "nastavirss" <nastavirss@...>
Date: Tue Apr 1, 2008 4:21 pm
Subject: Resizing a dynamically created panel
nastavirss
Send Email Send Email
 
Can someone point me to an example for using resize on a dynamically
created panel (using script not mark up)

#28440 From: "kjmapper" <kjmapper@...>
Date: Tue Apr 1, 2008 4:39 pm
Subject: datatable server paging datasource problem
kjmapper
Send Email Send Email
 
Hi - I cannot get the datatable server paging example to work:

If double click the html file in windows explorer:

C:\yui\examples\datatable\paginator_datatable_serverpaging_clean.html

... the grid just says "Loading data..." and never changes.

If run from my web server:

http://myserver/test/paginator_datatable_serverpaging_clean.html

... the grid just says "data error" and never changes.

I have made no chagnes, just downloaded YUI and tried it out.  Whats
the trick to get this exaxmple to work?

Thanks,
JB

#28441 From: "kjmapper" <kjmapper@...>
Date: Tue Apr 1, 2008 4:41 pm
Subject: datatable with SQL Server Express 2005
kjmapper
Send Email Send Email
 
Hi -

All the datatable examples have data that is hardcoded into the
example.  A common scenario is of course to have data in a database,
not hardcoded into the app.

Anyone have any success using YUI datatable with SQL Server 2005
express database tables, and if so have any pointers for how to do it?

Thanks,
JB

#28442 From: "y_lsmith" <lsmith@...>
Date: Tue Apr 1, 2008 4:41 pm
Subject: Re: Problem with Server Sorting an Pagination without History (desperate)
y_lsmith
Send Email Send Email
 
Dunior,

Satyam has a server driven example that includes pagination and sorting.  Have a look .

Hope this helps,
Luke


--- In ydn-javascript@yahoogroups.com, "Dunior" <duniorsocarrasb@...> wrote:
>
> Hello
> I've been working on it, trying to fix it, and I found that if the
> datatable is in a diferent page than the first one and I try to
> refresh it with the code I post below, does the same I said in the
> previous post, the datatable shows No records found, and if I do the
> same but calling onDataReturnSetRows insted, if rows are returned
> everything works fine, but, in the refresh case when no records are
> returned doesn't refresh the datatabloe, and when I sort any column
> calling this event, I have to paginate to see the new order. Please
> any suggestions
>
> (((this.myDataSource.sendRequest(newRequest,
> {success:this.myDataTable.onDataReturnInitializeTable,scope:this.myDataTable},
> this.myDataTable);)))
>
>
> Thanks
>

#28443 From: "y_lsmith" <lsmith@...>
Date: Tue Apr 1, 2008 4:44 pm
Subject: Re: serverside pagination
y_lsmith
Send Email Send Email
 
Are you using 2.5.0 or 2.5.1?  Do you have a sample page that I can
look at?

Luke

--- In ydn-javascript@yahoogroups.com, "antonganesh" <antonganesh@...>
wrote:
>
> My datatable with server side pagination seems to behave strange. I'm
> working with 13 records. I only display 5 records per page. When I
> navigate to last set of records only 3 get displayed which is correct.
> The problem  begins when I start navigating back. It always displays
> only 3 records for page. I feel, the datatable is not rendering
> properly. But when I visit the last set of records and go to the
> beginning everything works fine.
>
> Here is my code:
>
> this.myDataSource = new YAHOO.util.DataSource("data?");
>      this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
>
>      this.myDataSource.responseSchema = {
>         resultsList : 'records',
> 	    totalRecords: 'totalRecords',
>         fields: ["URL", "albumTitle", "itemsNum", "containerID"]
>      };
>
>
>      var buildQueryString = function (state,dt) {
>         return "startIndex=" + (state.pagination.recordOffset -1) +
>                "&results=" + state.pagination.rowsPerPage;
>      };
>
>      var myPaginator = new YAHOO.widget.Paginator({
>         containers         : ['paging'],
>         pageLinks          : 5,
>         rowsPerPage        : 5,
>         rowsPerPageOptions : [5,10,15],
>         template           : " {PreviousPageLink} {PageLinks}
> {NextPageLink} {RowsPerPageDropdown}"
>     });
>
>     var paginationEvent = function(state, dt) {
>
>      YAHOO.widget.DataTable.handleDataSourcePagination(state, dt);
>     }
>
>     var myTableConfig = {
>         initialRequest         : 'startIndex=0&results=5',
>         generateRequest        : buildQueryString,
>         paginationEventHandler :
> YAHOO.widget.DataTable.handleDataSourcePagination,
>         paginator              : myPaginator
>     };
>
>      this.myDataTable = new YAHOO.widget.DataTable("yui_albums",
> myColumnDefs, this.myDataSource, myTableConfig);
>

#28444 From: Dav Glass <dav.glass@...>
Date: Tue Apr 1, 2008 5:16 pm
Subject: Re: Resizing a dynamically created panel
dav.glass
Send Email Send Email
 
nastavirss --

Same principle as this example:
http://developer.yahoo.com/yui/examples/container/panel-resize.html


Just don't provide the markup..

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: nastavirss <nastavirss@...>
To: ydn-javascript@yahoogroups.com
Sent: Tuesday, April 1, 2008 9:21:54 AM
Subject: [ydn-javascript] Resizing a dynamically created panel

Can someone point me to an example for using resize on a dynamically
created panel (using script not mark up)


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

Yahoo! Groups Links

#28445 From: Dav Glass <dav.glass@...>
Date: Tue Apr 1, 2008 5:19 pm
Subject: Re: YUI editor: How do I stop the cursor position in editor being lost (IE7)?
dav.glass
Send Email Send Email
 
rsewar2 --

You should look at this from another angle.

Before you have them click the upload button, add the placeholder element to the
editor before the upload.

Then you have a reference to the element that was inserted, after the upload is
done all you have to do is mod the element that was created before the upload..

Similar to the way the Insert Image button works..

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: rsewar2 <rsewar2@...>
To: ydn-javascript@yahoogroups.com
Sent: Tuesday, April 1, 2008 4:11:39 AM
Subject: [ydn-javascript] YUI editor: How do I stop the cursor position in
editor being lost (IE7)?

I'm using the editor as part of a small CMS I'm putting together. I've
added a file input element to the page. When a user selects a file, it
is uploaded to our server via AJAX, and a link to the file is returned
which gets inserted into the editor (using the execCommand
insertHTML). This works fine, except that in IE7, when the user clicks
the file input's 'browse' button, the cursor position in the text
editor is lost and the link just gets added to the beginning of the
text, rather than at the last place in the editor that the user clicked.

Looking through the editor's .js file, I see that there are private
functions such as '_getselection' and '_getrange' that have obviously
have had a lot of time spent on them to make them cross-browser
compatible. I'm thinking of using one of these as part of a
'getCursorPosition' function, which I can use to record the cursor
position before it gets lost.

Does this sound do-able, and am I going about this the right way? Can
you give me any pointers to get started, or is there already a
function which does something similar that I've not noticed?

Thanks for your help!
Rob


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

Yahoo! Groups Links

#28446 From: "bacteries_metalorgie" <bacteries_metalorgie@...>
Date: Tue Apr 1, 2008 5:21 pm
Subject: Re: Rich Text Editor : Pre Check
bacteries_me...
Send Email Send Email
 
I Try it but I never go in the function.

I'm new to listener events so I try to understand but don't know what
change to have it works. I see here :
http://developer.yahoo.com/yui/docs/editor.js.html that
windowcreatelinkOpen might be the correct name for this event...

Any idea?

--- In ydn-javascript@yahoogroups.com, "bacteries_metalorgie"
<bacteries_metalorgie@...> wrote:
>
> Thanks! I will check this.
>
> --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
> >
> > bacteries_metalorgie --
> >
> > You could listen to the windowcreatelinkOpen event like this:
> >
> > myEditor.on('windowcreatelinkOpen', function() {
> >     YAHOO.util.Dom.get('createlink_target').checked = true;
> > });
> >
> > Hope that helps :)
> > 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: bacteries_metalorgie <bacteries_metalorgie@>
> > To: ydn-javascript@yahoogroups.com
> > Sent: Monday, March 31, 2008 2:11:28 PM
> > Subject: [ydn-javascript] Rich Text Editor : Pre Check
> >
> > Hello,
> > I use RTE (wonderful editor!) and I would like to have a pre
checked box
> > for "Open In A New Window" when I click on the link button. How
can I do
> > that? (and also, how traduce text in this box?)
> >
> > And bonus question :  is there a doc (I searched it but don't find)
> > listing all the button possibility?
> >
> > Thanks.
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
>

#28447 From: "rafinha_spy" <rafaelspy@...>
Date: Tue Apr 1, 2008 5:31 pm
Subject: Connect.asyncRequest dont work in IE .. why
rafinha_spy
Send Email Send Email
 
function changeCombo(combo, s){
     var postData = "t=" + combo + "&id=" + s + "&random=" + new
Date().getTime();
     var request = YAHOO.util.Connect.asyncRequest("POST",
"includes/localidade.php", callback = {
         success: function(o){
             if (o.responseText !== undefined)
                 if (o.responseText)
                     document.getElementById(combo).innerHTML =
o.responseText;
         },
         failure: function(o){
             if (o.responseText !== undefined)
                 return false;
         }
     }, postData);
     return false;
}

#28448 From: "tssha" <tsha@...>
Date: Tue Apr 1, 2008 5:43 pm
Subject: Re: Connect.asyncRequest dont work in IE .. why
tssha
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, "rafinha_spy" <rafaelspy@...>
wrote:
>
> function changeCombo(combo, s){
>     var postData = "t=" + combo + "&id=" + s + "&random=" + new
> Date().getTime();
>     var request = YAHOO.util.Connect.asyncRequest("POST",
> "includes/localidade.php", callback = {
>         success: function(o){
>             if (o.responseText !== undefined)
>                 if (o.responseText)
>                     document.getElementById(combo).innerHTML =
> o.responseText;
>         },
>         failure: function(o){
>             if (o.responseText !== undefined)
>                 return false;
>         }
>     }, postData);
>     return false;
> }

You seem to be missing a few left braces after the first and second
"if" statements, in the success handler.

If this does not resolve your problem, please post the contextual code
that calls changeCombo(), and any errors reported at runtime.

Regards,
Thomas

#28449 From: Todd Kloots <kloots@...>
Date: Tue Apr 1, 2008 5:47 pm
Subject: Re: MenuBar Menu vs Submenu alignment
toddkloots
Send Email Send Email
 
"sanvich" -

The easiest way to customize the "submenualignment" configuration
property is to use a render event handler.  The render event will fire
for each menu - the root menu bar and each submenu - and you can use the
"parent" property to determine the current depth and set the
"submenualignment" configuration property to the appropriate value for
that depth.

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

     var oParent = this.parent;

     if (oParent) {

        if (oParent instanceof YAHOO.widget.MenuBarItem) {

            // immediate submenu of the menubar

        }
        else {

           // submenus of the immediate submenus of the menubar

         }


     }
     else {

        // the menu bar

     }

});

Let me know if that doesn't work or make sense.

- Todd

sandvich wrote:
>
> By default, a Menubar's menus align their top-left corners to their
> parents' bottom-left corners. The /submenus/ of these menus, however,
> align their top-left corners to their parents' top-right corners.
>
> This is all fine and dandy, until you get to customizing things. For
> example, I'm building a RTL site (in Hebrew), and I want to get the
> exact same behavior from the menubar as normal, just /with right and
> left switched around/. So, I want the menus to align their top-*right*
> corners with their parents' bottom-*right* corners, and the submenus
> to align their top-*right* corners with their parents' top-*left* corners.
>
> The problem is that when I use the submenualignment property, it
> cascades down to all the menus and submenus as one. So both the
> top-level menus and the submenus align themselves to the same corners.
>
> Am I missing something, or is there no way to configure the
> tr/tl/br/bl values of submenus independ ently of the top-level menus?
>
>

#28450 From: "stergios_marinopoulos" <stergios_marinopoulos@...>
Date: Tue Apr 1, 2008 5:54 pm
Subject: Tabview - receive notification when the currently selected tab is selected again
stergios_mar...
Send Email Send Email
 
I would like to receive an event when the currently selected tab is
selected again.

Basically I need to work around the behavior in the activate method in
TabView.js where suppression of the activeTabChange occurs:


     if (this == self.get('activeTab')) {
         silent = true; // dont fire activeTabChange if already active
     }


From looking at the code in TabView.js, my initial thought is to chain
on to the 'activationEvent' with my own listener.  Before I go running
off into that adventure, I thought I would ask here for some advice on
how to proceed.


Thanks in advance.


Stergios Marinopoulos
http://vlane.com

Messages 28419 - 28450 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