Hoc est aliud post in mea in-ingressus series in uti mauris cum SharePoint.
Sis commodo lorem ipsum, Ego altus suadeo: commodo in Actionis per Ursus Bibeault et Yehuda Katz.
UPDATE (iam!): Putabam rationem melioris locant <TR> tag volo ad abscondere et scripsit de hic. You may still find this article interesting anyway so I’m leavnig it up.
Volo ad occultare text agro, "Abscondas me!"Ut ostensum:
Sequenti mauris facit dolum enim me:
<script typus ="text/javascript"> $(munus() { $('Input[title = abscondas me!]').parentis().parentis().parentis().abscondere(); }); </script> |
In codice est dicens, "Invenire me omnes input agros cuius title = abscondas me!. Igitur, adepto parentis et deinde parens et * deinde * parens (phew!) et invocare corium() modus in quod res, quicquid fit ad esse.
Ego figuratum parens structura per prospiceret HTML in forma quod SharePoint creavit ut ostensum:
<TR> <TD nowrap="true" primum sic="top" latitudo="190px" genus="ms-formlabel"> <H3 genus="ms-standardheader"> <nobr>Abscondit me!</nobr> </H3> </TD> <TD primum sic="top" genus="ms-formbody" latitudo="400px"> <!-- FieldName="Hide Me!" FieldInternalName="Hide_x0020_Me_x0021_" FieldType="SPFieldText" --> <span vobis="none"> <input nomen="ctl00$m$g_bdb23c2c_fde7_495f_8676_69714a308d8e$ctl00$ctl04$ctl02$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" typus="text" maxlength="255" id="ctl00_m_g_bdb23c2c_fde7_495f_8676_69714a308d8e_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_TextField" title="Hide Me!" genus="ms-long" /> <br> </span> </TD> </TR> |
Hoc picture ostendit idem, sed insignis cum parentes:
Primi parentis (1) is a span tag. Span’s parent (2) est Lorem TD tandem repperi et volentibus occultare parentis rei (3) quod est TR tag se.
This is a pretty terrible approach I think because it’s extremely dependent on the very specific structure of this form. When SharePoint 2010 venit de, this whole structure could change and break this approach. What I really want to do is craft a jQuery selector that is along the lines of “find me all the TR’s (et tantum TR tags) qui alicubi in eorum puer elementa an input agro cuius title = abscondas me!". I starting from the bottom and moving up. Assuming I figure this out, Ego stipes an updated "vivos et facile 'post.
</finem>
Sequi me in Twitter ad http://www.twitter.com/pagalvin
quod de hoc aditus inveniens parentis tr? Primum node in collectio antecessoris nodis quod sunt tr elementa, ex in proxima parens tr.
.parentes("tr:first")