JSON Example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

JSON Example

horrido
Can someone point me to a simple example of an Amber app talking to a JSON server API? I'm not sure how to do this. Thanks.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

Amber Smalltalk mailing list
Am 15.12.2014 13:21, schrieb Richard Eng:
Can someone point me to a simple example of an Amber app talking to a JSON server API? I'm not sure how to do this. Thanks.
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

So far the easiest entry into a really fully working example is the SmalltalkHub site it self.
http://smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

It help me a lot to get started with Amber,....

Sebastian

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

Herby Vojčík
In reply to this post by horrido
Use

   PlatformInterface
     ajax: #{'url'->'foo'. 'otherOption'->'otherValue' ... }

for get/post. You can specify json type (it is a wrapper around
jQuery,ajax), so you can get decoded raw JS object. Look for
#readJSObject: or something similar to convert this raw object to
structure of arrays and dictionaries.

Herby

Richard Eng wrote:

> Can someone point me to a *simple* example of an Amber app talking to a
> JSON server API? I'm not sure how to do this. Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

horrido
In reply to this post by Amber Smalltalk mailing list
I am unable to obtain the source code for SmalltalkHub. I'm not familiar with Monticello, and GitHub shows an empty repository. Can someone explain in simple terms how to get it? Thanks.


On Monday, 15 December 2014 16:38:54 UTC-5, HCSebastian wrote:
Am 15.12.2014 13:21, schrieb Richard Eng:
Can someone point me to a simple example of an Amber app talking to a JSON server API? I'm not sure how to do this. Thanks.
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="IXl_5pbUVIEJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

So far the easiest entry into a really fully working example is the SmalltalkHub site it self.
<a href="http://smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsmalltalkhub.com%2F%23!%2F~NicolasPetton%2FSmalltalkHub\46sa\75D\46sntz\0751\46usg\75AFQjCNGsyZLSnEY7Yd-npLV95IvwmOcHtg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsmalltalkhub.com%2F%23!%2F~NicolasPetton%2FSmalltalkHub\46sa\75D\46sntz\0751\46usg\75AFQjCNGsyZLSnEY7Yd-npLV95IvwmOcHtg';return true;">http://smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

It help me a lot to get started with Amber,....

Sebastian

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

philippeback
Isn't the code on http://www.smalltalkhub.com itself?

Beware that STH is part amber and part pharo (for the backend) with a chunk on MongoDb.

Phil
​-

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

horrido
Well, there's this page: http://www.smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

But I can't seem to get the code from Monticello. Like I said, I'm not familiar with Monticello, so I'm probably doing something wrong.


On Friday, 19 December 2014 14:00:39 UTC-5, [hidden email] wrote:
Isn't the code on <a href="http://www.smalltalkhub.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com\46sa\75D\46sntz\0751\46usg\75AFQjCNGq_0bysxlmCzVpQjOR99r-rRa9Bw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com\46sa\75D\46sntz\0751\46usg\75AFQjCNGq_0bysxlmCzVpQjOR99r-rRa9Bw';return true;">http://www.smalltalkhub.com itself?

Beware that STH is part amber and part pharo (for the backend) with a chunk on MongoDb.

Phil
​-

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

philippeback

I think that Amber is served from inside a Pharo image where one installs the Monticello package.

Phil

Le 19 déc. 2014 20:23, "Richard Eng" <[hidden email]> a écrit :
Well, there's this page: http://www.smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

But I can't seem to get the code from Monticello. Like I said, I'm not familiar with Monticello, so I'm probably doing something wrong.


On Friday, 19 December 2014 14:00:39 UTC-5, [hidden email] wrote:
Isn't the code on http://www.smalltalkhub.com itself?

Beware that STH is part amber and part pharo (for the backend) with a chunk on MongoDb.

Phil
​-

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: JSON Example

horrido
In reply to this post by horrido
Okay, I managed to get the source.


On Friday, 19 December 2014 14:23:11 UTC-5, Richard Eng wrote:
Well, there's this page: <a href="http://www.smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com%2F%23!%2F~NicolasPetton%2FSmalltalkHub\46sa\75D\46sntz\0751\46usg\75AFQjCNF-IqVc72zgunNlb7Fsvahc1r-UNQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com%2F%23!%2F~NicolasPetton%2FSmalltalkHub\46sa\75D\46sntz\0751\46usg\75AFQjCNF-IqVc72zgunNlb7Fsvahc1r-UNQ';return true;">http://www.smalltalkhub.com/#!/~NicolasPetton/SmalltalkHub

But I can't seem to get the code from Monticello. Like I said, I'm not familiar with Monticello, so I'm probably doing something wrong.


On Friday, 19 December 2014 14:00:39 UTC-5, [hidden email] wrote:
Isn't the code on <a href="http://www.smalltalkhub.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com\46sa\75D\46sntz\0751\46usg\75AFQjCNGq_0bysxlmCzVpQjOR99r-rRa9Bw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.smalltalkhub.com\46sa\75D\46sntz\0751\46usg\75AFQjCNGq_0bysxlmCzVpQjOR99r-rRa9Bw';return true;">http://www.smalltalkhub.com itself?

Beware that STH is part amber and part pharo (for the backend) with a chunk on MongoDb.

Phil
​-

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.