[mochikit] Re: beginners guide, for intepreter ajax

2006-08-16 Thread Jason Bunting


 And I can only get clear() to work. I try a simple javascript command:
 writeIn(hello)  as in the video demo, and I get an error writeIn is
 not defined... What am I doing wrong?

It is *not* writeIn(), it is writeln(), and it works just fine.

Jason

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[mochikit] Re: beginners guide, for intepreter ajax

2006-08-16 Thread Bob Ippolito

On 8/16/06, paolodude [EMAIL PROTECTED] wrote:

 Hi I saw the mochikit vid, and thought, phew! at last I can learn
 javascript!

 As a decent php/html/sql developer, I thought it'd be a wheez to get my
 first ajax thing , a random image working.

 I was looked forward to using the intepreter, as the most annoying
 thing about javascript is not having a test environment.

 However I soon got most frustrated. I can't get the intepreter to work!
 I even tried the online version of the Intepreter, on both Firefox
 (1.5.0.6)  IE 6:
 http://www.mochikit.com/examples/interpreter/index.html

 And I can only get clear() to work. I try a simple javascript command:
 writeIn(hello)  as in the video demo, and I get an error writeIn is
 not defined... What am I doing wrong?

Can anyone else reproduce this? I can't. Works fine here.

-bob

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[mochikit] Re: beginners guide, for intepreter ajax

2006-08-16 Thread paolodude

Thanks for that. I thought it had to be something obvious as a letter.

Appreciated.. A bit of a Doh! moment for me..

So does anyone have a walk-thru guide for an ajax mini-app with
mochikit?

Me, I have my xml or json file generated by php, and want to now call
it inline with javascript to refresh  update content, periodically.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[mochikit] Re: beginners guide, for intepreter ajax

2006-08-16 Thread Jorge Godoy

paolodude [EMAIL PROTECTED] writes:

 So does anyone have a walk-thru guide for an ajax mini-app with
 mochikit?

I have 5 small AJAX calls working for LDP-BR's VP: http://vp.godoy.homeip.net/
(the colored boxes on the right).  It's pt_BR, though, but you'll be able to
see the code:
http://public-trac.godoy.homeip.net/trac/vp_ldp_br/browser/trunk/vp/static/javascript/common.js

(Fazer atualização == make update - update the elements)

The Python code that is called is available at
http://public-trac.godoy.homeip.net/trac/vp_ldp_br/browser/trunk/vp/controllers.py

 Me, I have my xml or json file generated by php, and want to now call
 it inline with javascript to refresh  update content, periodically.

Just take a look at the JavaScript above...  It replaces some placeholders
with dynamic contents from the database.

-- 
Jorge Godoy  [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---