BookmarkSubscribeRSS Feed
13
Calcite | Level 5 13
Calcite | Level 5

Hi All,

 

Thank you all in advance.

I am trying to use Jquery and other javascripst in my Stored Process.

While calling the STP, the javascript files are not being linked to the page.

I have stored my .js files in below path

"Config\Lev1\Web\WebServer\htdocs" .

 

I am able to resolve below url :-

"http://sasserver.com/jquery.min.js"

 

Following is the way i am linking .js file to my STP

<script type="text/javascript" src="jquery.min.js"></script>

 

But while executing the STP, the files are not being linked with the page.

I have attached the screenshot, please share the solution.

 

 


Untitled.jpg
1 REPLY 1
VasilijNevlev
Quartz | Level 8

Hello, 

 

Welcome to the communities. 

 

I might be wrong, but you need a slash infront of your jquery reference. <script type="text/javascript" src="/jquery.min.js"></script>

Otherwise you can reference jQuery with absolute reference so it would be <script type="text/javascript" src="http://sasserver.com/jquery.min.js"></script>

 

Regards,

Vasilij

=======================================
For more information about {An}alytium, visit https://www.analytium.co.uk

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 764 views
  • 0 likes
  • 2 in conversation