/    Sign up×
Community /Pin to ProfileBookmark

Java not installed-script

Hi, I need a java script to direct visitors without Java installed on their computers to [url]www.java.com/getjava/[/url] . Thanx a million!
Ole

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@mjdamatoSep 26.2007 — You don't do that with Javascript. You specify the download page, if the user doens't have it installed, within the embed tag.

http://www.htmlcodetutorial.com/embeddedobjects/_EMBED_PLUGINSPAGE.html
Copy linkTweet thisAlerts:
@KorSep 26.2007 — Hi, I need a java script to direct visitors without Java installed on their computers to www.java.com/getjava/ . Thanx a million!

Ole[/QUOTE]

On the other hand, [B]java[/B] is a completely different language from [B]javascript[/B]
Copy linkTweet thisAlerts:
@heartglowauthorSep 26.2007 — You don't do that with Javascript. You specify the download page, if the user doens't have it installed, within the embed tag.

http://www.htmlcodetutorial.com/embeddedobjects/_EMBED_PLUGINSPAGE.html[/QUOTE]


Hi mjdamato and thank you so much for your quick reply, very kind. However, I know how the embeded tag works with Flash, but not in this Java script incl an applet. Not sure how this works... I have added the tag like this, but it still doesn't work:

<applet id="panoapl" name="ptviewer" code="ptviewer.class" archive="ptviewer.jar" width="526" height="350" align="top" style="border: 3px solid #333333; padding: 0pt;" mayscript="">

<EMBED PLUGINSPAGE="http://www.java.com/getjava/"></EMBED>

<param name="name" value="ptviewer" />

<param name="archive" value="ptviewer.jar" />

<param name="wait" value="data/splash.jpg" />

<param name="code" value="ptviewer.class" />

<param name="width" value="525" />

<param name="height" value="350" />

</applet>

Maybe I should have added the Embeded tag somewhere else? Looking very much forward to your reply ;-)

Best wishes

Ole
Copy linkTweet thisAlerts:
@felgallSep 26.2007 — See http://javascript.about.com/library/bljava.htm for the JavaScript code that tests if Java is enabled.
Copy linkTweet thisAlerts:
@heartglowauthorSep 26.2007 — Very very kind, thanx a million!

Maybe you can help me with this one as well? I'm creating a series of Virtual Tours, please see

http://plush-world.com/test/template3sixty.html, but I always get one and the same error message:

Line: 282

Char: 29

Error: 'pd[...]. optstr' is null or not an object

Code:0

Here is the script/form referred to:

<form name="fscene" id="fscene">

<select size="1" name="lstscene" style="margin: 0pt; padding: 0pt; width: 175px; font-color:#E6E0A9; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9px; font-weight: normal; border:1px solid #B4A91E; background-color:#cccccc" onchange="javascript:NewPano(this.options[this.selectedIndex].value);" onclick="javascript:AdjustPanoSelect();">

<option value="0">Select Another View</option>

<script language="JavaScript" type="text/javascript">


var i = 0;


for (i=1; i<pd.length; i++) document.write('<option value="' + i + '">'+ pd[i].optstr + '</option>');

</script></form>



I would be sooooo grateful if you could help me out with this one ;-)

Warm regards

Ole (Costa del Sol, Spain)
×

Success!

Help @heartglow spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...