FoxInCloud
Using awoleie class
Gravatar is a globally recognized avatar based on your email address. Using awoleie class
  Michele
  thn@foxincloud.com
  Apr 16, 2014 @ 07:56am
I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 16, 2014 @ 11:25am
Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...



-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 16, 2014 @ 11:51am

In my form i create an html file that contains some javascript code to call the google maps api and show a map with some data in it. I need to open this html in one form and show it. If awoleie is not available is there another solution to my problem?



Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...



Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 16, 2014 @ 11:25pm
Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...



Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 17, 2014 @ 04:55am
you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=<<yourTable.yourX>>&y=<<yourTable.yourY>>"></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...





-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 17, 2014 @ 05:17am
But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...





Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 17, 2014 @ 05:26am
sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...







-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 17, 2014 @ 06:42am
Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...







Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 17, 2014 @ 06:48am
in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...









-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 17, 2014 @ 08:01am
Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...









Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 17, 2014 @ 08:47am
Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...











-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 17, 2014 @ 09:04am
next week. when i finish to insert some options...


Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...











Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 02:45am
Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...











Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 03:03am
Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="<<this.wcID>>">]);
+ [<iframe src="<<URL of target page>>"></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...













-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 03:12am
But where i have to put the code you sent ?
Actually my code is int container's wcHTMLGen.

What does cointain tlInnerHTML


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...














Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 03:25am
Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...













Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 04:45am
this code goes into your container.wcHTMLgen()
tlInnerHTML indicates that FAS generates HTML for elements inside the container - in this case HTML inside <div></div> is updated


But where i have to put the code you sent ?
Actually my code is int container's wcHTMLGen.

What does cointain tlInnerHTML


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...














-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 04:50am
sure,
procedure wFormCallBack
lparameters userHasChangedSomething
if m.userHasChangedSomething
thisForm.someProperty = whatHasChanged && or thisForm.HTMLcontainer.someProperty
thisForm.HTMLcontainer.wlContentChanged = .T.
endif

procedure HTMLcontainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance && [.F.] {en} render container's inner HTML

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="<<this.wcID>>">]);
+ [<iframe src="<<URL of target page built with thisForm.someProperty>>"></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)


Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...















-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 05:00am
I continue to have this error message:

The code i have in my wchtmlgen() is this:


Local cUser, cUrl
cUser = ThisForm.UserName
cUrl = "http://frontend.acut.it/acut/aupd/"
This.wcHTML = textmerge([<iframe src="] + [getposition.Html?usr=] + cUser + [&url=] + cUrl + [" width="] + Str(This.Width,4) + [" height="] + Str(This.Height,4) + ["></iframe>])

In UserName_assign() method i set container.wlcontentchanged = .T.


sure,
procedure wFormCallBack
lparameters userHasChangedSomething
if m.userHasChangedSomething
thisForm.someProperty = whatHasChanged && or thisForm.HTMLcontainer.someProperty
thisForm.HTMLcontainer.wlContentChanged = .T.
endif

procedure HTMLcontainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance && [.F.] {en} render container's inner HTML

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)


Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...















Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 05:04am
you need to change your .wcHTMLgen code as indicated previously ...
this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]); && this is important for updates
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]); && this is important for updates
)


I continue to have this error message:

The code i have in my wchtmlgen() is this:


Local cUser, cUrl
cUser = ThisForm.UserName
cUrl = "http://frontend.acut.it/acut/aupd/"
This.wcHTML = textmerge([<iframe src="] + [getposition.Html?usr=] + cUser + [&url=] + cUrl + [" width="] + Str(This.Width,4) + [" height="] + Str(This.Height,4) + ["></iframe>])

In UserName_assign() method i set container.wlcontentchanged = .T.


sure,
procedure wFormCallBack
lparameters userHasChangedSomething
if m.userHasChangedSomething
thisForm.someProperty = whatHasChanged && or thisForm.HTMLcontainer.someProperty
thisForm.HTMLcontainer.wlContentChanged = .T.
endif

procedure HTMLcontainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance && [.F.] {en} render container's inner HTML

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)


Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...

















-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 05:07am
sorry, I forgot that '< <' and '> >' don't show up in the code samples on this forum (notified an ER to Rick about that, without success so far ...)

please replace
[<div id="">]

by
[<div id="] + this.wcID + [">]


I continue to have this error message:

The code i have in my wchtmlgen() is this:


Local cUser, cUrl
cUser = ThisForm.UserName
cUrl = "http://frontend.acut.it/acut/aupd/"
This.wcHTML = textmerge([<iframe src="] + [getposition.Html?usr=] + cUser + [&url=] + cUrl + [" width="] + Str(This.Width,4) + [" height="] + Str(This.Height,4) + ["></iframe>])

In UserName_assign() method i set container.wlcontentchanged = .T.


sure,
procedure wFormCallBack
lparameters userHasChangedSomething
if m.userHasChangedSomething
thisForm.someProperty = whatHasChanged && or thisForm.HTMLcontainer.someProperty
thisForm.HTMLcontainer.wlContentChanged = .T.
endif

procedure HTMLcontainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance && [.F.] {en} render container's inner HTML

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)


Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...

















-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 05:09am
With Firebug i see that the problem is perhaps on this row

$('main_scx-_pageframe1-page1-cntweb').update('<iframe src="getposition.Html?usr=M.BOSETTI&url=http://frontend.acut.it/acut/aupd/" width=" 208" height=" 196"></iframe>');

or on this that is after

var oForm = $('main_scx_caption'); oForm && oForm.update && oForm.update(oForm.innerHTML.sub(/ - <a title=.+/i, '') + ' - <a title="In case of trouble, click to send a support request by email ACUT erp" href="mailto:FoxInCloud App Admin<appAdmin@yourDomain.com>?subject=ACUT erp - trouble with form main_scx at ::1 server: 02:10:32 PM">::1 server: 02:10:32 PM <img src="Images/email_error.png" style="vertical-align:text-top;" /></a>');


sure,
procedure wFormCallBack
lparameters userHasChangedSomething
if m.userHasChangedSomething
thisForm.someProperty = whatHasChanged && or thisForm.HTMLcontainer.someProperty
thisForm.HTMLcontainer.wlContentChanged = .T.
endif

procedure HTMLcontainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance && [.F.] {en} render container's inner HTML

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)


Can i have a form with a button and a container. WHen i click on the button i call a form and in the button's wformcallback change something and then show something (always n html format) in the container ?


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...















Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 06:06am
Provided you have an element with id = "main_scx-_pageframe1-page1-cntweb", this instruction should work:
$('main_scx-_pageframe1-page1-cntweb').update('<iframe src="getposition.Html?usr=M.BOSETTI&url=http://frontend.acut.it/acut/aupd/" width=" 208" height=" 196"></iframe>');

can you drop me (by PM) an URL on your dev machine so that I can see what happens?

Thks,

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 06:14am
With your last suggests it seems to work......I have problem with geolocalization, but this is not a problem of Foxincloud...


Provided you have an element with id = "main_scx-_pageframe1-page1-cntweb", this instruction should work:
$('main_scx-_pageframe1-page1-cntweb').update('<iframe src="getposition.Html?usr=M.BOSETTI&url=http://frontend.acut.it/acut/aupd/" width=" 208" height=" 196"></iframe>');

can you drop me (by PM) an URL on your dev machine so that I can see what happens?

Thks,


Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Michele
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 06:32am
Is there a way to position the container where i want and not at the top of the form ?


Provided you have an element with id = "main_scx-_pageframe1-page1-cntweb", this instruction should work:
$('main_scx-_pageframe1-page1-cntweb').update('<iframe src="getposition.Html?usr=M.BOSETTI&url=http://frontend.acut.it/acut/aupd/" width=" 208" height=" 196"></iframe>');

can you drop me (by PM) an URL on your dev machine so that I can see what happens?

Thks,


Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  FoxInCloud Support - Thierry N.
  Michele
  Apr 28, 2014 @ 07:00am
This code should work and provide regular CSS support:
procedure yourContainer.wcHTMLgen
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

local ciFrame

ciFrame = [<iframe src="] + <URL of target page> + ["></iframe>]

if m.tlInnerHTML
this.wcHTML = m.ciFrame
else
m.toHTMLgen.cHTMLadd = m.ciFrame
m.toHTMLgen.lHTMLaddInside = .T.
endif


Is there a way to position the container where i want and not at the top of the form ?


Provided you have an element with id = "main_scx-_pageframe1-page1-cntweb", this instruction should work:
$('main_scx-_pageframe1-page1-cntweb').update('<iframe src="getposition.Html?usr=M.BOSETTI&url=http://frontend.acut.it/acut/aupd/" width=" 208" height=" 196"></iframe>');

can you drop me (by PM) an URL on your dev machine so that I can see what happens?

Thks,




-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Using awoleie class
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Apr 28, 2014 @ 07:52am

I just keep being amazed at how many features FiC has,


Michele,

You can adapt your code as explained below,

#if .F. && {en} implementation sample: render an external web page

this.wcHTML = Textmerge('';
+ Iif(m.tlInnerHTML, [], [<div id="">]);
+ [<iframe src=""></iframe>];
+ Iif(m.tlInnerHTML, [], [</div>]);
)

&& {en} if URL of target page can change due to user action and/or thisForm.Init(),

&& {en} 1- at design time or this.Init(), set:
this.wlContentDynamic = .T.

&& {en} 2- after each change, set:
this.wlContentChanged = .T.

#endif


Using wcHTMLGEN what i asked is working fine, but can i set wchtmlgen after i have initialized the form ? wcHtmlGen value depends on one parameter i pass to the form, but when i read this parameter in the form's init() i can change container's wcHtmlgen but the show html doesn't change....



Can you send us by PM an URL and/or UI steps so that we can see this beauty ... ;-)
thks
Happy Easter to you


Using wcHtmlGen i solved the problem.....without Oleie control...
Thanks


in .wcHTMLgen(), you can get:

m.toHTMLgen.oConfigApp.cHTMLpath && site home dir
m.toHTMLgen.oConfigApp.cTempPathPhysical && site temp dir


Is there a global or property or a public variable where i can recover the full path to the phisical web folder where my app resides ?


sure, it'll override default HTML code


But in This.wcHTML i can put Html code ?


you might try to add a container to your form, and implement its .wcHTMLgen() method like follows:
LPARAMETERS toHTMLgen AS awHTMLgen OF awHTML.prg, tlInnerHTML && {en} awHTMLgen instance {fr} instance de awHTMLgen && [.F.] {en} render container's inner HTML {fr} Rendre l'intérieur du conteneur

&& {en} Implement in sub-class for custom HTML rendering or adding code to form's JavaScript
&& {fr} Implémenter en sous-classe pour rendu HTML spécifique ou ajouter du JavaScript au formulaire

this.wcHTML = textmerge([<iframe src="https://maps.google.com?x=&y="></iframe>])
&& replace x and y by whatever parameters Google expects to locate the map


Not urgently, but if there is a way to open this page even in another form or in the browser for the moment i can wait. If instead it is possible to insert this option in Fic it is better...for our project, based on google maps, it is necessary.


Ciao Michele,

awoleie is not supported yet in Web mode
Is is something you need urgently?


I isnert in a form the awoleie class object....but when i try to navigate to a specified url nothing happens...The html file i wanto to navigate is on local drive. The command i use is

This.oWeb.Navigate(cHtml4)

where chtml4 contains the path for the local drive...













© 1996-2024