Solved

reference spservices

Posted on 2013-01-29
3
356 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

713 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