Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

1

Dienstag, 1. November 2011, 20:51

XML for HTML5 via PHP scripting issues

Did some searching for a solution to this within the forum to no avail.

I can generate XML via PHP for non-HTML5 tours no problem at all with all sorts of complexity involved.

However, when I use PHP scripting to generate XML for HTML5/iDevices something goes awry.

If I "feed" KRPano XML for HTML5/iDevices that is generated via PHP, I get the following:
ERROR: loadscene() - scene "sc330" not found
WARNING: unknown action: onloaded

However, if I navigate to the URL found below in a browser, view the source ( the generated XML ), copy and paste that generated XML into a new file ( like it was hand/hard coded ) and "feed" it to KRPano, the tour works just as planned?!?!?!?!?!?!? *confused* *wacko*

Here is a link to the XML generated

http://vtour.govtour.com/player/tour_forpad.php?tid=274

Anyone have any ideas?
I'd say it was my code, but the fact that you can copy & paste the "bad" generated XML into a new XML doc and KRPano will display it just fine has me very perplexed.

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Dienstag, 1. November 2011, 22:30

If it parse the code to a xmlparser, no errors occur. If I however copy the url in a validator I get a

Result of Validating: http://vtour.govtour.com/player/tour_forpad.php?tid=274
Error: Access to restricted URI denied

the validator: http://www.w3schools.com/xml/xml_validator.asp

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Dienstag, 1. November 2011, 23:09

Interesting. Maybe check for weird redirect status in developer. In my site I have no such php issues so there certainly is a solution.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

4

Dienstag, 1. November 2011, 23:27

Thanks for taking a look at this! *g*

Still have not figured out a solution but I'll keep banging my head until I get it!

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

5

Mittwoch, 2. November 2011, 00:18

Probably help if you showed a link to the actual tour.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour