SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL
SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL

Blog

_WPQ_ with Javascript for dynamic lookup

If you’re using the trusty CEWP (Content Editor Web Part) to locate the current web part frame on a page you’ll want to consider using the “_WPQ” expression instead of hard coding a number.    Using the Internet Explorer Developer toolbar or Firebug toolbar is a great way to locate <DIV> tags and “ID=” attributes with a single click.

However, don’t be tempted to code in the number.    As you re-order web parts they will changes.    If you add more than one CEWP (export/import) the others will fail.    Use a dynamic token for maximum flexibility.

SharePoint’s rendering engine does a search replace on “_WPQ_” to give it the number of that web part on the page.   It’s a great way to avoid naming conflicts and a trick I’ve used to apply multiple JQuery driven CEWP on the same page.

 

References

image

FREE AntiVirus for Windows Server 2008

Today I learned of two FREE programs that could help cover my laptop.   In the virus and malware marketplace I’ve long believe more than one tool (and vendor) is needed to stay safe.   There are just too many angles of attack with new one coming up all the time.   Staying current on patches is a great idea.    It’s a good foundation, but you also need active scanning tools.

Here are two programs to consider.   I run ClamWin and have been very happy with it.    Then just add Windows Defender for malware and Windows Update for patches to keep your machine safe.   Learn more about safe computing practices at http://www.onguardonline.gov/

Download Now

 

image

 

image

FIX for EventLog Application 2001: It has taken too long to refresh the W3SVC counters

Please see the below hyperlink and the run the commands included in line.   I see this one often with SharePoint and wanted to share the research in case your event logs show something similar.    Less noise makes it easier to troubleshoot real issues.

http://support.microsoft.com/default.aspx?scid=kb;en-us;267831

EventLog Application Error 2001: It has taken too long to refresh the W3SVC counters, the stale counters are being used instead.

 

Open CMD and run:

 

image

 

image

 

Application    Error    8/1/2009 2:08    W3CTRS    2001    It has taken too long to refresh the W3SVC counters, the stale counters are being used instead.

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲