Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Add new lookup item on the fly

I commented on the other thread re: adding the link using script.

Just curious what would happen to the redirect if you changed spservices to not enclode the source url.

change this line:

   newHref += opt.newWindow ?
     ((opt.ContentTypeID.length > 0) ? "?ContentTypeID=" + opt.ContentTypeID : "") + "' target='_blank'" :
     "?" + ((opt.ContentTypeID.length > 0) ? "ContentTypeID=" + opt.ContentTypeID + "&" : "") + "Source=" + escapeUrl(location.href) + "'";
   

to this:

   newHref += opt.newWindow ?
     ((opt.ContentTypeID.length > 0) ? "?ContentTypeID=" + opt.ContentTypeID : "") + "' target='_blank'" :
     "?" + ((opt.ContentTypeID.length > 0) ? "ContentTypeID=" + opt.ContentTypeID + "&" : "") + "Source=" + location.href + "'";
   


Viewing all articles
Browse latest Browse all 6517

Trending Articles



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