DevalVR support

 

It is currently Sat May 25, 2013 2:07 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: How to open html file inside pano
PostPosted: Sun Nov 28, 2010 5:48 pm 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Hi,

I would like to open a small window with html file inside a panorama using standalone player - something like when you click info icon in the toolsbar - it opens "abouturl" showing info about DevalVR player. I have used it once with browser plugin and replaced this "abouturl" with my own html file. But I don't know how to use it in standalone player.
Is it possible?

Thanks
Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Mon Nov 29, 2010 12:37 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi Juraj,

You can see this example http://www.devalvr.com/paginas/soporte/browser/
download the script here http://www.devalvr.com/panos/browser.zip

regards!


Top
 Profile E-mail  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Mon Nov 29, 2010 7:54 pm 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Thank you Fiero, this is exactly what I need.


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Sun Dec 12, 2010 3:44 pm 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Fiero,

I have found one complication when using BROWSER.
I want to use it to open a window with a text about a church. And it works OK, but that info text should be in 4 languages, and the browser window displays only one language info, doesn't matter, what language I choose.

Here is my code - the first part shows 4 buttons - flags of 4 countries to choose the info text language:
[code]
BUTTON= vlajky_t, svk_t, 0, 0, -40, 196, 43, #99, svk_t, svk_t, svk_t, 50, 100, 100, no, no, no, 2, nokey, click, "Text info SVK", "Show("_all_","", 0, "vlajky_t");Show("_all_","text_info", 0, "");Show("_all_","info_svk", 1, "");Show("_all_","close", 1, "");Show("_all_","horna_lista", 1, "");";
BUTTON= vlajky_t, pol_t, 0, 0, -3, 196, 43, #99, pol_t, pol_t, pol_t, 50, 100, 100, no, no, no, 2, nokey, click, "Text info POL", "Show("_all_","", 0, "vlajky_t");Show("_all_","text_info", 0, "");Show("_all_","info_pol", 1, "");Show("_all_","close", 1, "");Show("_all_","horna_lista", 1, "");";
BUTTON= vlajky_t, ger_t, 0, 0, 34, 196, 43, #99, ger_t, ger_t, ger_t, 50, 100, 100, no, no, no, 2, nokey, click, "Text info GER", "Show("_all_","", 0, "vlajky_t");Show("_all_","text_info", 0, "");Show("_all_","info_ger", 1, "");Show("_all_","close", 1, "");Show("_all_","horna_lista", 1, "");";
BUTTON= vlajky_t, eng_t, 0, 0, 71, 196, 43, #99, eng_t, eng_t, eng_t, 50, 100, 100, no, no, no, 2, nokey, click, "Text info ENG", "Show("_all_","", 0, "vlajky_t");Show("_all_","text_info", 0, "");Show("_all_","info_eng", 1, "");Show("_all_","close", 1, "");Show("_all_","horna_lista", 1, "");";
[/code]


and here is the code for the BROWSER itself:
[code]
IMAGE = browser, horna_lista, 0, 0, -238, 450, 26, #99, 100, no, horna_lista;
BUTTON= browser, close, 0, 212, -239, 21, 21, #99, close, close, close, 75, 100, 100, no, no, no, 2, nokey, click, "ZatvoriƄ okno", "Show("_all_","", 0, "browser");Show("_all_","info_a", 1, "");Show("_all_","info_b", 0, "");";
BROWSER = browser, info_svk, 0, 0, 0, 450, 450, #99, "info/info_sk.html";
BROWSER = browser, info_pol, 0, 0, 0, 450, 450, #99, "info/info_pol.html";
BROWSER = browser, info_ger, 0, 0, 0, 450, 450, #99, "info/info_ger.html";
BROWSER = browser, info_eng, 0, 0, 0, 450, 450, #99, "info/info_eng.html";
[/code]

[code]
(text_info)
{
TYPE=IMAGE;
FILE=foto/text_info.png;
}
[/code]

Now, when I click on Slovak flag, browser windows opens and displays info text from info_sk.html. After closing the browser I choose Polish (or any other) flag, browser window opens but displays Slovak text again, using info_sk.html.

I was also trying to create a separate browser for every language, but no success.

What is wrong with my code?

Thank you
Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Mon Dec 13, 2010 4:28 pm 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
So I have found a workaround of my problem: instead of trying to open 4 different html files in a browser, I created one longer html file, that contains all 4 different language versions of the guide. And the selection of the language is done here, in the beginning of the html file.

Anyway, I would like to know, wheter it is possible to change the content of the browser window the way I wrote about in my previous post.

Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Tue Dec 14, 2010 3:31 am 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Juraj,

I don't see the problem in your code. Anyway, I recommend you to add the function Load() to your buttons, before your function Show(). This way the web page is reloaded. And you can define only one browser and open a different page (as you requested).

See this example http://www.devalvr.com/panos/browser2.zip

The use of Load() function is very good to restart the browser windows every time that the windows is shown, because the user could change the content in previously.

Remember that HTML pages can't be packed, you must add the "info" folder in your CD.

regards!


Top
 Profile E-mail  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Thu Dec 16, 2010 4:34 pm 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Thank you Fiero,

I will give it a try tomorrow.

Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Wed Dec 22, 2010 11:51 am 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Fiero,

I have bought a licence of your excellent packer and tried to pack my tour and the result behaves very strangely. It worked OK when I started the exe file from my local hard drive. So I uploaded it to my client's server for testing, and I was told it doesn't show the content of the browser window correctly. So I have downloaded my own file back to my PC and It works OK. When I copied it to a USB stick, it works OK too, but when I downloaded the file to my other PC, then it doesn't show the content of the browser window as well.

Could you, please, test it for yourself? I would send you a link via PM.

Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Thu Dec 23, 2010 6:30 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi Juraj,

Please, test the latest version.

About your page, if your HTML has images you can create a MHT file to save all the page in one file.

regards!


Top
 Profile E-mail  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Fri Dec 31, 2010 9:12 am 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Fiero,

You have done a great job again, now it works OK. And thank you for the idea of creating MHT file, I didn't know about this possibility.

Thank you and wish you all HAPPY NEW YEAR 2011.

Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Tue Jan 04, 2011 10:59 am 
Offline

Joined: Sun Jan 20, 2008 9:26 pm
Posts: 26
Location: Slovakia
Fiero,

I have tried using MHT file instead of HTML file in browser window, but no success. But I'm not sure is my workflow correct:
I have opened my html file (that I want to use in browser window) in Internet Explorer 8, then I saved it as webarchive (one file) MHT file.
I have changed the file name in my dvl file from:

[code]
BROWSER = browser, info, 0, 0, 0, 450, 450, #99, "jedlinka_info.html";
[/code]

to this:

[code]
BROWSER = browser, info, 0, 0, 0, 450, 450, #99, "jedlinka_info.mht";
[/code]

And then I run packer and created exe file. When I run my exe file it behaves like this:

1. When all files (exe, mht, html and 5 png images used in html file) are in the same folder, then evrything is OK.
2. When I remove those 5 images from the folder and then run the exe file and open browser info - images are missing.
3. When I remove html file from the folder, run the exe file and try to open browser info, there is "file not found" error.

Am I doing anything wrong? My default web browser is Mozilla Firefox, so maybe this is that problem as "the browser window is redering by the system, not by DevalVR viewer".

Juraj


Top
 Profile  
 
 Post subject: Re: How to open html file inside pano
PostPosted: Tue Jan 04, 2011 7:35 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Ok, I was playing with MHT files some time. It appears that MHT files can't be used to navigate, this is, the anchor links does not work correctly over the own MHT file. So, maybe you should use the original HTML :?

I read in this page that it exists other alternative to MHT files http://en.wikipedia.org/wiki/MHTML , maybe this can be useful for future works. Anyway, I recommend you to use the original HTML + images, maybe you can put them into a folder to clean the main folder.

regards!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group