SSI - Can view in dreamweaver but not on ther server - server-side-includes

I have a line of code that I am unable to view. I am using a spry nav bar. I am saving the files as navigation.shtm, and the file that it is going is is products.shtm
This is a simple link and it should be working fine but I can get it to work correctly.
<div id="column1">
<div class="menu">
<div>
<!--#include file="ssifooter/navigation.shtm" -->
</div>
</div>
</div>
The data file is (Dreamweaver spry)

What server are you running?
Windows
For IIS 6.0 check out this link.
For IIS 7.0 there is an option within the OS you need to install (Windows 7 under Application Development Features of the Internet Information Services options of turning on or off windows features)
Apache
Check out this link for how to configure and install the extension

Related

Download PDF file directly from external URL

I'm wondering if it's possible to download the PDF directly from another website's URL rather than opening a new window.
<button>Download FILE</button>
The most recommended way would be something like this
<!DOCTYPE html>
<html>
<body>
<h3>https://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml5_a_download</h3>
<p>Click on the image to download PDF32000_2008.pdf<p>
<a href="https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf" download><img src="https://www.w3schools.com/images/myw3schoolsimage.jpg" alt="PDF32000_2008 standard" width="104" height="142">
</a>
<p><b>Note:</b> The download attribute is not supported in IE or Edge (prior version 18), or in Safari (prior version 10.1).</p>
</body>
</html>
That is preferable to your method in that it lets the user decide the time of the download and rename document! Also you only need to serve a cover icon or image. HOWEVER although this works without any problems for me as a client user "offweb" it may not work same as any other link on a server if it is cross site tainted. The href address should only be for resources served on or via your own site.
and that should also be the case even if you use iFrame or any other hyper download method, without addressing Cross Origin issues.
Hence something like your current method is often touted as a "workaround" to bypass any Cross Site limitation, since the call for a fresh tab is a direct link from client browser to remote source thus not via "person in the middle" again HOWEVER, you should improve security by adding to it:-
<button>Download FILE</button>
<!DOCTYPE html>
<html>
<body>
<h3>https://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml5_a_download</h3>
<p>Click on the image to download PDF32000_2008.pdf<p>
<a href="https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf" rel="noopener noreferrer" target="_blank"><img src="https://www.w3schools.com/images/myw3schoolsimage.jpg" alt="PDF32000_2008 standard" width="104" height="142">
</a>
<p><b>Note:</b> The download attribute is not supported in IE or Edge (prior version 18), or in Safari (prior version 10.1).</p>
</body>
</html>
Note the snippet above was update to latest Adobe location and works as a file but here on Stack Overflow your browser may block the call !
The linked page gains partial access to the linking page via the window.opener object:- see https://stackoverflow.com/a/45902400/10802527 and https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

I get a blank page error in mod speed plugin

I use the Directadmin panel in the Centos 7 infrastructure.
I installed mod_pagespeed plugin for nginx_apache web service.
PHP Software works normally, but I have problems with the <script> and <style> tags embedded in the html code.
When these tags are in the code, the website opens as a white and blank page.
I couldn't find any log on this issue. Could you please help me?

Why can't I create a project in IBM Watson Studio?

I click the "Create" button to create my first project in IBM Watson Studio and I become this message:
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
I deleted every other service except from IBM Watson Studio so as to have just one service in my Lite account, but it still doesn't work. Sorry for my english. Thanks!
Try to change your region to London. That worked for me.

Working with images and other files in ASP.NET MVC 4

I know this topic is widely discussed but I can not find even partial answer that works for me.
So I'm working on a ASP.NET MVC 4 application. For testing purposes I want to use images from my local machine. In my view I have:
<div class ="banner-top" style="width: 200px; height: 200px;">
<img src='file:///C|:/Users/My-Pc/Desktop/Images/banner-big-top.png' alt="banner"/>
</div>
This is only one of the many attempts I made while trying to display this image. I can see a plain text banner and that's all. I tried forward slash, black slash, and I don't remember what else but neither was working and my setup is absolutely simple - the solution is on my local machine, the file is on the local machine. So how can I display this image? Could it be that MVC 4 itself is preventing the image from showing? I tried everything in FF and Chrome, all the different ways didn't work on both browsers.
Assuming your images are in your project, you would do:
<img src="#Url.Content("~/content/images/banner-big-top")" alt="banner" />
Based on the path you listed in the question, it looks like the images are not inside of the website. Why not move them into the website and access them via the website root path?
If moving the files into the website isn't an option, then look at this:
How to display images on a page when images are stored outside of web root

IBM Worklight 6.0 - content root and local worklight server set-up

I am teaching myself Worklight. I followed the Get Started guide provided by IBM (http://www.ibm.com/developerworks/mobile/worklight/getting-started.html).
Examples in the above site use relative path to link to a page or getting images. Is it possible to put a / (foreward slash) in front of each link to make it relative to the root folder? If possible, how can I configure my local worklight server so the links and images work on the app?
I have app set up as below directory structures in the /common/ directory. Many pages load shared header and menu on the page. When I use <a href="/app-pages/page1.html">' or <img src="/images/ImageName.png">, This causes 404. Not Found - http://localhost:10080/images/ImageName.png
home.html
/app-pages/page1.html
/app-pages/page2.html
/app-pages/sub-cat/pageA.html
/app-pages/sub-cat/pageB.html
/shared/header.html
/shared/menu.html
/images
/css/
/js/
/jqueryMobile
FYI, my dev environment is as below.
Windows 7
Eclipse Juno
Worklight 6.0
In a new Worklight application called "test", under the common folder you will have the following hierarchy:
css
images
js
test.html
In test.html, if I will add <src="images/icon.png"/> then once previewing the app the icon.png image located in the images folder will be displayed:
I see that you are also trying to use multiple pages in your app. Make sure to read the Building a multi-page application training module.