Hi all
I've come across an issue with the way Pano2VR deals with mailto links.
I have for years been using mailto function using standard language with no problems, however I have come across an issue recently.
Here's the problem:
If I create the following:
mailto:me@123.co.uk?&subject=Subject here&body=Some text here
I get this:
Note the leading line return in the body - this is new and unwanted.
Furthermore if I use the following mailto (to insert line breaks) all I get is a black screen when previewing the pano!
mailto:me@123.co.uk?&subject=Subject here&body=Some text here.%0D%0A%0D%0ALine break here
If i remove the '%0D%0A%0D%0A' (recognised way to insert 2 line breaks in the mailto link) the preview works but all I get is a one line of text in the email body.
I have tried all recognised ways to get, what was working before without success.
I would appreciate any input here as sending a one line email looks a bit unprofessional.
We should be able to send full featured HTML and or text only emails with line breaks etc.
Hope someone can help.
As ever thank you...
Mailto issue
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi paulk,
Using:
Give s this
Seems to be working ok, I am on a Mac and using Mail.
Regards,
Using:
Code: Select all
mailto:me@123.co.uk?subject=Touching base&body=Hi how are you?%0D%0ASingle line break.%0D%0A%0D%0ADouble Line break.
Seems to be working ok, I am on a Mac and using Mail.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi Hopki
Thank you for your reply.
Somehow theres a problem here - I know your code is valid (been using it in other applications for years), but when i include "%0D%0ASingle line break.%0D%0A%0D%0ADouble Line break." the internal server will not disply the panorama.
All I get is a black screen, however if i omit the "%0D%0A" characters all is fine (no line returns though) and the pano renders ok.
Any thoughts?
Thank you for your reply.
Somehow theres a problem here - I know your code is valid (been using it in other applications for years), but when i include "%0D%0ASingle line break.%0D%0A%0D%0ADouble Line break." the internal server will not disply the panorama.
All I get is a black screen, however if i omit the "%0D%0A" characters all is fine (no line returns though) and the pano renders ok.
Any thoughts?
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
This is working for me, this is a temporary link to a test: https://vtour.cloud/kg9e1lpz/628dejox/
Regards,
This is working for me, this is a temporary link to a test: https://vtour.cloud/kg9e1lpz/628dejox/
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi Hopki
I have now done the following on my production machine(windows 11 64 bit)
Uninstalled Pano2vr v 7
Reinstalled Pano2vr v7.0.3 64 bit
Downloaded your test project (wiso) where you created the email builder from variables.
Added values exactly as you did for line returns ran project - black screen on internal server, black screen on remote server.
No black screen if line return characters removed!
Installed pano2vr v7 onto seperate windows 11 machine - (Surface pro) - clean windows 11 install no other software except OS, pano2vr & browsers.
Repeated same procedure as above - exactly same results.
Have tried using differrent browsers, Chrome, Safari, firefox even tried Edge! - no change
I have to conclude that this must be a bug or some other issue which has not been identified that is interfering with the behind the scenes javascript from excecuting correctly.
Can you please investigate? I know it works for you on a Mac but it's not happening here on a windows machine.
Are any other users reading this thread who have come accross similar situation?
Many thanks
Paul
I have now done the following on my production machine(windows 11 64 bit)
Uninstalled Pano2vr v 7
Reinstalled Pano2vr v7.0.3 64 bit
Downloaded your test project (wiso) where you created the email builder from variables.
Added values exactly as you did for line returns ran project - black screen on internal server, black screen on remote server.
No black screen if line return characters removed!
Installed pano2vr v7 onto seperate windows 11 machine - (Surface pro) - clean windows 11 install no other software except OS, pano2vr & browsers.
Repeated same procedure as above - exactly same results.
Have tried using differrent browsers, Chrome, Safari, firefox even tried Edge! - no change
I have to conclude that this must be a bug or some other issue which has not been identified that is interfering with the behind the scenes javascript from excecuting correctly.
Can you please investigate? I know it works for you on a Mac but it's not happening here on a windows machine.
Are any other users reading this thread who have come accross similar situation?
Many thanks
Paul
Hi Hopki again
I've been delving into the javascript - namely the skin.js. I have found the culprit!
Here's what is being created in the js file:
function pano2vrSkin(player,base) {
player.addVariable('email_mail', 0, "me@me.com", { ignoreInState: 1 });
player.addVariable('email_title', 0, "Test", { ignoreInState: 1 });
player.addVariable('email_body', 0, "Hi how are you?1D1AASingle line break.1D1A1D1ADouble Line break.", { ignoreInState: %5 });
Note the problem. It appears the skin is being compiled so that the characters %0D%0A are being written as 1D1A. This of course invalidates the javascript and hence the black screen.
If I edit the skin .js file after publishing (in VS code) and type in the correct characters - everything works as it should.
Plus this fixes the empty line space at the start of the message in the Thunderbird e-mail Client.
Can you confirm this your end - is this a windows or pano 2vr issue?
Look forward to your reply
Paul
I've been delving into the javascript - namely the skin.js. I have found the culprit!
Here's what is being created in the js file:
function pano2vrSkin(player,base) {
player.addVariable('email_mail', 0, "me@me.com", { ignoreInState: 1 });
player.addVariable('email_title', 0, "Test", { ignoreInState: 1 });
player.addVariable('email_body', 0, "Hi how are you?1D1AASingle line break.1D1A1D1ADouble Line break.", { ignoreInState: %5 });
Note the problem. It appears the skin is being compiled so that the characters %0D%0A are being written as 1D1A. This of course invalidates the javascript and hence the black screen.
If I edit the skin .js file after publishing (in VS code) and type in the correct characters - everything works as it should.
Plus this fixes the empty line space at the start of the message in the Thunderbird e-mail Client.
Can you confirm this your end - is this a windows or pano 2vr issue?
Look forward to your reply
Paul
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Paul,
Just to let you know, I tested this on a Dell Windows 11 laptop using the attached project and using Windows Mail.
This is what it looked like:
As you can see all working as expected.
We will take a look at this but as you can see for us it is working as should.
Please try the attached project, does it work for you?
Regards,
Just to let you know, I tested this on a Dell Windows 11 laptop using the attached project and using Windows Mail.
This is what it looked like:
As you can see all working as expected.
We will take a look at this but as you can see for us it is working as should.
Please try the attached project, does it work for you?
Regards,
- Attachments
-
- project.zip
- (25.1 KiB) Downloaded 268 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi Hopki
Thank you for your response.
Ok - the project works exactly as expected - with the output as supplied and after a seperate output build.
I see the mailto url is embedded as a click event (go to URL) on the email button in the skin. This would seem to be compiling ok in the skin.js file (line 253):
me._svg_mail.onclick=function (e) {
player.openUrl("mailto:me@123.co.uk?subject=Touching base&body=Hi how are you?%0D%0ASingle line break.%0D%0A%0D%0ADouble Line break.","_self");
}
However, if you fill in the exposed variables (body) with the above text (%0D%0A etc...) this is what gets compiled in skin.js (line 9):
player.addVariable('mail_body_text', 0, "Hi how are you?1D1ASingle line break.1D1A1D1ADouble Line break.", { ignoreInState: %5 });
This results in a black screen.
Seems to be an issue in how %0D%0A when entered into the exposed variable gets translated into the skin.js file?
Thank you for your response.
Ok - the project works exactly as expected - with the output as supplied and after a seperate output build.
I see the mailto url is embedded as a click event (go to URL) on the email button in the skin. This would seem to be compiling ok in the skin.js file (line 253):
me._svg_mail.onclick=function (e) {
player.openUrl("mailto:me@123.co.uk?subject=Touching base&body=Hi how are you?%0D%0ASingle line break.%0D%0A%0D%0ADouble Line break.","_self");
}
However, if you fill in the exposed variables (body) with the above text (%0D%0A etc...) this is what gets compiled in skin.js (line 9):
player.addVariable('mail_body_text', 0, "Hi how are you?1D1ASingle line break.1D1A1D1ADouble Line break.", { ignoreInState: %5 });
This results in a black screen.
Seems to be an issue in how %0D%0A when entered into the exposed variable gets translated into the skin.js file?
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Paul,
We will look into it and is added to the list.
Regards,
We will look into it and is added to the list.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/