NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page javascript include?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-25-2006, 07:08 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2005
Location: Ontario Canada
Posts: 3,088
unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold
 


Diabetes

javascript include?


hey
u know how u can include files using php command
<?php include("http://www.url.com"); ?>
is there a way of including files [or showing the content of the file..same thing] in JAVASCRIPT?
unknowngiver is offline  
Old 06-25-2006, 07:29 PM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
something like
Code:
<script type="text/javascript" src="http://yourdomain.com/javascriptfile.js"></script>
__________________
Nabaza.com - Amaia
weblord is offline  
Old 06-25-2006, 08:12 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



well that wud just run the code of the javascript on the page, but i think what unknown is looking for is a way to use the include function without any php, so that he can have text documents "echo"ed in html pages.

i dont know of any way to do this, unelss of course you somehow make it into a variable and then call the variable... but that mite get complicated. and javascript can get buggy esp. when ppl have it deactivated lol
nasaboy007 is offline  
Old 06-25-2006, 08:31 PM THREAD STARTER               #4 (permalink)
Senior Member
Join Date: May 2005
Location: Ontario Canada
Posts: 3,088
unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold
 


Diabetes
Originally Posted by weblord
something like
????: NamePros.com http://www.namepros.com/programming/210737-javascript-include.html
Code:
<script type="text/javascript" src="http://yourdomain.com/javascriptfile.js"></script>
i tried this :
Code:
<script type="text/javascript" src="http://nameprince.com/ads/showad.html"></script>
but it just gave me a Blank page
unknowngiver is offline  
Old 06-25-2006, 08:34 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
the js include code only works on .js as well, let me see..
yeah it's js include all right you need to place your .html content in
document.write on your .js file.
there's another way .js and DOM
here's some outside readings:
http://www.quirksmode.org/js/placejs.html
http://www.merlyn.demon.co.uk/js-nclds.htm

if you want to include .htm files within .htm you might want to explore usage of SSI
http://www.javascriptkit.com/howto/ssi2.shtml
????: NamePros.com http://www.namepros.com/showthread.php?t=210737

hth
__________________
Nabaza.com - Amaia
Last edited by weblord; 06-25-2006 at 08:40 PM.
weblord is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:02 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger