Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

reference spservices

Posted on 2013-01-29
3
Medium Priority
?
394 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 2000 total points
ID: 38833965
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
ID: 38833996
ahhh You Saved my life.. cheers
0
 
LVL 7

Expert Comment

by:dhawalseth
ID: 38834008
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

877 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