Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

1

Montag, 12. Dezember 2011, 15:49

null in textfield..?

Hi,


when i do in a textfield:

Quellcode

1
2
3
4
5
6
7
8
<data name="html_info">
<p align="none"><textformat leftmargin="1" rightmargin="1"><font face="Verdana" color="#333366" size="11" >


blabla bla, bala(!),jqwfiuf

</font></textformat></p>
</data>


it works perfect but when i do this same with :

Quellcode

1
2
txtadd(data[html_info].content,"<p>",get($info_1),"</p>");
	set(plugin[text].html, data:html_info);

and

Quellcode

1
2
3
4
5
6
7
set($info_1, <p align="none"><textformat leftmargin="1" rightmargin="1"><font face="Verdana" color="#333366" size="11" >


blabla bla, bala(!),jqwfiuf


</font></textformat></p>);


i get null
when i take the comma's etc out it works..

Is there a way to avoid this? i know i can use utf 8 ascii or so but is there a way without?
Why is this happening?

Thanx

Tuur *thumbsup*

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Montag, 12. Dezember 2011, 15:54

mmm.. when i put '...text... ' those komaa's around it it works perfect but then i see those komma's *wacko*
any way to get them invisible?
i could make them the same color as the background.. but i see that as a non serious option..
Tuur *thumbsup*

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Montag, 12. Dezember 2011, 16:05

I also like to do

Quellcode

1
2
txtadd(data[html_info].content,"<p>",get($get(hotspot[get(name)])),"</p>");
set(plugin[text].html, data:html_info);


and then the variable has the same name as the hotspot +an $ in front..

but this syntax is wrong.. *wacko*

the idea is to set the variable: $info_1_5

and the hotspot name is info_1_5



Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (12. Dezember 2011, 16:31)


Ähnliche Themen