From Roassal RTView to html

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

From Roassal RTView to html

Andrei Stebakov
I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?

Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?



Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?





Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

abergel
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?






Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?







Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
Now it takes me to the right page, thanks!
One small glitch though, looks like after mouse click the UI element gets grabbed by the mouse as if I pressed "click and hold".
So the only way to dis-engage the mouse from the element is to refresh the html page.

On Mon, Feb 5, 2018 at 3:21 PM, milton mamani <[hidden email]> wrote:
Could you please use this script

Gofer it
smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
package: 'Roassal2';
package: 'Roassal2GT';
package: 'Trachel';
load.

2018-02-05 17:12 GMT-03:00 Andrei Stebakov <[hidden email]>:
Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?









Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
I am using chrome on windows 10.

On Feb 5, 2018 19:51, "milton mamani" <[hidden email]> wrote:
I do not have that error, what browser do you use? let me know if I can help you, to improve this

2018-02-05 18:41 GMT-03:00 Andrei Stebakov <[hidden email]>:
Now it takes me to the right page, thanks!
One small glitch though, looks like after mouse click the UI element gets grabbed by the mouse as if I pressed "click and hold".
So the only way to dis-engage the mouse from the element is to refresh the html page.

On Mon, Feb 5, 2018 at 3:21 PM, milton mamani <[hidden email]> wrote:
Could you please use this script

Gofer it
smalltalkhubUser: 'ObjectProfile' project: 'Roassal2';
package: 'Roassal2';
package: 'Roassal2GT';
package: 'Trachel';
load.

2018-02-05 17:12 GMT-03:00 Andrei Stebakov <[hidden email]>:
Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?










Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

abergel
In reply to this post by Andrei Stebakov
Can you try to update Roassal via the world menu:



Cheers,
Alexandre

On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <[hidden email]> wrote:

Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }.
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?








Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.

On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <[hidden email]> wrote:
Can you try to update Roassal via the world menu:



Cheers,
Alexandre


On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <[hidden email]> wrote:

Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }.
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?









Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
I debugged the JavaScript a little and there is a function in roassal.js
mousedown: function(e){
   this.rtmouseClick(e);
   this.trmouseDragBegin(e);
}
I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events.
Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work.
So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other.

On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <[hidden email]> wrote:
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.

On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <[hidden email]> wrote:
Can you try to update Roassal via the world menu:



Cheers,
Alexandre


On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <[hidden email]> wrote:

Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }.
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?









Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

Andrei Stebakov
As soon as I removed @ RTDraggable, it fixed the problem, silly me :)

On Feb 6, 2018 2:57 PM, "Andrei Stebakov" <[hidden email]> wrote:
I debugged the JavaScript a little and there is a function in roassal.js
mousedown: function(e){
   this.rtmouseClick(e);
   this.trmouseDragBegin(e);
}
I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events.
Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work.
So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other.

On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <[hidden email]> wrote:
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.

On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <[hidden email]> wrote:
Can you try to update Roassal via the world menu:



Cheers,
Alexandre


On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <[hidden email]> wrote:

Updated roassal via:
Gofer new smalltalkhubUser: 'ObjectProfile'
project: 'Roassal';
package: 'ConfigurationOfRoassal';
load.
(Smalltalk at: #ConfigurationOfRoassal) load

The problems is still the same: added ".html" suffix.

On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Andrei, let us know how it goes

Cheers
Alexandre 

Envoyé de mon iPad

Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :

Your need to load the last version of roassal, I change it that

2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
Milton, thanks for the example.
I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?

On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
Hi Andrei,

This is some example.

Let me know if this is what you want.

Run this in a playground with the last version of roassal:


.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

b := RTMondrian new.
b shape text color: [Color random].
b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }.
b build.
link := RTLinkView new 
name: [ :model | model ] "#yourself";
view: nil.
b view elements @ link.

RTHTML5Exporter new
fileName: 'roassalfile.html';
export: b view.
b view

.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.

Best regards,
Milton





2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
I'll try to find if there is a way to embed a clickable interaction. 
Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.

On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
Hi Milton,

Can you answer to Andrei please?
I know in Roassal there is a way to embed clickable interaction.

Cheers,
Alexandre

Begin forwarded message:

From: Andrei Stebakov <[hidden email]>
Subject: [Pharo-users] From Roassal RTView to html
Date: February 2, 2018 at 1:53:50 PM GMT-3
To: Any question about pharo is welcome <[hidden email]>
Reply-To: Any question about pharo is welcome <[hidden email]>

I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. 
In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?









Reply | Threaded
Open this post in threaded view
|

Re: From Roassal RTView to html

abergel
Thanks Andrei for your effort

Cheers,
Alexandre


> On Feb 6, 2018, at 5:23 PM, Andrei Stebakov <[hidden email]> wrote:
>
> As soon as I removed @ RTDraggable, it fixed the problem, silly me :)
>
> On Feb 6, 2018 2:57 PM, "Andrei Stebakov" <[hidden email]> wrote:
> I debugged the JavaScript a little and there is a function in roassal.js
> mousedown: function(e){
>    this.rtmouseClick(e);
>    this.trmouseDragBegin(e);
> }
> I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events.
> Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work.
> So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other.
>
> On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <[hidden email]> wrote:
> The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.
>
> On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <[hidden email]> wrote:
> Can you try to update Roassal via the world menu:
>
> <Screenshot 2018-02-06 10.49.35.png>
>
> Cheers,
> Alexandre
>
>
>> On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <[hidden email]> wrote:
>>
>> Updated roassal via:
>> Gofer new smalltalkhubUser: 'ObjectProfile'
>> project: 'Roassal';
>> package: 'ConfigurationOfRoassal';
>> load.
>> (Smalltalk at: #ConfigurationOfRoassal) load
>>
>> The problems is still the same: added ".html" suffix.
>>
>> On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
>> Andrei, let us know how it goes
>>
>> Cheers
>> Alexandre
>>
>> Envoyé de mon iPad
>>
>> Le 5 févr. 2018 à 16:51, milton mamani <[hidden email]> a écrit :
>>
>>> Your need to load the last version of roassal, I change it that
>>>
>>> 2018-02-05 16:44 GMT-03:00 Andrei Stebakov <[hidden email]>:
>>> Milton, thanks for the example.
>>> I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?
>>>
>>> On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <[hidden email]> wrote:
>>> Hi Andrei,
>>>
>>> This is some example.
>>>
>>> Let me know if this is what you want.
>>>
>>> Run this in a playground with the last version of roassal:
>>>
>>>
>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>
>>> b := RTMondrian new.
>>> b shape text color: [Color random].
>>> b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }.
>>> b build.
>>> link := RTLinkView new
>>> name: [ :model | model ] "#yourself";
>>> view: nil.
>>> b view elements @ link.
>>>
>>> RTHTML5Exporter new
>>> fileName: 'roassalfile.html';
>>> export: b view.
>>> b view
>>>
>>> .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
>>>
>>> Best regards,
>>> Milton
>>>
>>>
>>>
>>>
>>>
>>> 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <[hidden email]>:
>>> I'll try to find if there is a way to embed a clickable interaction.
>>> Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.
>>>
>>> On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <[hidden email]> wrote:
>>> Hi Milton,
>>>
>>> Can you answer to Andrei please?
>>> I know in Roassal there is a way to embed clickable interaction.
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>> Begin forwarded message:
>>>>
>>>> From: Andrei Stebakov <[hidden email]>
>>>> Subject: [Pharo-users] From Roassal RTView to html
>>>> Date: February 2, 2018 at 1:53:50 PM GMT-3
>>>> To: Any question about pharo is welcome <[hidden email]>
>>>> Reply-To: Any question about pharo is welcome <[hidden email]>
>>>>
>>>> I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view.
>>>> In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>