Sie sind nicht angemeldet.

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

1

Donnerstag, 27. August 2009, 09:09

txtadd

I would like with the txtadd (??,text,text); functions to add texts directly in < date name ="dataname"> text,text </ date >".

Is this possible? *huh*

best regards
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

2

Donnerstag, 27. August 2009, 22:58

Hi,

the 'contents' of the <action>, <data> and <scene> tags can be accessed with 'content' attribute

e.g.

Quellcode

1
2
3
action[name].content
data[name].content
scene[name].content


so:

Quellcode

1
txtadd(data[dataname].content, data[dataname].content, text);

should do it

edit: sorry my example was wrong - get(data[dataname].content) is required!
this is correct:

Quellcode

1
txtadd(data[dataname].content, get(data[dataname].content), text);


best regards,
Klaus

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

3

Freitag, 28. August 2009, 11:17

Thank for your answer.

*thumbup*

best regards
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Freitag, 28. August 2009, 16:05

*cry* *cry*

I do not know how to make this.

I have:

Quellcode

1
2
3
4
5
<data name="empty">
<html>

</html>
</data>


plugin/hotspot

Quellcode

1
<plugin ...... onclick="txtadd();"/>


action...

Quellcode

1
2
3
4
5
6
7
8
<action name="txtadd">
	txtadd(?????, 'text 001', '<br />');
	txtadd(?????, 'text 002', '<br />');
	txtadd(?????, 'text 003', '<br />');
	txtadd(?????, 'text 004', '<br />');
	txtadd(?????, 'text 005', '<br />');
	txtadd(?????, 'text 006', '<br />');
</action>



I have to get something like this:


Quellcode

1
2
3
4
5
6
7
8
9
10
<data name="empty">
<html>
text 001
text 002
text 003
text 004
text 005
text 006
</html>
</data>



help ... *cry*
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Mittwoch, 2. September 2009, 11:35

Hi,

warning - your <action> 'txtadd' and the internal action 'txtadd()' have both the same name!
that means the your action will never be called! (internal actions come first)


the other thing - you want to "insert" text (between <html> and </html>), this is not possible!
but you could just add them too, or split them to header and trailer tags and add them,

e.g.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<data name="empty">
</data>

...

<action name="buildtext">
  txtadd(data[empty].content, get(data[empty].content), '<html>');
  txtadd(data[empty].content, get(data[empty].content), 'text1', '<br/>');
  ...
  txtadd(data[empty].content, get(data[empty].content), '</html>');
</action>


best regards,
Klaus

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

6

Samstag, 5. September 2009, 08:47

Thank you Klaus.

*thumbup*

best regards
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*