Using SSI with html page
I've got several html pages that I made to use SSI's. The code would go like:
<div class="footer">
<!--#include file="../ssi/footer.html" -->
<div class="clr"></div>
But when I preview the page on the server, it's not showing the code. If I bypass the SSI and paste the html code in directly it shows.
I'm sure the path is correct. I can browse to it and I've also tried putting in the whole url just incase DW's Insert messed up.
Inserting SSI's works fine with php files, but when I try it in htm files I can't get it to work.
Is there something I'm doing wrong?
Also, change this
<!--#include file="../ssi/footer.html" -->
to this:
<!--#include virtual="../ssi/footer.html" -->
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Similar Messages
-
Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc
Hi,
Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc.
Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?
12.1.4 / 11g db
Appreciate your inputs.
Thanks,
KCan SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc. It should work.
Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, What is the issue you have with R12?
an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?What was Oracle feedback? Did they say it is certified and can be used?
Thanks,
Hussein -
Please help to send an email with html page in body
I need an html page on the body of an email to send an email blast to our customers.
HTML Emails can be a bit tricky. You can design them in Dreamweaver, but you really shouldn't send mass email through your personal email account (or your company account). That could get you blacklisted by corporate spam filters and make your email addresses pretty much useless.
For mass email campaigns (over a few hundred email addresses) I use http://www.icontact.com.
You can build the email right through their site (without DW) or you can import your html from DW to their service.
Some things to keep in mind with HTML email...
1. Use absolute links to images and files on a server you control
2. Use a limited amount of inline css (no external or embedded css)
3. Use table based layouts, css support is spotty at best with email clients
4. The <head> will be stripped from a number of email clients, don't rely on anything between the <head> tags making it to your recipients
5. Don't use an image-only email. HTML text is very important to keep it from being labeled spam, make the images secondary to the message, many email clients will not download images without the user's say-so
6. Include an opt-out link so people can get off your list
There are more things to watch out for, but those are the big ones. Here is some more good info: http://alt-web.com/Articles/HTML-Emails.shtml -
Using SSI in a page. Pages in one folder don't work
I have a fairly large site (page count wise that is) that I
have tried my first case of using a Server Side Include. The site
is
http://www.schaefergreenhouses.com
In the upper left area of the side navigation bar, green,
there are two text links, Christmas and Trees & Wreaths. Those
2 text links are actually a SSI, where the page the SSI is calling
has only those 2 links in it.
I got it to work on my webserver, no problem.
However, there is a group of pages, further down the left
column, one being "Interior Plant Maintenance" as an example. This
group of 20 or 30 pages puts up an error in the spot where the SSI
is supposed to go. There error is "an error occurred while
processing this directive".
The whole site is based on a master Template, so if some
pages work, they all should. I even tried deleting the Template
info from this one page, re-applying it, and uploading, and still
get that error.
At first I thought it was just this group of pages because
they reside in a sub-directory off the home, but that's not it
because most others that work are also in a folder.
Any ideas? I have no clue where to begin troubleshooting
this> The include file does indeed have to be /etc, not
../etc.
> I tried the full url, with
http://etc, and that didn't work at all.
No - the link to the file being included doesn't have to be
root relative.
BUT all links within the file being included should be
(unless everything is
in the same folder).
> Bummer that DW can't show the include in Design view.
It can, and it does.
> and are a pain in the butt for site management.
Well, you got *THAT* right! 8)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"synterx" <[email protected]> wrote in
message
news:fkc6nh$4r5$[email protected]..
> well, I learned a few things.
>
> The include file does indeed have to be /etc, not
../etc.
> I tried the full url, with
http://etc, and that didn't work at all.
>
> I had to use virtual.
>
> All seems well now.
>
> Bummer that DW can't show the include in Design view.
>
> I like the concept of SSI, but am going to have to do
some serious playing
> around to use it any further on my sites other than
small little chunks.
>
> Thanks for the help to all.
>
> and my research also says full URLs do nothing for SEO,
and are a pain in
> the
> butt for site management.
>
> -
Hi,
I have got following project :
an axis webcam displays an image thanks to http protocol
at the right of my image, I have to create a panel with some java controls.
I would like some hints on howto do this?
Do I need a to setup a web server or is it possible to do this using a single html file loaded in my browser ?
Best Regards
StephAt best you can load an applet in a html page (the other possibility is to use servlets and JSP's to do server side processing, which is most likely not what you want to do).
But what do you want to do with these "java controls"? -
Combining PHP Pages With HTML Pages.
Hi,
I started building my site in Dreamweaver CS4 using HTML pages, not knowing until now that any pages with interactivity need to be php.
If my site has seven pages, can four of them be HTML, and the rest PHP? If so, are there any special considerations I have to take into account? Is there anything special that would have to be done at any time during the process of creating the PHP pages, uploading to a web host, etc?
If not, is there a way to convert the HTML pages directly to PHP, or do I have to basically start from scratch?
Thank you.Better to be consistent. You CAN have php, htm, html and shtml pages in your site, but this could cause a server conflict if you accidentally upload more than one index page to the same folder.
Simply rename your ***.htm pages to ***.php (F2).
Remove ***.htm pages from testing and remote servers.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Junk characters display while using multipart with html content in Javamail
Hi All,
I have used Java mail API to send mail with attachment. To enable to attachment in mail and to do content formatting i have used multipart and html content type together.
My web application runs on apache tomcat 5.5 in MAC server. Java version is 1.5.
The Function which i have used for sending mail with attachment is as follows:
public void sendmailAttached(String to,String from,String host,boolean debug,String mailContent,String mailSubject,String cc,String attachFiles)
String mailarray[]=to.split(";");
Properties props = new Properties();
//props.put("mail.smtp.port","425");
props.setProperty("mail.smtp.host", host);
if (debug) props.setProperty("mail.debug", ""+debug);
Session session = Session.getInstance(props, null);
session.setDebug(debug);
try {
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
for (int i=0;i<mailarray.length ;i++ )
toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
msg.setRecipients(Message.RecipientType.TO, toAddress);
msg.setSubject(mailSubject);
try{
String ccaray =cc;
String mailarray1[]=ccaray.split(";");
javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[mailarray1.length];
for (int i=0;i<mailarray1.length ;i++ )
CCAddress[i]=new javax.mail.internet.InternetAddress(mailarray1[i]);
msg.setRecipients(Message.RecipientType.CC,CCAddress);
}catch(Exception ss)
System.out.println("CC mail exception is ====>"+ ss.getMessage());
msg.setSentDate(new java.util.Date());
Multipart multipart = new MimeMultipart("related");
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(mailContent, "text/html");
multipart.addBodyPart(messageBodyPart);
String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
if(!fileName.equals(""))
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(attachFiles);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(fileName);
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
Transport.send( msg );
catch(MessagingException mex)
Exception ex = mex;
if (ex instanceof SendFailedException)
SendFailedException sfex = (SendFailedException)ex;
Address[] invalid = sfex.getInvalidAddresses();
if (invalid != null) {
if (invalid != null) {
for (int i = 0; i < invalid.length; i++)
System.out.println("Invalid Addresss --------> " + invalid[i]);
try
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
Multipart multipart = new MimeMultipart("related");
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(mailContent, "text/html");
multipart.addBodyPart(messageBodyPart);
Address[] validUnsent = sfex.getValidUnsentAddresses();
javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[validUnsent.length];
if (validUnsent != null) {
for (int i = 0; i < validUnsent.length; i++)
System.out.println("Valid Address ------>"+validUnsent[i]);
String test = validUnsent[i]+"";
toAddress[i]=new javax.mail.internet.InternetAddress(test);
msg.setRecipients(Message.RecipientType.TO, toAddress);
msg.setSubject(mailSubject);
String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
if(!fileName.equals(""))
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(attachFiles);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(fileName);
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
Transport.send( msg );
catch(Exception e)
System.out.println("Mail Not Send");
else
System.out.println("Mail Server Not Connectd ");
This code is working properly and i am able to send mail with attachment and html formatted content without any problem. But console of server is filled up with too much junk characters because of which the catalina.out file of tomcat server is becoming fully filled.
Sample cosnole display with junk characters are as follows:
Subject: HBSP - DRUCKER - QC - CH16 - QC R2 Completed
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_34_15681668.1247471518887"
------=_Part_34_15681668.1247471518887
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<b>Hi,</b><br><br> Chapter CH16 in the project DRUCKER is Completed . <br><br> <b>Comments :</b> Qc Accepted.<br><br> <b><i>Thanks,<br>ANTONY.</i></b>
------=_Part_34_15681668.1247471518887
Content-Type: application/octet-stream; name=9420317_CH06_p084-119.pdf.zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=9420317_CH06_p084-119.pdf.zip
UEsDBBQAAAAIAMOz6TqHaQ4BUtXhAGzP8QAZAAAAOTQyMDMxN19DSDA2X3AwODQtMTE5LnBkZsQ7
CTxUX9tCUpIWEomxpoWZuTN3FmvW7P9skaUajCXGiCHSYiuKFrIvlWStROSvaBEtiIpkK5WlUipa
ZKl898wYRP/37fve7/e69TjnPuc5z3LOuc95zjP3ym7S1lXAKuL5ZTu7HjTyL8ATiCgMiu6wA6Wi
gjZy86RSvN12U51QWLQRCguT8ESISED/hcITMWgdFJZIgPAwBm2CwhHQFqAdRySRcWg9lC2KBBNQ
WAIRZ6+mxk/1dEI48qNYF7+/N9WZHwiCSPyY8QtLQDFLlCf/AhYGgiHyDBwBIs7EETEzcCR4Bg6H
IZBn4LBE7AwcNBOHJ87EwWQ8aTqOgIWJM3C4mX2JMH6GLiQiHjMDR8bD03BYDBYizcDh8LjpOCyM
xczAETH4mbgZOmNhmDCDHwE7Qz+IhMNO54eHCKTp/GAcboYuBBJMmi6DSIZxU+lYF7KSJnEMb4qb
B9WbH1md5sjCROHJMHqTN9VvfPGRcGgzOp2BwhOQMUKZofU9nenIDYF1o22rgtXU1EWGRgsia2vp
Like this display of junk characters are filling up multiple pages of console file.
Can any one suggest me how to overcome this problem?
Many thanks in advance.There is no "sendmail" method in the JavaMail API.
The debug flag is set using the Session.setDebug method, or by setting the Session property "mail.debug".
If you're using someone else's helper classes with JavaMail, they may provide another way to set it. -
Hi,
I want to make a pdf fill able form by livecycle or acrobat pro. In which there will be a button.By clicking this button I want to embed it with a html page.Is it possibe for abobe acrobat pro or adobe livecycle? I f possible how can I make thos button?Hi,
I want to make a pdf fill able form by livecycle or acrobat pro. In which there will be a button.By clicking this button I want to embed it with a html page.Is it possibe for abobe acrobat pro or adobe livecycle? I f possible how can I make thos button? -
Applet and interaction with html page
Hi,
I want to create an applet that send parameter to html page like a <FORM>.
Can I do this? How?
thanksAn applet is Client based, runs inside of HTML page.
The applet can send data to the server it came from, or to another html page on the SAME server using URLConnection. -
$( ".paneinput.jqxscrollbar" ).on("valuechanged", function (event)
var currValue = event.currentValue;
var preValue = event.previousValue;
var a=$( ".paneinput .jqxscrollbar" )
var popups=$('.jqxtooltip');
for(var i=0;i<popups.length;i++)
var popupdisplay=$(popups[i]).css('display');
if ((popupdisplay=="block"))
var gridid=$(popups[i]).attr('ID');
var x=$("#"+gridid).offset();
var y=x;
y=x.top+(preValue-currValue)+"px";
var popupid="#"+gridid;
$(popupid).css('top',y);
var z=parseInt(y);
if (z<93)
$(popupid).css('z-index',1);
else if (z>600)
$(popupid).css('z-index',1);
else if ((z>93)||(z<650))
$(popupid).css('z-index',99999);
var texts=$('.text');
for(var i=0;i<texts.length;i++)
var textid=$(texts[i]).attr('ID');
var textObj = $('#'+textid)
textObj.jqxTooltip('close');
textObj.jqxTooltip('open');
var top = textObj.offset().top
if((top>1892)||(top<1))
textObj.jqxTooltip('close');
The above code we are usingThis forum is intended for user support, not for web development issues.
Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum. -
Hi, I've tried an example at livedocs.adobe.com ->
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000917.html
<- and followed exact steps mentioned in the document but i get
the following two error messages. Your help will be greatly
appreciated.
1046: Type was not found or was not a compile-time constant:
Void.
1046: Type was not found or was not a compile-time constant:
Void.
Note: i'm using CS3 Flash.
Thank you
malikTry changing the two uses of Void to void (lower case
v). -
I have created policy for permissions for the applet to comunicate over sockets...how to get it to access that policy file from inside the html code
example html
<center><applet code="CBJGUI.class" width="675" height="510"></center>
</applet>
example cmnd line to load with policy thru applet viewer
appletviewer -J-Djava.security.policy=CBJper CBJv.1.0.htm
please help....so close I can smell itI have exactly the same doubt.
I read somewhere that you might need to change the java.security file in the {java installation}/jre/lib/ file. I added the grant permission lines to it too. Still it doesnt work.
If i run the same application by passing the security policy thru the command line and run the applet thru appletviewer then the same application works.
How to get it to work through the browser though?
Please reply soon. -
Passing parameters in a html page using xwd_tmppg.create
We are in the initial stage of Developing a OLAP Web Application using
Oracle Express Web Agent 6.3.2,Oracle Express Administrator6.3.2.
Flow of our screens are:-
We have a login screen that authenticates user entry to access his assigned role screen.Based on the role the user selects we will be listing out the analysis in a screen that the user could access.
Express Programs are used to create Role and Analysis screen.
User logged information is passed from login to role screen and to
analysis screen using XWD_APPPG.CREATE that accepts parameters.
Moreover this function can only be used to create html page with out
data views.
Now let us come to our problem-
We need to take the user from analysis screen to detailed data view screen that shows the OLAP cube with a back & exit button.As explained earlier you need to use the function XWD_TMPPG.CREATE to create dataview.It is not possible to pass parameters through this function.This function accepts .html as the only parameter.But we need to pass the userid info to get back to analysis screen for the user to select the next analysis.I need the user logged info available in the template file.
Is there any solution for this problem or any other approach to capture the user logged info in the template file???Hi Aneel,
Thanks for your informative suggestion on how to receive data from
previous page on to the template page using LOCATION.SEARCH.SUBSTRING
function.
I could very successfully get the userid information by implementing
this method within the SCRIPT boundary.
I also want to pass this value to a express program embedded
within the <!--EXPRESS call foot(userid)--> so that it will enable the
user to go back to List of analysis page.her my footer program will
inturn call the Analysis Page with the userid information.That's my
whole idea.
I tried the following methods to acieve my end result-
1)Tried to store the value in a local variable in the template & passed
it to the express program -- Error thrown was "userid is not attached in
the database"
2)Directly specifed location.search.sunstring in the express program..
Still the same error was thrown
3)Thought of storing the value in the name of hidden object .Still this
will not work out because i need to declare the object in the FORM..
Moreover the value is avialable wihin the JAVA SCRIPT range.Out of this
range template is not able to identify this value.
Any idea Aneel form your end.
Can you let me know how to use hidden object in achieving the result.
I have been working very hard for quite sometime.
Advance thanks.
Nanda Kishore -
Read values on HTML page(flash embedded) using Java code
Hi,
we can normally parse a HTML and can get values on a web page using java code.
is the same possible with HTML page indluding flash?
my basic need is to read values on webpage displayed by flash
thanks
Rflash can communicate with javascript using the externalinterface class.
-
Hi there,
So I'm not too familiar with HTML pages but I think this
might be advanced...at least for me. ;-) What I have is a html page
that is set up with a table and inside the table is a background
image. The table is aligned to center and that's pretty much set to
go for the background. What I want to do now is add buttons onto
this page but I can't figure out how to have the buttons stay in
the same exact place of the background image when I change the size
of my web page. I know how to do this in ImageReady by just slicing
this thing left and right, but I wasn't sure if there's a way to do
this in Dreamweaver to make this easy.
This is what the page looks like as of right now:
http://www.crawfordgroup.tv/4th/
What I would like to do is not have the page load up in
chunks since I had to slice everything in ImageReady. Any
suggestions? I would really appreciate any advice. Thanks a lot!
BrianPut the buttons into cells of the table. But (and this is a
big one) - The
table must be constructed using good table methods. This
means it would
have to be built so that if your content expands (i.e.,
someone resizes
their text in the browser), it doesn't expand those cells.
You cannot,
therefore, merge and split cells in this table containing the
buttons.
That means you have to understand HTML tables enough to be
able to build
that layout.
A point I am subtly trying to make is that this alignment of
foreground
things with background things is usually not a good page
layout approach.
> I know how to do this in ImageReady by just slicing this
> thing left and right,
This is the way that most people enter the dreaded domain of
"Table Hell".
Do not use a graphics editor to write your HTML.
Taking a Fireworks comp to a CSS-based layout in Dreamweaver
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"BriGuyHogie" <[email protected]> wrote in
message
news:[email protected]...
> Hi there,
>
> So I'm not too familiar with HTML pages but I think this
might be
> advanced...at least for me. ;-) What I have is a html
page that is set
> up
> with a table and inside the table is a background image.
The table is
> aligned
> to center and that's pretty much set to go for the
background. What I
> want to
> do now is add buttons onto this page but I can't figure
out how to have
> the
> buttons stay in the same exact place of the background
image when I change
> the
> size of my web page. I know how to do this in ImageReady
by just slicing
> this
> thing left and right, but I wasn't sure if there's a way
to do this in
> Dreamweaver to make this easy.
>
> This is what the page looks like as of right now:
>
http://www.crawfordgroup.tv/4th/
>
> What I would like to do is not have the page load up in
chunks since I had
> to
> slice everything in ImageReady. Any suggestions? I would
really
> appreciate
> any advice. Thanks a lot!
>
> Brian
>
Maybe you are looking for
-
I just downloaded 2 ringtones from the itunes store and i cannot find them in my phone to sync and add them to my ringtone selection. help!
-
Coloring table row using css in pfr
Hi all, I am using classic table region for loading the records.After loading in PFR using table multiselection selecting one or more than one row then coloring should happen for those selected rows. In pfr we cann't change bean properties. Give ur i
-
My new itouch wont be detected by my itunes
I just got my iTouch in the mail yesterday and when I connect it to my computer, iTunes wont recognize it, but the computer does but as a camera type thing. Ive researched everything a billion different ways I can and nothing works. help please! ♥
-
Tcode CM25:BDC or function module to dispatch planned orders
Hi all, Could you please suggest a BAPI/FM for CM25 -dispatching the planned orders. While i try BDC, it requires the line selection for dispatch,which does not get captured in recording. Can anyone throw light on this or suggest any alternative. tha
-
Can I display a double line of bookmarks on the bookmark toolbar?
Foxfire 31.0, XP Pro, Currently I can only get 7 items in bookmark toobar, I would like about 10. Thanks.