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 programming

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

Advanced Search
4 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-09-2010, 05:33 PM THREAD STARTER               #1 (permalink)
Carpe Diem
 
Nathan's Avatar
Join Date: Apr 2007
Location: Brisbane
Posts: 909
Nathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to beholdNathan is a splendid one to behold
 



Special Olympics Cystic Fibrosis Save a Life

Java programming


Hey all,

I was just wondering if it was possible to make a java script for ads, the idea behind it, is I want to offer some free products, as a term of service, i would require them to put a java script on their site, either as a banner header/sidebar script... but then from that, i want the script to read a directory has that the actual ad's in it... that way I can add different banners/advertisment without actually going to each site and getting them to put a new banner on...

Just wondering if a) it's possible... b)how hard it would be implement, /are there any scripts out there already???

I don't have any experience with Java
__________________
Nathan is offline  
Old 06-09-2010, 08:40 PM   #2 (permalink)
NamePros Regular
 
pixelhero's Avatar
Join Date: May 2008
Location: England
Posts: 771
pixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to all
 


Help The Homeless - Holiday 2009
a) yes is it.
b) if the sites using your ad's are external to the server, it'd be easier if they communicated with a script on your server, and only that script could read your directory. I don't believe it is that hard, I have not used JavaScript for reading directories, but I'd assume its pretty standard functions. But I'd guess this way is probably the way to do it:
Code:
External site page loads with your ad script.
The script requests an advert to load from your server side script. (Maybe pass a 'category' or something if you want categorised ads)
The script on your server returns a link to the advert for that site.
External site can display this link in img tags.
I wouldn't recommend allowing JavaScript on external sites to pick files from a directory directly.
????: NamePros.com http://www.namepros.com/programming/660773-java-programming.html

b2) I don't know.

Also, JavaScript is not Java, it is very similar and based upon it yes, but if you are looking for scripts and support, use the word JavaScript you will more likely find what you are looking for.
Last edited by pixelhero; 06-09-2010 at 08:47 PM.
pixelhero is offline  
Old 07-30-2010, 11:47 PM   #3 (permalink)
New Member
Join Date: Jul 2010
Posts: 4
tinaCEO is an unknown quantity at this point
 



Store your ads in database on your server and then connect it with other website.
__________________
Software Engineer. Developed HTTP Debugger For Developer Community.
tinaCEO is offline  
Old 07-31-2010, 11:45 PM   #4 (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
 



It's is possible, but as mentioned, Java and JavaScript are NOT the same, so tread carefully. In this case, a mix of javascript and some serverside scripting (like php) seems to be your best bet, but of course it is _possible_ to do it with java (although would be a VERY bad idea). java is generally frowned upon for web apps due to its slowness
nasaboy007 is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 12:55 PM.

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