This method cannot accept

This method cannot accept an assigned value (its lacks like an assigns parameter. )
HTMLViewer1.LoadPage=("/home/…/public_html/cgi-bin/JOURNAUX/"+Session.Cookies.Value(“initialmessage_lan”)+"/"+dossier+"/"+PopupMenu1.Text)

What’s happen here?

Alain

			dim f As FolderItem
			f = GetFolderItem( "/home/curseur/public_html/cgi-bin/JOURNAUX/"+Session.Cookies.Value("initialmessage_lan")+"/"+dossier+"/"+PopupMenu1.Text)
			HTMLViewer1.LoadPage=(f)

same

Dim s as String = "/home/........./public_html/cgi-bin/JOURNAUX/"+Session.Cookies.Value("initialmessage_lan") _ +"/"+dossier +"/"+PopupMenu1.Text Dim f As FolderItem = GetFolderItem(s, 3) HTMLViewer1.LoadPage(f)

[quote=311484:@Alain Lortie]This method cannot accept an assigned value (its lacks like an assigns parameter. )
HTMLViewer1.LoadPage=("/home/…/public_html/cgi-bin/JOURNAUX/"+Session.Cookies.Value(“initialmessage_lan”)+"/"+dossier+"/"+PopupMenu1.Text)

What’s happen here?

Alain[/quote]

Its telling you
You can’t say “HTMLViewer1.LoadPage=”
get rid of the =

http://documentation.xojo.com/index.php/HTMLViewer.LoadPage

[quote]Dim s as String = “/home/…/public_html/cgi-bin/JOURNAUX/”+Session.Cookies.Value(“initialmessage_lan”) _
+"/"+dossier +"/"+PopupMenu1.Text
Dim f As FolderItem = GetFolderItem(s, 3)
HTMLViewer1.LoadPage(f)[/quote]

Parametres “HTML” expects type string, but this class folder.

This is not suppose the load html but picture.

HTMLViewer1.URL = “http://abc.com/JOURNAUX/"+Session.Cookies.Value(“initialmessage_lan”)+"/"+dossier+"/”+me.Text
The requested URL /JOURNAUX/FR/Alain/16174697_743800579110291_5900775207935661430_n.jpg was not found on this server.

Would it be possible that this is because the record is in the cgi-bin folder?

Could you please when you post code, select it and click the code icon above the editor so it makes it legible ?

What you want is the LoadURL method
http://documentation.xojo.com/index.php/HTMLViewer.LoadURL

HTMLViewer1.loadURL("http://abc.com/JOURNAUX/"+Session.Cookies.Value("initialmessage_lan")+"/"+dossier+"/"+me.Text)

HTMLViewer doesn’t have a “LoadURL” method that takes a folder item
It takes a URL

And FolderItem has a “URLPath” property

All of this is documented on the respective pages

http://documentation.xojo.com/index.php/HTMLViewer
http://documentation.xojo.com/index.php/FolderItem

(( OP is using WebHTMLViewer ))

AFAIK, what starts with http:// is a URL.

Tim, you are right. Session should have indicated it. Shit. If only people posted in the proper channel, they would have better support …

The error is given because you use “=” while it can’t be assigned like a property