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 Java Problem

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 01-27-2004, 05:49 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jan 2004
Posts: 3
Emilman is an unknown quantity at this point
 



Java Problem


I'm new to this forum but have come here hoping to get some needed help and then maybe I can help someone else in return. I am using Dreamweaver 2004 and am using a template. My problem is that the template uses java script for my drop down menus etc. and is in the main code. When I evaluate it for submitting it to search engines I get the warning that my java needs to be put into a separate folder so the bots can spider my site. My problem is how do I put all my java into a folder away from the other code and it all still work properly? I am totally mystified. My website is www.emilitarymanuals.com an any help or instruction to solving this problem will be greatly appreciated!!
????: NamePros.com http://www.namepros.com/programming/18682-java-problem.html

Thanks in advance for the advice!
Emilman is offline  
Old 01-27-2004, 10:35 AM   #2 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



well you could use shtml or php 'include' code to have it in a seperate folder an include it at run time but I'm not sure thats what your after here.
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline  
Old 01-27-2004, 10:47 AM   #3 (permalink)
NamePros Member
Join Date: Dec 2003
Location: GB, WI
Posts: 69
blouis is an unknown quantity at this point
 



You can have this little snippit of code in your page structured like this
Code:
<html>
<head>
<title>TITLE OF YOUR PAGE</title>
</head>
<script language="JavaScript" src="/js/java.js"></script>

rest of your html below
__________________
Bryan Louis
-Xeplin Development-
http://www.xeplindevelopment.com
-Personal-
http://www.bryanlouis.net
blouis is offline  
Old 01-27-2004, 11:51 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Jan 2004
Posts: 3
Emilman is an unknown quantity at this point
 



blouis,

I am assuming you mean to copy all my java script and put it in a folder named "java.js" then put that snippet in and it will load everything as it does now?
Emilman is offline  
Old 01-27-2004, 01:21 PM   #5 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



yup
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline  
Old 01-27-2004, 01:21 PM   #6 (permalink)
NamePros Member
Join Date: Dec 2003
Location: GB, WI
Posts: 69
blouis is an unknown quantity at this point
 



kinda, you have a folder called whatever you want we'll use "javascript" for example, then you have in there a file called "java.js" for example then in the like where it points to it you have the path to the .js file

in my example it would be
src="/javascript/java.js">

does that make more sense??

yea yea you take out all your java that you have in that page and paste it into the .js file.
__________________
Bryan Louis
-Xeplin Development-
http://www.xeplindevelopment.com
-Personal-
http://www.bryanlouis.net
blouis 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 11:54 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