How can we use the app Dartboard in our website?.

122 views
Skip to first unread message

Jesús Ruiz

unread,
Feb 3, 2012, 10:28:31 PM2/3/12
to General Dart Discussion
Hello and first of all thanks for reading this message.

In Dart's official website, http://www.dartlang.org, have available
the application Dartboard. This creates a link to share the code that
we created, but that's not what I want.

Does anyone know how we can embed in our websites, the app
Dartboard?.
This is, have the application dartboard in our website and run the
code without having to direct visitors to the official website of
Dart.

Thank you very much and best regards.

financeCoding

unread,
Feb 4, 2012, 12:01:15 AM2/4/12
to General Dart Discussion
I've used it as an iframe without any issues.

<iframe src='http://try.dartlang.org/'></iframe>

Kind Regards,
Adam

On Feb 3, 7:28 pm, Jesús Ruiz <jesusruiz2...@gmail.com> wrote:
> Hello and first of all thanks for reading this message.
>
> In Dart's official website,http://www.dartlang.org, have available

Jesús Ruiz García

unread,
Feb 4, 2012, 11:33:31 AM2/4/12
to financeCoding, General Dart Discussion
Adam, thanks for your response and your help has been very friendly.

I had already tried to do in every way, and at the end is easier than I thought.

I've tried with <iframe>, and as you say, seems to work correctly.

Thank you very much again, I owe you one.


2012/2/4 financeCoding <financ...@gmail.com>

gmenessy

unread,
Feb 4, 2012, 4:14:21 PM2/4/12
to General Dart Discussion
You nead a section :
<code class="codes">.... </code>

And then dartboard js code.

<script type="text/javascript" src="http://try.dartlang.org/
dartboard.dart.app.js"></script>
Kind Regards,
Gabriel

Jesús Ruiz

unread,
Feb 4, 2012, 5:52:23 PM2/4/12
to General Dart Discussion
Hi Gabriel, and thanks thanks for your answer.

Could you give an example of how the structure and the code?. I have
found that indeed, adding the line
<script type="text/javascript" src="http://try.dartlang.org/
dartboard.dart.app.js">
Dartboard application loads.
But not quite understand, where you insert the code.

An example of the code of a page is loading indefinitely, inserting
Dart code:

<html>
<head>
<title>Example Dartboard</title>
</head>
<body>
<code class="codes">
<script type="text/javascript" src="http://try.dartlang.org/
dartboard.dart.app.js">
main() {
print('Hello, Dart!');
}
</script>
</code>
</body>
</html>

Where is the error. If you could show me some example, I'd be very
grateful.

A greeting and thank you very much for everything.

Jesús Ruiz

unread,
Feb 4, 2012, 7:26:22 PM2/4/12
to General Dart Discussion
I forgot to ask one thing, Adam:
Using iframe, how do you make the size of the iframe, is self-
adjusting?

Thanks ;)

gmenessy

unread,
Feb 5, 2012, 2:58:38 AM2/5/12
to General Dart Discussion
a example:

<html>
<head>
<title>Example Dartboard</title>
</head>
<body>
<code class="codes">
main() {
print('Hello, Dart!');
}
</code>
<script type="text/javascript" src="http://try.dartlang.org/
dartboard.dart.app.js"> </script>


</body>
</html>

Gabriel

chrisbuckett

unread,
Feb 6, 2012, 3:33:43 AM2/6/12
to General Dart Discussion
Quick blog post here: http://goo.gl/aOxqO with instructions.
Regards
Chris.

On Feb 4, 3:28 am, Jesús Ruiz <jesusruiz2...@gmail.com> wrote:
> Hello and first of all thanks for reading this message.
>
> In Dart's official website,http://www.dartlang.org, have available

Jesús Ruiz García

unread,
Feb 6, 2012, 3:31:34 PM2/6/12
to chrisbuckett, General Dart Discussion
Great, Chris!!!!, You're a genius.

I have long been wondering how to embed Dartboard, and you've solved it in minutes.

I owe you one, you're very kind. Thousands of thanks,
I recommend to the community to follow your website Dart, because it is very elaborate.

Regards to all.


2012/2/6 chrisbuckett <chrisb...@gmail.com>
Reply all
Reply to author
Forward
0 new messages