0.7.1a SPGetQueryString Causing Major Problems

Feb 27, 2012 at 8:16 PM
Edited Feb 27, 2012 at 8:23 PM

Not sure exactly what is going on but I have some form automation that fills in a BD Entity Picker and a People Picker automatically from the query string.  If I use v. 0.7.0 it works but 0.7.1a causes the Check Names/Check if External Item exists buttons to break.  If I all I do is make the call . . .

var qsVars = $().SPGetQueryString();

with no other automation it is sufficient to break the pickers (even manually entering a name and clicking the check button doesn't work).  I'll look into this some more but wanted to see if anyone else is experiencing this.

Feb 28, 2012 at 12:23 AM

Can you paste the full URL on the window location bar? (I assume your code is not inside a iframe)

Paul

Sent from mobile

On Feb 27, 2012 3:16 PM, "Toadmyster" <notifications@codeplex.com> wrote:

From: Toadmyster

Not sure exactly what is going on but I have some form automation that fills in a BD Entity Picker and a People Picker automatically from the query string. If I use v. 0.7.0 it works but 0.7.1a causes the Check Names/Check if External Item exists buttons to break. If I all I do is make the call . . .

var qsVars = $().SPGetQueryString();

with no other automation it is sufficient to break the pickers (even manually entering a name and clicking the check button doesn't work). I'll look into is some more but wanted to see if anyone else is experiencing this.

Read the full discussion online.

To add a post to this discussion, reply to this email (SPServices@discussions.codeplex.com)

To start a new discussion for this project, email SPServices@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Feb 28, 2012 at 12:55 AM

Not entirely sure what you mean.  The URL is irrelevant as far as I can tell (although the query string is quite long).  I am not using an iframe.  Simple test: Custom new form for a list referencing an external .js file in the .aspx page.

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script type="text/javascript" src="/sitecollectiondocuments/code/contracts/renewalTasksForm.js"></script>
. . .

The external .js contained only an on body load function to grab the query string values.

_spBodyOnLoadFunctionNames.push("autoFillForm");

function autoFillForm() {
  var qsVars = $().SPServices.SPGetQueryString();
}

If I load the form with v. 0.7.0, I can type a name in the People Picker, click the Check Names button, and the squiggly line will appear under the name allowing me to select the desired name.  If I do the same thing with v. 0.7.1a, no squiggly line and the form will not submit because I haven't entered a valid value.  Same thing happens for a BD List lookup field.

Feb 28, 2012 at 1:14 AM

I'm having a hard time tying the use of .SPGetQueryString to the problem you are reporting. .SPGetQueryString parses a URL query string (everything after the '?') and returns an array with them so that you can access them through js. (http://spservices.codeplex.com/wikipage?title=$().SPServices.SPGetQueryString&referringTitle=Documentation). Thus why I asked for you to paste the url. Maybe there is something there that is tripping that utility up.

If you execute the utility in the console (F12 for the IE debugger), do you get it to return an array of values.

I have a feeling that something is throwing an exception within the same block that would also setup the people picker. Do you see any exceptions in the debugger when the page is loaded?

Paul

Sent from mobile

Feb 28, 2012 at 1:18 AM

also, what is a BD List lookup field?

Paul

Sent from mobile

Feb 28, 2012 at 1:33 AM

I hear you.  Looking at the SPGetQueryString code makes no sense as to this error.

A BD List lookup field is a lookup column that gets its values from a Business Data List which is based on an External Content Type.

The javascript console is throwing an error saying that the name of a control can't be found.  Near as I can tell, the Check Names button code tries to return the results of it's query but can't find the DOM element it needs to place the data.

I'll paste my URL here but why would the same URL work with v. 0.7.0 and not with v. 0.7.1?

http://intranet/contracts/lists/renewalitems/grabnewitem.aspx?ponum=12345&contracttype=Direct&rep=B.%20Fred&custnmbr=54321&refrence=SO%23%1234567&manufacturer=ACME&soptype=3&userdef5=&userdef4=&userdef3=&userdef2=&userdef1=&custcost=5432.00&mycost=5324.00&qty=1&cstponbr=000111&custname=Joe%20Computer%2C%20Inc.&comments=None&contractend=4/14/2012&contractstart=4/15/2011&itemdesc=Gold%20Support&itemnmbr=GSup&prodgroup=DF34&orignumb=11223&invdate=4/18/2011&lnitmseq=16384&sopnumbe=654321&

(And yes, I know there is an extra ampersand at the end)

Feb 28, 2012 at 1:55 AM

I don't see anything on the URL that would trip up the utility. What makes you think it is SPGetQueryString that is causing the problem?

Can you try to place an alert() before you call SPGetQueryString and one after, and make sure they both fire? On the second one, try the following:

alert("query string parsed... contracttype["+ qsVars['contracttype'] +"]")

Given your sample above, and URL posted you should get: query string parsed... contracttype[Direct]'

Paul

Sent from mobile

Feb 28, 2012 at 5:14 PM

It doesn't look like GetQueryString is causing the problem because the code base is identical between 0.7.0 and 0.7.1.  However, when I call SPArrangeChoices on the same form, the pickers work fine.  When I call GetQueryString is when they break.  I just needed a place to start this discussion and GetQueryString is a part of the symptom.

You can check the scenario for yourself.  Create a custom new form for a list that has a Person or Group column in it, load v. 0.7.1a and some script to call SPGetQueryString after the body has loaded.  When you use the form, type in a partial name and see if the Check Names button will resolve it.

Feb 28, 2012 at 5:46 PM

Verified that it has the same effect in the default NewForm.aspx but only when NOT opened in a dialog window (same code/form in a dialog pop up does not break the picker).  Here is the JavaScript error that is being thrown . . .

SCRIPT5007: Unable to get value of the property 'ctl00_m_g_923a6e40_ff18_468e_98e7_39d55e964482_ctl00_ctl05_ctl04_ctl00_ctl00_ctl04_ctl00_ctl00_UserField': object is null or undefined 
entityeditor.js?rev=1%2Fj%2Ba5PO0xZXnRjXxVHOkg%3D%3D, line 2 character 11597
Feb 28, 2012 at 5:58 PM
Ok... So I think there is more here you are not describing... :)

What is "...
but only when NOT opened in a dialog window .."?

How is the user accessing/loading the page? I don't understand the dialog context (is this SP2010? and perhaps a feature of that version?)

_________
Paul T


Feb 28, 2012 at 6:20 PM

Yes.  This is SP2010.  I appreciate your help, Paul but I don't have time to figure this out.  There is definitly a bug in 0.7.1a that does not exist in 0.7.0.  I will use the old version until this gets fixed.  Marc did say, "There are numerous other performance improvements and some edge condition bugs I’ve managed to fix" in his release blog post, perhaps one of them causes this.

Coordinator
Feb 28, 2012 at 9:31 PM

Hey, guys. Sorry for the amount of time it's taken me to look at this. I've just read through the thread, and I'm not sure what's happening. As Toby has pointed out, the code base for SPGetQueryString is the same between 0.7.0 and 0.7.1a.

I guess the question is how to isolate the issue. I see several things mentioned: SPGetQueryString, BD Entity Picker, NewForm, dialogs, etc. Have you been able to figure out what the minimum to reproduce might be? I haven't tested with the BD stuff at all, frankly, so it may be the issue. Do you see that same thing on a regular list form?

M.

Feb 28, 2012 at 10:06 PM

Thanks, Marc.  My minimal test was to set up a simple list and add a Person or Group column to it on a dev server.  For the New form, I add the following code in SPD (see above)

_spBodyOnLoadFunctionNames.push("autoFillForm");

function autoFillForm() {
  $().SPServices.SPArrangeChoices({
    columnName: "Contract Term"
  });
  var qsVars = $().SPServices.SPGetQueryString();
};

It only happens when I access the new form directly.  If I allow it in a Dialog, or even right click on the "Add new" link and select Open in New Window the picker behaves normally.  If I comment out only the SPArrangeChoices it fails but if I comment out only the SPGetQueryString it works (so weird!).  I've tried changing to $(document).ready, with query string paramaters and without.  Same results.  Change back to 0.7.0 and all is well.  Using SP2010, IE9 in IE7, 8, and 9 modes, jQuery 1.7.

Coordinator
Feb 29, 2012 at 7:48 PM
Edited Feb 29, 2012 at 7:48 PM

Toby:

I just set up what I think is an identical test, and I'm not seeing any issues. My list has these columns:

  • Title (Single line of text)
  • TestPerson (Person or Group)
  • Contract Term (Choice [a,b,c,d,e,f,g])

The NewFormCustom has this script in it:

<script type="text/javascript" src="../../jQuery Libraries/jquery-1.7.min.js"></script>
<script type="text/javascript" src="../../jQuery Libraries/jquery.SPServices-0.7.1a.min.js"></script>
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("autoFillForm");
function autoFillForm() {
  $().SPServices.SPArrangeChoices({
    columnName: "Contract Term",
    perRow: 3
  });
  var qsVars = $().SPServices.SPGetQueryString();
};
</script>

I've tried resolving the Person or Group column in a dialog and not and it seems to work.

There must be something addiitonal going on. Hmmm....

M.

Feb 29, 2012 at 8:08 PM

Hmm indeed.  I appreciate you looking at it and being as puzzled as I. : )

The only difference between my code and yours is that I include jQuery and SPServices in the Master page, and have a script tag with src instead of inline javascript on the form.  Can't see how that would make a difference.  Also, I am using the OOTB Assigned To column for my Person or Group test.  Since an Entity Picker also breaks I figure it doesn't matter but I'll test on my dev box with a brand new list and a custom P or G.

Feb 29, 2012 at 8:21 PM

Nope.  Even with only the Title field that comes with a new custom list and then adding the P or G column fails when accessing the form directly from the URL.  I have my P or G column set to People Only and choosing from All users (we are using Active Directory here).  No multiple selection and no required.  Showing field "Name".

Coordinator
Mar 1, 2012 at 5:31 PM

Toby:

I still can't reproduce this. I wonder if there's something else going on in the master page or in your branding. Can you post the DOM for the relevant section of the page?

M.

Mar 19, 2012 at 7:31 PM

Finally found a moment to compare DOM states.  For the relevant people picker markup:

Page on initial load (no call to SPGetQueryString) . . .

<DIV aria-haspopup=true onfocusin="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" style="OVERFLOW-X: hidden; BACKGROUND-COLOR: window; WORD-WRAP: break-word; COLOR: windowtext" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" ondragstart=canEvt(event); id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_upLevelDiv oncopy="docopy('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" class=ms-inputuserfield title="People Picker" role=textbox onfocusout="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" tabIndex=0 onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" contentEditable=true onpaste="dopaste('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" onclick="onClickRw(true, true,event,'ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" name="upLevelDiv" preferContentEditableDiv="true" aria-multiline="true" rows="1" AutoPostBack="0">&nbsp;</DIV><TEXTAREA onblur="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" style="POSITION: absolute; WIDTH: 100%; DISPLAY: none" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_downlevelTextBox onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" class=ms-inputuserfield onfocus="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" title="People Picker" onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" cols=20 rows=1 name=ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField$downlevelTextBox AutoPostBack="0" renderAsContentEditableDiv="true">&amp;#160;</TEXTAREA></TD></TR></TBODY></TABLE></TD>
<TD style="PADDING-LEFT: 5px; PADDING-RIGHT: 5px" vAlign=top noWrap align=center><A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_checkNames title="Check Names" onclick=" if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ ShowValidationError(); return false;} var arg=getUplevel('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField'); var ctx='ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField';EntityEditorSetWaitCursor(ctx);WebForm_DoCallback('ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField',arg,EntityEditorHandleCheckNameResult,ctx,EntityEditorHandleCheckNameError,true);return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="Check Names" alt="Check Names" src="/_layouts/images/checknames.png"></A>&nbsp;<A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_browse title=Browse onclick="__Dialog__ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField(); return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=Browse alt=Browse src="/_layouts/images/addressbook.gif"></A></TD></TR> <TR> <TD colSpan=3><SPAN id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_errorLabel class=ms-error></SPAN></TD></TR></TBODY></TABLE></SPAN></SPAN></TD></TR>

Page after attempting to resolve name (no call to SPGetQueryString) . . .

<DIV aria-haspopup=true onfocusin="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" style="OVERFLOW-X: hidden; BACKGROUND-COLOR: window; WORD-WRAP: break-word; COLOR: windowtext" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" ondragstart=canEvt(event); id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_upLevelDiv oncopy="docopy('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" class=ms-inputuserfield title="People Picker" role=textbox onfocusout="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" tabIndex=0 onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" contentEditable=true onpaste="dopaste('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" onclick="onClickRw(true, true,event,'ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" name="upLevelDiv" preferContentEditableDiv="true" aria-multiline="true" rows="1" AutoPostBack="0">&nbsp;<SPAN id=spantoby class=ms-entity-unresolved onmouseover=this.contentEditable=false; title="Multiple entries matched, please click to resolve." tabIndex=-1 onmouseout=this.contentEditable=true; contentEditable=true isContentType="true">
<DIV style="DISPLAY: none" id=divEntityData description="Multiple entries matched, please click to resolve." isresolved="False" displaytext="toby" key="toby">
<DIV data=""></DIV></DIV><SPAN id=content oncontextmenu=onContextMenuSpnRw(event,ctx); tabIndex=-1 contentEditable=true onmousedown=onMouseDownRw(event);>toby </SPAN></SPAN>; </DIV><TEXTAREA onblur="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" style="POSITION: absolute; WIDTH: 100%; DISPLAY: none" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_downlevelTextBox onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" class=ms-inputuserfield onfocus="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" title="People Picker" onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" cols=20 rows=1 name=ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField$downlevelTextBox AutoPostBack="0" renderAsContentEditableDiv="true">&amp;#160;&lt;span id='spantoby' isContentType='true' tabindex='-1' class='ms-entity-unresolved' onmouseover='this.contentEditable=false;' onmouseout='this.contentEditable=true;' contentEditable='true' title='Multiple entries matched, please click to resolve.'&gt;&lt;div style='display:none;' id='divEntityData' key='toby' displaytext='toby' isresolved='False' description='Multiple entries matched, please click to resolve.'&gt;&lt;div data=''&gt;&lt;/div&gt;&lt;/div&gt;&lt;span id='content' tabindex='-1' contenteditable onmousedown='onMouseDownRw(event);' onContextMenu='onContextMenuSpnRw(event,ctx);' &gt;
toby
&lt;/span&gt;&lt;/span&gt;
; </TEXTAREA></TD></TR></TBODY></TABLE></TD>
<TD style="PADDING-LEFT: 5px; PADDING-RIGHT: 5px" vAlign=top noWrap align=center><A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_checkNames title="Check Names" onclick=" if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ ShowValidationError(); return false;} var arg=getUplevel('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField'); var ctx='ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField';EntityEditorSetWaitCursor(ctx);WebForm_DoCallback('ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField',arg,EntityEditorHandleCheckNameResult,ctx,EntityEditorHandleCheckNameError,true);return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="Check Names" alt="Check Names" src="/_layouts/images/checknames.png"></A>&nbsp;<A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_browse title=Browse onclick="__Dialog__ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField(); return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=Browse alt=Browse src="/_layouts/images/addressbook.gif"></A></TD></TR>

Page on inital load (SPGetQueryString invoked) . . .

<DIV aria-haspopup=true onfocusin="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" style="OVERFLOW-X: hidden; BACKGROUND-COLOR: window; WORD-WRAP: break-word; COLOR: windowtext" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" ondragstart=canEvt(event); id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_upLevelDiv oncopy="docopy('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" class=ms-inputuserfield title="People Picker" role=textbox onfocusout="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" tabIndex=0 onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" contentEditable=true onpaste="dopaste('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" onclick="onClickRw(true, true,event,'ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" name="upLevelDiv" preferContentEditableDiv="true" aria-multiline="true" rows="1" AutoPostBack="0">&nbsp;</DIV><TEXTAREA onblur="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" style="POSITION: absolute; WIDTH: 100%; DISPLAY: none" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_downlevelTextBox onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" class=ms-inputuserfield onfocus="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" title="People Picker" onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" cols=20 rows=1 name=ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField$downlevelTextBox AutoPostBack="0" renderAsContentEditableDiv="true">&amp;#160;</TEXTAREA></TD></TR></TBODY></TABLE></TD>
<TD style="PADDING-LEFT: 5px; PADDING-RIGHT: 5px" vAlign=top noWrap align=center><A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_checkNames title="Check Names" onclick=" if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ ShowValidationError(); return false;} var arg=getUplevel('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField'); var ctx='ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField';EntityEditorSetWaitCursor(ctx);WebForm_DoCallback('ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField',arg,EntityEditorHandleCheckNameResult,ctx,EntityEditorHandleCheckNameError,true);return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="Check Names" alt="Check Names" src="/_layouts/images/checknames.png"></A>&nbsp;<A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_browse title=Browse onclick="__Dialog__ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField(); return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=Browse alt=Browse src="/_layouts/images/addressbook.gif"></A></TD></TR>
<TR>
<TD colSpan=3><SPAN id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_errorLabel class=ms-error></SPAN></TD></TR></TBODY></TABLE></SPAN></SPAN></TD></TR>

Page after resolve attempt (SPGetQueryString invoked) . . .

<DIV aria-haspopup=true onfocusin="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" style="OVERFLOW-X: hidden; BACKGROUND-COLOR: window; WORD-WRAP: break-word; COLOR: windowtext" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" ondragstart=canEvt(event); id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_upLevelDiv oncopy="docopy('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" class=ms-inputuserfield title="People Picker" role=textbox onfocusout="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" tabIndex=0 onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" contentEditable=true onpaste="dopaste('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event);" onclick="onClickRw(true, true,event,'ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" name="upLevelDiv" preferContentEditableDiv="true" aria-multiline="true" rows="1" AutoPostBack="0">&nbsp;toby</DIV><TEXTAREA onblur="if(typeof(ExternalCustomControlCallback)=='function'){ if(ShouldCallCustomCallBack('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField',event)){if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ShowValidationError();return false;}else {ExternalCustomControlCallback('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');}}}" style="POSITION: absolute; WIDTH: 100%; DISPLAY: none" onkeydown="return onKeyDownRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField', 3, true, event);" id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_downlevelTextBox onchange="updateControlValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" class=ms-inputuserfield onfocus="StoreOldValue('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');saveOldEntities('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" title="People Picker" onkeyup="return onKeyUpRw('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField');" cols=20 rows=1 name=ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField$downlevelTextBox AutoPostBack="0" renderAsContentEditableDiv="true">&amp;#160;</TEXTAREA></TD></TR></TBODY></TABLE></TD>
<TD style="PADDING-LEFT: 5px; PADDING-RIGHT: 5px" vAlign=top noWrap align=center><A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_checkNames title="Check Names" onclick=" if(!ValidatePickerControl('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField')){ ShowValidationError(); return false;} var arg=getUplevel('ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField'); var ctx='ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField';EntityEditorSetWaitCursor(ctx);WebForm_DoCallback('ctl00$m$g_7bc7a841_2667_46b1_ac17_e895df31b58c$ff21$ctl00$ctl00$UserField',arg,EntityEditorHandleCheckNameResult,ctx,EntityEditorHandleCheckNameError,true);return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="Check Names" alt="Check Names" src="/_layouts/images/checknames.png"></A>&nbsp;<A id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_browse title=Browse onclick="__Dialog__ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField(); return false;" href="javascript:"><IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=Browse alt=Browse src="/_layouts/images/addressbook.gif"></A></TD></TR>
<TR>
<TD colSpan=3><SPAN id=ctl00_m_g_7bc7a841_2667_46b1_ac17_e895df31b58c_ff21_ctl00_ctl00_UserField_errorLabel class=ms-error>No exact match was found. Click the item(s) that did not resolve for more options.</SPAN></TD></TR></TBODY></TABLE></SPAN></SPAN></TD></TR>

For clarification, the first pair works as expected. The second does not. At a glance nothing is glaringly evident--the extra markup that should be inserted when check names is clicked is simply non-existant. When I get a chance I'll try to sift through it with a little more vigor. I also want to compare js call stacks between the pages and to look for possible namespace issues.

Coordinator
Mar 22, 2012 at 6:48 PM

I'm not sure where to go with this, frankly. There's something different about your environment, but I can't spot it.

M.

Oct 1, 2012 at 11:52 PM

Well.  Upgraded to 0.7.2 and jQuery 1.8.2 and this problem went away.  Beats me.  Thanks for looking at it with me.

Coordinator
Oct 3, 2012 at 1:54 PM

Well, that's good. Wish we had been able to figure out what was going on, though.

M.