Welcome Guest Search | Active Topics | Sign In | Register

EO. Webrowser .NET Local HTML File / default page Options
kingo
Posted: Thursday, April 10, 2014 7:56:05 AM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 6
Hi,

I just installed the trial of your product, happy to say it appears to be much faster and not choppy like the others I have tried. Great work.

My first question relates to the opening of a local HTML file. (from your sample tabbed browser app) If opened from a web address it works (Localhost) in this case. However If I try to open it directly from a file system I get this error message across the browser window

FATAL ERROR xxxxx/xxx.xml - loading failed (NetworkError: A network error occurred.)

This has worked in other browser objects, however for some reason yours doesn't like the local file. Is it a trial thing ?



second question relates to setting a default page. I read your instructions about setting the default home page
'Load Google's homepage into the WebView
WebView1.Url = "www.google.com"

I have no idea where to put this.

Sorry for such basic questions. I am very new at this.

Thanks for your help
eo_support
Posted: Thursday, April 10, 2014 9:19:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Can you explain what do you mean by "open it directly from a file system"?

As to where to put WebView1.Url = "www.google.com", this is something you have to answer yourself because it entirely depends on your application logic. For example, if your application has a button and the function of that button is to load Google's home page, then you put this code in that button's click event handler.

Thanks!
kingo
Posted: Thursday, April 10, 2014 10:01:05 AM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 6
Hi Thanks for your answer.

I did some more research and learned the problem is possibly called cross origin request. the html file for example is located on C:\test\default.html I believe you can disable this protection in the chrome browser. And I am unable (not allowed) to install and use a webserver.

As for the second question, I do not want any navigation at all. just the browser app is opened and it loads a page by default. no button, no clicking. just open.

thanks.
eo_support
Posted: Thursday, April 10, 2014 10:11:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
kingo wrote:

I did some more research and learned the problem is possibly called cross origin request. the html file for example is located on C:\test\default.html I believe you can disable this protection in the chrome browser. And I am unable (not allowed) to install and use a webserver.

You can turn same origin restriction off (thus allowing cross origin request) by setting this property to true:

http://www.essentialobjects.com/doc/6/eo.webbrowser.browseroptions.enablewebsecurity.aspx

You can either set it globally or set it per WebView instance. See here for more details:

http://www.essentialobjects.com/doc/6/advanced/browser_options.aspx

kingo wrote:
As for the second question, I do not want any navigation at all. just the browser app is opened and it loads a page by default. no button, no clicking. just open.

Then you just call that when your application starts. We give you the tool for you to load something into the WebView. When to use that tool is completely up to you.

Thanks!
kingo
Posted: Thursday, April 10, 2014 10:30:51 AM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 6
Hi, Thanks

I have next to zero ( a little) bit of experience with visual studio, so please forgive my stupidity in asking simple questions. However the goal of asking these questions is simply to see if your product will work for me, so I can buy it.

I have tried coherent product and it stutters very badly. I am now trying your product.

I am glad your product can do these things, and it runs the animations smoothly for me.. however I know where to put the entry for a default loading page url/file location, or where I put the
Dim options As New EO.WebBrowser.BrowserOptions()
options.AllowJavaScript = False
options.LoadImages = False
WebView1.SetOptions(options)

then I am unable to use your software.

I have searched through the solution using word search, and also reading the parts to try to understand where it would go.

So unless its not a straightforward put this here and that there, then I am toast.

I am looking through your tabbed browser code.

Hope you understand.

Thanks
eo_support
Posted: Thursday, April 10, 2014 10:37:44 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Our API is among the easiest to use, but of course if you do not have the basic skills about the related tools and the language, then you can run into trouble using it. In that case you will need seek helps from other channels because we are not in a position to teach you how to use Visual Studio, or how to write programs in general.

Thanks!
kingo
Posted: Thursday, April 10, 2014 10:43:02 AM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 6
No worries. Perhaps you can suggest a forum where people can help using your product ?
eo_support
Posted: Thursday, April 10, 2014 10:59:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This is the official forum for our products. However your question in fact is not about our products at all. So you would be looking at the wrong place if you just keep looking for "how to use EO.WebBrowser". Let's say you bought a samsung TV but the power plug on your wall is not working, and as such your TV is not working for you. In that case you would be looking for "how to fix that power plug" instead of "how to make a samsung TV work", and you won't be asking samsung to fix your TV either even though the net result is indeed that the samsung TV is not working for you. In your case, if we tell you "just call it when your application starts" but you don't know to do that, then your question would be "how to call some code when application starts". This is a basic programming question that has nothing to do with us. That's also why we think you would be looking at the wrong direction if you just keep search for EO related information, it is also why we won't answer such questions.

Hope his clears up a little bit.

Thanks!
kingo
Posted: Thursday, April 10, 2014 12:47:08 PM
Rank: Newbie
Groups: Member

Joined: 4/10/2014
Posts: 6
Thanks for your television lecture. It turns out the code needed was less than your posts.. well done.
Fortunately I was able to find someone to help.
Hope that clears up any misunderstanding.
eo_support
Posted: Thursday, April 10, 2014 12:58:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
kingo wrote:
Fortunately I was able to find someone to help.


Excellent. Glad to hear that you found some help. If you still have any other questions that are directly related to our product, please feel free to ask. We won't answer generic programming questions, but we will answer product related question promptly.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.