Computing.Net > Forums > Web Development > Can you load a external DIV file?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Can you load a external DIV file?

Reply to Message Icon

Name: suspect52732
Date: March 14, 2005 at 12:49:57 Pacific
OS: XP
CPU/Ram: 2.4/512
Comment:

Here is a link to the file I am working with:


http://www.medequipserv.com/needSomeHelp.htm


I need to load the contents of the DIV "excel" from a seperate file. Can someone show me how to do this?

Im talking about the part of the code that looks like this:


<div id="excel">
Item,Price
LHA103GP,$999.99
AAM102,$999.99
AAM103,$999.99
</div>



Sponsored Link
Ads by Google

Response Number 1
Name: fambi
Date: March 15, 2005 at 00:17:17 Pacific
Reply:

It depends on the scripting language that you are using.

If it is in php (which is the language that i know), it is a simple case of <?include("file.php");?>

If it is in html, you have to use .shtml and ssi but i don't know how to do this, but there's lots of tutorials online.

Any other languages, can't help!

If you're interested in SMS, visit section about sms news.


0

Response Number 2
Name: suspect52732
Date: March 15, 2005 at 08:26:17 Pacific
Reply:

Thank you for your advice. Unfortunatly, I can't use ASP, PHP, or SSI. I will probably look for a new webhost that can support this.

"Any other languages, can't help!"
I think I may be able to do this with javascript and have a seperate .js file which would contain all
var 12345 = "$10"
var 12346 = "$12"

then have each link display the value of its varible like this:

a href="Value of 12345"

That way I could have one central file that contained all the items and prices.

I think you are right about other lang's to an extent. I believe that you can write a program to do anything. However, each lang has its given disadvantages. I will try this javascript method, and if nothing else I will get a new webhost.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Can you load a external DIV file?

loading a script www.computing.net/answers/webdevel/loading-a-script/995.html

AJAX Problem: Loading Page into Div www.computing.net/answers/webdevel/ajax-problem-loading-page-into-div/3398.html

php wont work in hidden div www.computing.net/answers/webdevel/php-wont-work-in-hidden-div/3626.html