[mochikit] Pretty cool - anyone can be a DJ

2007-02-26 Thread nowlivetwo

Thought some of you might be interested in this, I thought it was
pretty cool...
NowLive.com is a live mobile community. DJs on the shows get to
interact with people doing interviews, sending in live videos and
photos. The best part of NowLive is that YOU can become a DJ or a
field reporter and get paid! Or, you can just sit back and enjoy the
show(s) from your desktop or cell phone. Theres  also celeb hosted
shows you can take part in too. ITS ALL FREE.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] BEGINNER: understanding the ajax_tables example

2007-02-26 Thread Thomas

Hello group :-)

I am pretty new to MochiKit but got some experience in JavaScript.
At the moment I try to implement some ajax- tables (like in the
example) in my project.
I read a lot of the documentation, "played" with the interpreter and
tried to get the example- code ("ajax_tables.js")*,
but mostly I get results by trial and error... :-/

The question I have is, how much of this* example do I (at minimum)
need for sortable ajax- tables.
I know how to get the .json- file ("doc = loadJSONDoc(url)"), how to
access the data in it ("doc.results[0].responseText") and how to put
data in a table (the DOM- example). BUT I do not know, how to address
the "column" or "row" keys. Playing with the interpreter everything
was pretty easy (like in the Screencast), but keys I got there don´t
even exist with the object I get by loadJSONDoc. :-(

I also read some posts, addressing rows and columns by "data.rows" and
"data.columns", but I did not see, how to get "data".

..I have got more questions, but that´s for now ;-)

greetings,

Thomas


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: (another) IE problem

2007-02-26 Thread Diez B. Roggisch

carlo schrieb:
> var opt_display=function(row) {
> alert(row);
> return OPTION({"value":row},row);}
> 
> function FillCombo(analist) {
> var lista =
> SELECT({'id':'anagr','name':'anagr'},map(opt_display,analist.anagr));
> swapDOM('anagr', lista);
> var lista =
> SELECT({'id':'stato','name':'stato'},map(opt_display,analist.stati));
> swapDOM('stato', lista);
> var lista =
> SELECT({'id':'resp','name':'resp'},map(opt_display,analist.resp));
> swapDOM('resp', lista);
> }
> 
> function loadcombo(tipo) {
> d = loadJSONDoc("http://192.168.9.1:8081/da/testajax.ks/combo";,
> {"combocontents":tipo,"nocache": new Date().getTime()});
> d.addCallback(FillCombo);
> }
> 
> on FF the three SELECT are ok and filled.
> In IE combos are empty and alert(row) in opt_display never shows. Is
> there any problem with map (or SELECT) and IE?

As I said in my answer to your previous post : yes, the IE is somewhat 
picky when it comes to adding options to selects.


Try and use the code I provided - it is somewhat messy as it comes out 
of production and thus has some other things to accomplish, but it 
should get you started.

Diez

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] (another) IE problem

2007-02-26 Thread carlo

var opt_display=function(row) {
alert(row);
return OPTION({"value":row},row);}

function FillCombo(analist) {
var lista =
SELECT({'id':'anagr','name':'anagr'},map(opt_display,analist.anagr));
swapDOM('anagr', lista);
var lista =
SELECT({'id':'stato','name':'stato'},map(opt_display,analist.stati));
swapDOM('stato', lista);
var lista =
SELECT({'id':'resp','name':'resp'},map(opt_display,analist.resp));
swapDOM('resp', lista);
}

function loadcombo(tipo) {
d = loadJSONDoc("http://192.168.9.1:8081/da/testajax.ks/combo";,
{"combocontents":tipo,"nocache": new Date().getTime()});
d.addCallback(FillCombo);
}

on FF the three SELECT are ok and filled.
In IE combos are empty and alert(row) in opt_display never shows. Is
there any problem with map (or SELECT) and IE?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: Date Picker

2007-02-26 Thread Diez B. Roggisch

On Friday 23 February 2007 12:03, Pearl wrote:
> On click event of a button I am dynamically creating a form. Form has
> a calendar date picker in it. Can I some how use turbogears
> calendarDatePicker widget in this case?

Yes, you can. The TG date picker is just the dynarch js calendar:

http://www.dynarch.com/

Go there, read the docs, use it.

Diez

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: Can it be more simple ?

2007-02-26 Thread Kevin Damm

Or,

return (compare(americanDate($('exsupplier_date').value),
americanDate($('arrival_date').value) != 1);


On 2/26/07, Matthew Kwiecien <[EMAIL PROTECTED]> wrote:
> More simple how? So you don't need the split and piecing back together? If
> so, then how about:
>
> if
> (compare(americanDate($('exsupplier_date').value),americanDate($('arrival_date').value))!=1)
> return true;
> else return false;
>
> If you're looking for something different than this, you're gonna have to
> better explain what you're wanting to achieve.
>
>
> On 2/26/07, b3d70 <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have this simple date comparison function,
> >
> > function checkdate()
> > { a = $('exsupplier_date').value.split('/');  //its a
> dd/mm/
> >   b = $('arrival_date').value.split('/');//its a
> dd/mm/
> >   if
> > (
> compare(isoDate(a[2]+'-'+a[1]+'-'+a[0]),isoDate(b[2]+'-'+b[1]+'-'+b[0]))
> !
> > = 1 )
> >   { return true; } else { return false; };
> > }
> >
> > actually how to make this more simple ?
> >
> > thank you
> > bedjo
> >
> >
> >
>
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: Can it be more simple ?

2007-02-26 Thread Matthew Kwiecien
More simple how? So you don't need the split and piecing back together? If
so, then how about:

if
(compare(americanDate($('exsupplier_date').value),americanDate($('arrival_date').value))!=1)
return true;
else return false;

If you're looking for something different than this, you're gonna have to
better explain what you're wanting to achieve.

On 2/26/07, b3d70 <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I have this simple date comparison function,
>
> function checkdate()
> { a = $('exsupplier_date').value.split('/');  //its a dd/mm/
>   b = $('arrival_date').value.split('/');//its a dd/mm/
>   if
> ( compare(isoDate(a[2]+'-'+a[1]+'-'+a[0]),isoDate(b[2]+'-'+b[1]+'-'+b[0]))
> !
> = 1 )
>   { return true; } else { return false; };
> }
>
> actually how to make this more simple ?
>
> thank you
> bedjo
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---