Sie sind nicht angemeldet.

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

1

Samstag, 13. August 2011, 07:47

txtadd with ampersands

txtadd(string,get(string1),'&krpanorules=true');

how do i concatenate an ampersand? It throws and xml error/ parse failed..
And I don't want & because I'm using the variable to open a url.. and it doesnt work.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Samstag, 13. August 2011, 08:09

Looks like its just a textfield bug in JS.
It works in Flash just fine.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Montag, 15. August 2011, 17:18

Fascinating..

For javascript this works
viewer.addVariable("ampersand", "&");

For flash you must do this..
viewer.addVariable("ampersand", "%26");

to get a naked ampersand as a variable. to be able to use an ampersand with txtadd for JS.
and if you forget the quotes.. add_js completely EXPLODES into chaos with drupal.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen