Find jobs - Debt Consolidation - Lyrics - Advertising - French Property

PDA

View Full Version : Including with javascript? + Green Rep


prilep
Apr 6th 2007, 1:11 am
For one of my sites i was including my pages with php, but my server dosent allow php and i want to know how to include sites with javascript.

Here is the php code i used:

<?
switch($_GET[ricko])
{
default:
include("includes/news.php");
break;
case 'elektro':
include("includes/elektrotehnicka.php");
break;
case 'masinska':
include("includes/masinska.php");
break;
case 'soobrajkajna':
include("includes/soobrajkajna.php");
break;
case 'administracija':
include("includes/administracija.php");
break;
case 'nastavenkadar':
include("includes/nastavenkadar.php");
break;
case 'pomosenpersonal':
include("includes/pomosenpersonal.php");
break;
case 'mladinskaorganizacija':
include("includes/mladinskaorganizacija.php");
break;
case 'realnakompania':
include("includes/realnakompania.php");
break;
case 'karierencentar':
include("includes/karierencentar.php");
break;
case 'ostanatiaktivnosti':
include("includes/ostanatiaktivnosti.php");
break;
case 'ucenickiaktivnosti':
include("includes/ucenickiaktivnosti.php");
break;
case 'proektniaktivnosti':
include("includes/proektniaktivnosti.php");
break;

case 'sekojdnevie':
include("includes/sekojdnevie.php");
break;
case 'mladinska':
include("includes/mladinska.php");
break;
case 'karieren':
include("includes/karieren.php");
break;

case 'kompania':
include("includes/kompania.php");
break;
case 'ostanato':
include("includes/ostanato.php");
break;
case 'contact':
include("includes/contact.php");
break;
case 'webmaster':
include("includes/webmaster.php");
break;
case 'sponzori':
include("includes/sponsors.php");
break;
case 'pedagog':
include("includes/pedagog.php");
break;
}

?>

So if anyone knows how to do that in javascript please post.

- Prilep :D

giraph
Apr 6th 2007, 8:19 pm
Honestly you're not going to want to use javascript for this, but if you insist you can find the instructions at:

http://www.boutell.com/newfaq/creating/include.html

prilep
Apr 7th 2007, 1:47 am
Honestly you're not going to want to use javascript for this, but if you insist you can find the instructions at:

http://www.boutell.com/newfaq/creating/include.html

Well im making a site for someone and on his server your now allowed to have .php pages. So i need to do it a different way. Thanks

- Prilep :)
And REP has been added.