473,385 Members | 1,863 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,385 software developers and data experts.

External HTML

Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different places
on my website.

The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.

Which is the correct way to include the same paragraph in different places
on my pages ?

Thank you
Alex
Nov 19 '05 #1
6 1316
Controls are the most used way to have common HTML show in multiple places
throughout a web site.
Here's more info:
http://SteveOrr.net/faq/usercustom.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Alex Nitulescu" <RE***********************@yahoo.com> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different
places on my website.

The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.

Which is the correct way to include the same paragraph in different places
on my pages ?

Thank you
Alex

Nov 19 '05 #2
Create a user control that contains your data, then just drag that user
control (.ascx file) on to you page where you want the data.
"Alex Nitulescu" <RE***********************@yahoo.com> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different
places on my website.

The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.

Which is the correct way to include the same paragraph in different places
on my pages ?

Thank you
Alex

Nov 19 '05 #3
Use a HTML IFRAME Tag

<iframe src="filename.ext" frameborder=0></iframe>

filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...

I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)
"Alex Nitulescu" <RE***********************@yahoo.com> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
Hi. I have some documents (containing either plain text, either HTML) and
I'd like to be able to show the contents on those files in different
places on my website.

The question is how do I show them ? I have tried with <a href=...../> but
nothing shows ! I have also tried with <link....., with the same (non-)
result.

Which is the correct way to include the same paragraph in different places
on my pages ?

Thank you
Alex

Nov 19 '05 #4
> Use a HTML IFRAME Tag

<iframe src="filename.ext" frameborder=0></iframe>

filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...

I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS X)


Only do this as a last resort. If you have access to server-side technology
(and I assume folks do when posting in a .net newsgroup) it'd be much better
to do this server side with controls, or even just good 'ol server side
include.

-Darrel
Nov 19 '05 #5
I agree. Most folks steer clear of IFRAMES.
"darrel" <no*****@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Use a HTML IFRAME Tag

<iframe src="filename.ext" frameborder=0></iframe>

filename.ext can be HTML, ASP, ASPX, PHP, Perl, etc...

I've tested this with IE, FireFox (Windows/MAC OS X) and Safari (MAC OS
X)


Only do this as a last resort. If you have access to server-side
technology
(and I assume folks do when posting in a .net newsgroup) it'd be much
better
to do this server side with controls, or even just good 'ol server side
include.

-Darrel

Nov 19 '05 #6
Hi. Thank you for your answers.

Let me give you, however, some specs:

In the head of an ASPX page I have a Java script to which I have to pass
some strings - it will build an array and make them scroll vertically along
the container (screen), as the credits in a movie.

For instance, I have:

my_msg[0] = '<div align="center"><u>&nbsp Credits for my wesbite
&nbsp</u></div>';

and

my_msg[1] = '<div align="center"><a>Website name here</a> is an example
website written by Alex to illustrate the principles of design,
specification, and implementation of a content-based website in ASP.NET.
This website is a three-tiered solution (Presentation Layer, Business Layer,
and the Data Services Layer).</div>';

and so on. I even have one of the messages which shows a table, like this:

my_msg[9] = '<div align="center"><table cellpadding=2 cellspacing=2 border=1
bordercolor=deepskyblue bgcolor=#000066 style="COLOR: lightskyblue;
FONT-FAMILY: Arial"><tr align=center><td colspan=2><a>MyWebsite</a> uses the
following technologies:</td></tr><tr align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>HTML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/html.gif"></td><td>DHTML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xml.gif"></td><td>XML</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/css.gif"></td><td>CSS</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/xls.gif"></td><td>XSLT</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/aspx.gif"></td><td>ASP.NET</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/js.gif"></td><td>JavaScript</td></tr><tr
align=center><td><img
src="/aspnetprojects/vsnet/MyWebsite/WebModules/FileManager/Images/vbs.gif"></td><td>VBScript</td></tr></table></div>';

All this is one formidable string.... It'is not nice, obviously.

As you can see, the format is:

my_msg[counter] = '<div align="center">My String</div>';

I tried to put "My String" in some separate documents and call them from
there, here, in this JScript. I couldn't make it. Either it gives me errors,
either it does not show anything.

This is the problem I'm trying to solve.... Any ideas ?

Thanks a lot !

Alex.
Nov 19 '05 #7

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

Similar topics

1
by: Chuck Mendell | last post by:
I am having problem with external javascripts. My OS is XP Pro. I am told to create an external javascript using a .js extension. (I did that) The external .js is very simple, containing: ...
5
by: kinne | last post by:
Is it possible to pass a parameter to an external ".js" file? Kinne
1
by: mb | last post by:
Hi, I picked up this JavaScript code (quiz code) at: http://javascript.internet.com/miscellaneous/multiple-choice-quiz.html and modified it (and may have deleted some line I shouldn't have) so...
4
by: dennise9 | last post by:
My exeternal JS works fine when the call is placed in the page head or body. But if I call the same javascript from a (clicked) text link on the page, the script throws a JS error when it...
0
by: dmcomer | last post by:
In the context of parsing and preserving HTML tags in an XSL stylesheet, I understand the difference between <xsl:value-of select="body"/> and <xsl:copy-of select="body> However, I am...
0
by: =?Utf-8?B?c25naWxi?= | last post by:
I am having 3 issues with the WebBrowser control which may all be related. The HTML for the page is the standard Weather Magnet from weather.com. The actual HTML is at the bottom of this page. ...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
3
by: RICHARD BROMBERG | last post by:
I have a simple program to test using an external .js file. This external file contains some functions that I need to call from several html programs. The program as written below works fine. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.