[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Placing Web content(ads) in an app

Posted on 2005-04-19
9
Medium Priority
?
248 Views
Last Modified: 2010-03-31
Hi all,

I would like to place some small ads in my java application.  When the ads are clicked I need hyperlink to load in the user's default browser.  I would like this to work on multiple platforms.  Is this possible?

0
Comment
Question by:turtletimer
  • 5
  • 3
9 Comments
 
LVL 16

Expert Comment

by:suprapto45
ID: 13820798
Hi,

I think that you can use JavaScript, am I right?

<A HREF="link.html" onClick="popup = window.open('link.html', 'PopupPage', 'height=450,width=500,scrollbars=yes,resizable=yes'); return false" target="_blank">

let me check whether it runs on Netscape or not.

Regards
Dave
0
 
LVL 16

Accepted Solution

by:
suprapto45 earned 1000 total points
ID: 13820811
0
 
LVL 92

Expert Comment

by:objects
ID: 13820816
Use Runtime.exec() to fire up the browser
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 92

Assisted Solution

by:objects
objects earned 1000 total points
ID: 13820818
this articles getting a bit old but gives the basic idea

http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 13820824
Hi,

Or this http://www.yourhtmlsource.com/javascript/popupwindows.html.

Btw, hi objects, morning (am I right?), nice to meet you :).

Regards
Dave
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 13820826
Oh sorry, is this web app or simple java app, if it is web app, you can use JavaScript otherwise, you can use what object suggest :).

Regards
Dave
0
 
LVL 92

Expert Comment

by:objects
ID: 13820828
> Btw, hi objects, morning (am I right?), nice to meet you :).

yes still a little bit of the morning left here.
Nice to meet you 2 :)
0
 

Author Comment

by:turtletimer
ID: 13820856
Thanks fellas...Just looking for information right now..I'll post another question if I have problems while implementing...:)
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 13820874
Hi,

Glad I could help. Good luck then.

Regards
Dave
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month19 days, 4 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question