Page 1 of 1

How to disable a Textarea

Posted: Sun Apr 15, 2012 9:19 pm
by mcgrathken.kmg

Max

How do i make a textarea read-only in Tiggzi.
I tried $("#mytextarea").attr("disabled", "disabled"); but wont work


How to disable a Textarea

Posted: Sun Apr 15, 2012 9:29 pm
by mcgrathken.kmg

ok scrub last ques.

Got it working by clicking more properties button on the textarea and adding the following.

Property name = disabled
Property value = disabled.

also this works if useful to anyone for feedback button
window.location.href = "mailto:a href="mailto:address@somewhere.org" rel="nofollow"address@somewhere.org/a";


How to disable a Textarea

Posted: Sun Apr 15, 2012 11:37 pm
by maxkatz

code
$("#mytextarea").attr("disabled", "disabled");
/code

Is the right code but not the right selector.Whenever you want to select an element in your app you should first view its real id or dsid (generated by TiggzI) in source and then use the correct selector. That's why we have Tiggr(id) function:
http://help.gotiggr.com/documentation...

Before setting an attribute test to make sure you have selected the right element.

But, using More Properties feature is also the right approach.


How to disable a Textarea

Posted: Sun Apr 15, 2012 11:55 pm
by mcgrathken.kmg

ok Max thanks for the tip.
Can I ask a quick ques. probably for another section.
but i was was wanting to use a more square collapsible block with sections.
here is an example
Image

It has more tighter sections.If I insert a collapsible blocks within collapsible blocks in in Tiggzi then it is not like above and also cannot get the list dividers.
Is there a way I can do this using the new more properties option.
I can code this outside of Tiggzi but I need to perform a Rest service on the blocks so I like to be able to do using Tiggzi which is on main reason why I signed up to Tiggzi as it is easy to use Rest Services.


How to disable a Textarea

Posted: Mon Apr 16, 2012 12:00 am
by mcgrathken.kmg

This is how how I built the block. so basically I need to change property to collapsible-set. Like below.

div
div

also can i add dividers in Tiggzi using
li
Divider
/li

i understand data-role is reserved but could I do it another way to change the property of the component ?


How to disable a Textarea

Posted: Mon Apr 16, 2012 12:03 am
by mcgrathken.kmg

I don't know what happened above. The format got messed up.
Obviously I cant insert HTML here. But now I cant edit it for some reason.


How to disable a Textarea

Posted: Mon Apr 16, 2012 5:23 pm
by maxkatz

If jQuery Mobile has such option/feature - then just set the right attribute with in More Properties.


How to disable a Textarea

Posted: Mon Apr 16, 2012 5:36 pm
by mcgrathken.kmg

Hi Max
Yes it's data-role="collapsible-set but data-role is a restricted name.
any suggestions ?


How to disable a Textarea

Posted: Mon Apr 16, 2012 5:38 pm
by maxkatz

No, but ask on jQuery Mobile forum.


How to disable a Textarea

Posted: Mon Apr 16, 2012 5:40 pm
by mcgrathken.kmg

ok Max thanks anyway