You are not logged in.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Sunday, April 22nd 2018, 12:55pm

Onclick=openurl problem - Solved

Hi all,
I'm using Onclick=openurl to open pages of a clients web site from popup images in the tour.
This is an example of one link:- http://www.duscholux.es/mamparas_seleccion.aspx?es,,,,6
The problem is, the xml won't read past the commas. It ignores them and just opens the main page.
Should I/can I replace the commas with any symbol to force the xml to read it?

Here's the tour - http://www.concept360.es/tours/duscholux/index_v4.html the first popup is in tour 03

Cheers

Kev

This post has been edited 1 times, last edit by "Kev-in-spain" (Apr 25th 2018, 5:57pm)


2

Sunday, April 22nd 2018, 2:54pm

the commas in your url probably interfere with the krpano action code evaluation
(your commas probably get interpreted)
maybe you must backslash them or use url encoding
hard to say without seeing your code

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

3

Monday, April 23rd 2018, 8:52am

Hi!

Try this, it seems to work:

Source code

1
onclick="openurl('https://www.duscholux.es/mamparas_seleccion.aspx?es,,,,4', _blank);"



Use single quotation marks to use the link as string (that avoids parsing commas, I guess).
Regards,

Alexey

4

Monday, April 23rd 2018, 9:52am

yes, you didn't do that in your xml before :)

Source code

1
onclick="openurl(https://www.duscholux.es/mamparas_seleccion.aspx?es,,,,4)"

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

5

Monday, April 23rd 2018, 5:59pm

Thanks guys... I'll try these solutions this evening when I get back to the office and post the result.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

6

Tuesday, April 24th 2018, 8:23am

solved

All good and working as it should! Thanks again.