473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

conditionally combining multiple html files

I currently have a form where a user can enter results from a genetic
test. I also have a pool of summaries that would correspond to
different results that a user would enter into the form. I ideally I
would like to have the user enter their results and then have a master
summary created with the different word or HTML files on submit.
(condition 1 + condition 2 = combining/displaying corresponding HTML
files) I've gotten as far as creating the form and conditionally
launching IE, but it is the combining of the HTML files based on the
if/then statements I am having trouble with, if anyone has any
suggestions it would be very helpful? I'm using HTML, PHP, Javascript
with a little help from dreamweaver.

Jul 23 '05 #1
3 1693
Hi alwayswin,

The problem with is this, Javascript does not have a mechanism in which
it can include HTML files. What you probably want to do is use PHP
instead and use the 'require()' or the 'include()' function to bring in
HTML pages.

Jul 23 '05 #2
al**********@gmail.com wrote:
I currently have a form where a user can enter results from a genetic
test. I also have a pool of summaries that would correspond to
different results that a user would enter into the form. I ideally I
would like to have the user enter their results and then have a master
summary created with the different word or HTML files on submit.
(condition 1 + condition 2 = combining/displaying corresponding HTML
files) I've gotten as far as creating the form and conditionally
launching IE, but it is the combining of the HTML files based on the
if/then statements I am having trouble with, if anyone has any
suggestions it would be very helpful? I'm using HTML, PHP, Javascript
with a little help from dreamweaver.


Could be done with JavaScript, but personally I'd recommend using PHP's
include function (or is it a keyword?). I think it'd make for a very
easy, very flexible way of implementing combinations of document
fragments. Each fragment could also include its own PHP code if you
wanted to go that way.

Jul 23 '05 #3
web.dev wrote:
Hi alwayswin,

The problem with is this,
The main problem with this post is you don't know (or choose not to) how
to quote.
Javascript does not have a mechanism in which it can include HTML files.
Sure it does. But whether the UA supports it or not is another question.
What you probably want to do is use PHP instead and use the 'require()'
or the 'include()' function to bring in HTML pages.


He would probably end up better off including fragments rather than
complete HTML pages.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Hansan | last post by:
Hi all, I hope you have time to help me out a little. My problem is that I want to combine some python code I have made with some html templates, I found a tutorial at dev shed:...
2
by: Sten Westerback | last post by:
Hi I'm considering using .asp to implement a selective inclusion of .htm files containing tables into a HTML code sent to browser from IIS. My question is if it is possible to make an .asp...
7
by: Barry | last post by:
Hi all, I've noticed a strange error on my website. When I print a capital letter P with a dot above, using & #7766; it appears correctly, but when I use P& #0775 it doesn't. The following...
3
by: Flip | last post by:
I'm looking at the O'Reilly Programming C# book and I have a question about extending and combining interfaces syntax. It just looks a bit odd to me, the two syntaxes look identical, but how does...
2
by: Craig | last post by:
Is there a way to conditionally include a file in the HTML? <TD> if x= 1 then <!--#INCLUDE FILE="../File1"--> else <!--#INCLUDE FILE="../File2"--> end if
4
by: Qwert | last post by:
Hello, is there a way to combine multiple files into 1 file with VB.NET? Example: Dim MyList As New ArrayList() MyList.Add("File1.txt") MyList.Add("File2.doc") Pack(MyList ,...
2
by: Jens Weiermann | last post by:
Hi, I need to conditionally disable a html (not web forms) button control. The condition is to be evaluated server-side. What is the smartest way to do this? I'm now using a literal server-side...
1
by: ningjun.wang | last post by:
I need to include to static html files in my asp.net page. The order of include depend on query string. Here is the pseudo code mypage.aspx: <% string mode = Request; if (mode == "A") {...
5
by: Tristan Miller | last post by:
Greetings. Is it possible using HTML and CSS to represent a combining diacritical mark in a different style from the letter it modifies? For example, say I want to render Å‘ (Latin small letter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.