Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Design and Webmaster Issues
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-17-2001, 05:21 PM   #1
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Question How do I call a .js file from another webhost please?

My websites are spread over different webhosts.

I would like to have some content on one of my webhosting accounts and have it run through all the others. (It's becoming a big pain changing, for example affiliate links, manually.)

I know it is possible to do this with, for example, banner rotation scripts, but I would like to do it without using Perl.

Obviously I can't use SSI because that only works on the same server. Is there any other way of doing it?

Is it possible to do it in Javascript/CGI? I've tried pulling .js files from different accounts, but am getting myself into a muddle. I'm not an expert on this kind of stuff.

I use the following code:

[script language="JavaScript" src="http://www.Litmania.com/all/banner.js"][/script]

(with < > instead of [ ] or course)

But no matter what I then place in banner.js, using HTML or Javascript, it doesn't show anything on the page I call it from.

The advert might be a search box; it might include text and graphics.

Is it possible to do what I would like, an alternative to SSI that is spread over different webhosting accounts?

Please provide examples of exact commands I would use.

Thanks so much. This could of feature could save me (and others) masses of time http://geekvillage.com/ubb/smile.gif

------------------
Nadeem Azam
Litmania.com Inc.

Free Banners - free website promotion
LitLinks - new literature directory
1lit is offline   Reply With Quote
Old 03-19-2001, 10:51 AM   #2
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Question

All right, I've made some progress http://geekvillage.com/ubb/smile.gif

My knowledge of JavaScript is not great, and I've discovered that I can't put some things in those .JS files. But I'm gradually feeling my way and am working out ways of incorporating affiliate links into them. Would be great if I could add search boxes to those .JS files, but the codes provided by affiliate programs are not in pure Javascript.

One thing: is it possible to add a drop-down menu to a .JS file?
I've tried the following, which works normally, but not via a .JS call:

<FORM NAME="nav"><SELECT NAME="SelectURL" onChange="window.open (document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value,'newwindow')">

<OPTION VALUE="http://www.freefind.cjb.net"SELECTED>
Please select site to visit:
<OPTION VALUE="http://CDUK.Best.CD">
CD UK - Discount Music
<OPTION VALUE="http://Nutrel.cjb.net">
Nutrel - Health
<OPTION VALUE="http://TopSitesUK.cjb.net">
UK Top - Best of British
</SELECT></FORM>

Spent ages trying to work this one out. Been scouring all the JS sites, but no luck.

Thanks http://geekvillage.com/ubb/smile.gif


[This message has been edited by litmania (edited 03-19-2001).]
1lit is offline   Reply With Quote
Old 03-19-2001, 06:15 PM   #3
xuniverse
Member.
 
xuniverse's Avatar
 
Join Date: Jan 2001
Location: SEATTLE
Posts: 210
Unhappy

just use a code which brings up html.
xuniverse is offline   Reply With Quote
Old 03-19-2001, 06:18 PM   #4
xuniverse
Member.
 
xuniverse's Avatar
 
Join Date: Jan 2001
Location: SEATTLE
Posts: 210
Unhappy

just use a code which brings up html.
xuniverse is offline   Reply With Quote
Old 03-19-2001, 07:22 PM   #5
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Smile

Pardon my lack of knowledge, but how would I do that. Specific coding would be great.

Thanks a million http://geekvillage.com/ubb/smile.gif

------------------
Nadeem Azam
Litmania.com Inc.

Free Banners - free website promotion
LitLinks - new literature directory
1lit is offline   Reply With Quote
Old 03-21-2001, 05:31 AM   #6
patrickw
Registered User
 
Join Date: Aug 2000
Location: Newport, AR
Posts: 101
Unhappy

I know you have probably already checked this, but the .JS does not have a line in it that restricts it from being accessed on other servers does it?

Several scripts (java, cgi, php) are site-specific, and won't execute to outside domains.



------------------
Patrick Weatherford
www.BottomDollarDomains.com
$12 Domain Registration - Powered by OpenSRS
patrickw is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
external .js file problem TN Todd Web Development - Programming / Coding 3 01-04-2003 11:36 PM
Free WebHost For Sale sterlingbeck Website For Sale - Purchase - Barter - Trade 5 01-25-2002 05:50 AM
File Swapping days numbered? DaveUK geek/yak 15 10-18-2001 10:52 AM
ListSitePro --> File Manger ??? T Dot Web Design and Webmaster Issues 0 10-14-2000 07:18 AM
I want to call somebody on the US now! lemon Making Money with CPC and/or CPM Programs 1 06-14-2000 07:29 PM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 09:44 AM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.