Note that there are some explanatory texts on larger screens.

plurals
  1. POCan jQuery remove this text?
    primarykey
    data
    text
    <p>I'm trying to find a work around to remove the "by" line from the Announcements Summary View on a SharePoint 2007 site. For various reasons, nothing I find on the web seems to be working - so I want to take another route, provided some talented-kind-soul will help. Does anyone know how to make jQuery work some magic so the first block of HTML can end up rendering as the second block of HTML?</p> <p>Block 1:</p> <pre><code>&lt;a onfocus="OnLink(this)" href="/Lists/Our%20Announcements/DispForm.aspx?ID=36" ONCLICK="GoToLink(this);return false;" target="_self"&gt;Title of Annoucement &lt;/a&gt;&lt;IMG SRC="/_layouts/1033/images/new.gif" alt="New"&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;by &lt;nobr&gt;&lt;span&gt;&lt;A ONCLICK="GoToLink(this);return false;" HREF="/_layouts/userdisp.aspx?ID=2258"&gt;Lastname, FirstName I.&lt;/A&gt;&lt;img border="0" height="1" width="3" src="/_layouts/images/blank.gif" alt="" /&gt;&lt;a href="javascript:" onclick="IMNImageOnClick();return false;" class="ms-imnlink"&gt;&lt;img title="" alt="No presence information" name="imnmark" border="0" valign="middle" height="12" width="12" src="/_layouts/images/blank.gif" sip="email@address.com" id="imn0,type=smtp" &gt;&lt;/a&gt;&lt;/span&gt;&lt;/nobr&gt;&lt;/td&gt;&lt;td width=20% align="right" nowrap class="ms-vb"&gt;&amp;nbsp;4/15/2013 12:51 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=2 class="ms-vb"&gt; &lt;div id="{291345DC-BEAE-47B6-8F53-41C07838090C}36"&gt;&lt;div class=ExternalClass5BF6EE28A88D436CAC2FE553E7F2CED7&gt;&lt;div&gt; </code></pre> <p>Block 2:</p> <pre><code>&lt;a onfocus="OnLink(this)" href="/Lists/Our%20Announcements/DispForm.aspx?ID=36" ONCLICK="GoToLink(this);return false;" target="_self"&gt;Title of Annoucement &lt;/a&gt;&lt;IMG SRC="/_layouts/1033/images/new.gif" alt="New"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td width=20% align="right" nowrap class="ms-vb"&gt;&amp;nbsp;4/15/2013 12:51 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=2 class="ms-vb"&gt; &lt;div id="{291345DC-BEAE-47B6-8F53-41C07838090C}36"&gt;&lt;div class=ExternalClass5BF6EE28A88D436CAC2FE553E7F2CED7&gt;&lt;div&gt; </code></pre> <p>This is what I need to have removed:</p> <pre><code>&lt;br&gt;by &lt;nobr&gt;&lt;span&gt;&lt;A ONCLICK="GoToLink(this);return false;" HREF="/_layouts/userdisp.aspx?ID=2258"&gt;Lastname, FirstName I.&lt;/A&gt;&lt;img border="0" height="1" width="3" src="/_layouts/images/blank.gif" alt="" /&gt;&lt;a href="javascript:" onclick="IMNImageOnClick();return false;" class="ms-imnlink"&gt;&lt;img title="" alt="No presence information" name="imnmark" border="0" valign="middle" height="12" width="12" src="/_layouts/images/blank.gif" sip="email@address.com" id="imn0,type=smtp" &gt;&lt;/a&gt;&lt;/span&gt;&lt;/nobr&gt; </code></pre> <p>----------------------------Update for better formatting------------------------------- There really isn't anything that I can see for which jQuery can select on. Also, this is coming from SharePoint, so I can't add any id's or div's to the generated code.</p> <p>Block 1:</p> <pre><code> &lt;TR&gt; &lt;TD width=80% class="ms-vb" style="padding-bottom: 3px"&gt; &lt;span class="ms-announcementtitle"&gt;&lt;a onfocus="OnLink(this)" href="/Lists/Our%20Announcements/DispForm.aspx?ID=36" ONCLICK="GoToLink(this);return false;" target="_self"&gt;Title of Annoucement &lt;/a&gt;&lt;IMG SRC="/_layouts/1033/images/new.gif" alt="New"&gt;&amp;nbsp;&lt;/span&gt; &lt;br&gt;by &lt;nobr&gt; &lt;span&gt;&lt;A ONCLICK="GoToLink(this);return false;" HREF="/_layouts/userdisp.aspx?ID=2258"&gt;Lastname, FirstName I.&lt;/A&gt;&lt;img border="0" height="1" width="3" src="/_layouts/images/blank.gif" alt="" /&gt;&lt;a href="javascript:" onclick="IMNImageOnClick();return false;" class="ms-imnlink"&gt;&lt;img title="" alt="No presence information" name="imnmark" border="0" valign="middle" height="12" width="12" src="/_layouts/images/blank.gif" sip="email@address.com" id="imn0,type=smtp" &gt;&lt;/a&gt;&lt;/span&gt; &lt;/nobr&gt; &lt;/td&gt; &lt;td width=20% align="right" nowrap class="ms-vb"&gt;&amp;nbsp;4/15/2013 12:51 PM&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan=2 class="ms-vb"&gt; &lt;div id="{291345DC-BEAE-47B6-8F53-41C07838090C}36"&gt; &lt;div class=ExternalClass5BF6EE28A88D436CAC2FE553E7F2CED7&gt; &lt;div&gt; &lt;div&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;b&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt; &lt;em&gt;A message from Firstname Lastname&lt;/em&gt; &lt;/span&gt; &lt;/b&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;Here is the message &lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;To... &lt;/div&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD&gt; &lt;font size=1&gt;&amp;nbsp;&lt;/font&gt; &lt;/TD&gt; &lt;/TR&gt; </code></pre> <p>Block 2:</p> <pre><code> &lt;TR&gt; &lt;TD width=80% class="ms-vb" style="padding-bottom: 3px"&gt; &lt;span class="ms-announcementtitle"&gt;&lt;a onfocus="OnLink(this)" href="/Lists/Our%20Announcements/DispForm.aspx?ID=36" ONCLICK="GoToLink(this);return false;" target="_self"&gt;Title of Annoucement &lt;/a&gt;&lt;IMG SRC="/_layouts/1033/images/new.gif" alt="New"&gt;&amp;nbsp;&lt;/span&gt; &lt;/td&gt; &lt;td width=20% align="right" nowrap class="ms-vb"&gt;&amp;nbsp;4/15/2013 12:51 PM&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan=2 class="ms-vb"&gt; &lt;div id="{291345DC-BEAE-47B6-8F53-41C07838090C}36"&gt; &lt;div class=ExternalClass5BF6EE28A88D436CAC2FE553E7F2CED7&gt; &lt;div&gt; &lt;div&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;b&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt; &lt;em&gt;A message from Firstname Lastname&lt;/em&gt; &lt;/span&gt; &lt;/b&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;Here is the message &lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="line-height:normal;margin:0in 0in 0pt;vertical-align:top" class=MsoNormal&gt; &lt;span style="font-family:'Arial','sans-serif';color:black;font-size:9pt"&gt;To... &lt;/div&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD&gt; &lt;font size=1&gt;&amp;nbsp;&lt;/font&gt; &lt;/TD&gt; &lt;/TR&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload