Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: SPWebServices not getting called

Hi Marc,

I've been trying for days to get this working on dataview form.

Set Up
  1. Custom Master Page
  2. Data View Form
Goal
  1. Expand size of the multiselect column
  2. Arrange choices horizontally
Code

Arrange Choices
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/jquery-1.8.2.min.js">>
<script type="text/javascript" src="
https://ts.companyname.com/sites/MSM/Style%20Library/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery"); alert($().SPServices.SPGetCurrentSite()); $().SPServices.SPArrangeChoices({ columnName:"Request Type", perRow:6 }); });</script> Result
In SP arrange choices, I get the message that jquery is loaded as well as the path to the SP site. But nothing happens and there is no error on the page.

Multiselect
<script type="text/javascript" src="
https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery-1.5.2.min.txt">>
<script type="text/javascript" src="
https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery is loaded!"); $().SPServices.SPSetMultiSelectSizes({ multiSelectColumn:"Transactions" }); });</script> Result
Same with MultiSelectSizes, I see the message but nothing happens, no error.

Actions Taken
  • I've added <xsl:comment> trick to both fields just above the SharePointFormField.
  • I've tried only one of the two above at any given time so there are no possibilities of conflict I believe.
  • Also tried the relative URL of the site in the jquery path starting /MSM but no luck.
  • I tried putting both the jquery files on the custom master page to see if that helps but no luck.
  • Removed $(document).ready(function(){ but no luck either.
  • Read almost all of the blogs around this topic but cannot figure out where the problem is.
  • I also added an alert after the SPwebservices call and I could get the alert as well.
I need your advice to please have this working.

Thanks a ton as always,
Srividya

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>