Solved

reference spservices

Posted on 2013-01-29
3
316 Views
Last Modified: 2013-01-29
Hi I'm trying to reference the SPServices, for the intranet Page, works like a charm, but for the extranet it is getting block for some reason .. how can I make it Work..?

<script type="text/javascript" src="http://thestream/Style%20Library/UI_Elements/jquery-1.7.2.min.js"></script> 
<script type="text/javascript" src="http://thestream/Style%20Library/UI_Elements/jquery.SPServices-0.7.1a.min.js"></script>

Open in new window

0
Comment
Question by:jhonc66
3 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
Comment Utility
Hi,
it depends a little bit on how you have embedded the script reference and how (where) you have deployed the scripts.

The easiest one:
<script type="text/javascript" src="/Style%20Library/UI_Elements/jquery-1.7.2.min.js"></script> 
<script type="text/javascript" src="/Style%20Library/UI_Elements/jquery.SPServices-0.7.1a.min.js"></script>

Open in new window


HTH
Rainer
0
 

Author Closing Comment

by:jhonc66
Comment Utility
ahhh You Saved my life.. cheers
0
 
LVL 7

Expert Comment

by:dhawalseth
Comment Utility
Hi Jhonc66,

This is an endless discussion in which something that works for me, might not work for me. There are some suitable options which can work at random, one is mentioned by Rainer above.
You can also look at the following options:
1. You can use tilde(~) sign for referring to your root directory. If you have a look at your master page, you will find its use.
2. Have a look at this discussion:
http://www.velocityreviews.com/forums/t119906-resolve-url-problem-with-asp-net-tilde.html

it contains one replacement or workaround mentioned below:
~/../default.aspx instead of ~/default.aspx

For better understanding (this is actually a problem between- server.transfer and page.resolveurl)
http://www.codeproject.com/Articles/53460/ResolveUrl-in-ASP-NET-The-Perfect-Solution

Enjoy!!!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now