Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:
  #1  
Old 07-12-2004, 04:56 AM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
hello.au

Hello everyone. I'm really glad to have found this forum and am hoping for help with a Java problem.

I have a Javascript Chat Room (from freejavachat.com) as part of my website and want some sort of audio alert so that I know when someone comes in.

Here's what I was advised to do, and have done:- in the applet code I've put (param name="joinsound" value="hello.au") and a file called hello.au is in the same directory as the Chat Room page.

But no sound happens.

It may be significant that my site is on my iDisk, hosted by .Mac. Is there some Java-knowledgeable person there who has a .Mac account and can figure out what else I need to do?

With very many thanks for reading.
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #2  
Old 07-12-2004, 08:28 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
if you like, you may7 send me the applet and i;ll put it on my webserver for testing purposes, to see if it is your .mac account (whatever that is!)
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
  #3  
Old 07-12-2004, 08:34 PM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
That's a kind offer. Thank you. How should I send it? I have copied the code into a rich text file - would that do?
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #4  
Old 07-12-2004, 08:46 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
i need the html file you declare the applet in.. the applet class file, and the hello.au sound file. shove em in a zip and post them to this board would priobably be the easiest thing to do
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
  #5  
Old 07-12-2004, 08:49 PM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
Oh dear - I'm new to all this - thanks for your patience. HTML file - yes. Hello.au file - yes. But what's the applet class file?
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #6  
Old 07-12-2004, 08:52 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
ps; was the weather any better in w yorks today? most of our better customers (you know, the kindthat dont ring us up pestering or breaking things) are there.. and the miles-away(from blackburn) customers are always messing around..(or buying our product.. how inconsiderate! still, northumbria was nice today, if a little far..)
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
  #7  
Old 07-12-2004, 08:54 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
[quote]Originally posted by gillylal
Oh dear - I'm new to all this - thanks for your patience. HTML file - yes. Hello.au file - yes. But what's the applet class file? [/QUOTE

hmm,okay....
this could be the stumbling block..

the applet will either come packaged as a jar, or a class file... do you have either of thiose?
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
  #8  
Old 07-12-2004, 09:21 PM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
Could it be that I don't have one because the code was generated for me by the site that hosts the chat room? I have asked them but hven't had a reply yet.
The weather here's been dry but chilly today.
Is it you who's been to my site and looked at 'Who We Are'?
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #9  
Old 07-12-2004, 09:23 PM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
Ah - they say that the applet files are housed on their servers alone.
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #10  
Old 07-12-2004, 09:24 PM
gillylal gillylal is offline
Registered User
 
Join Date: Jul 2004
Posts: 6
... and distributing them is against copyright law.
__________________
Gilly
G4 iMac OS X 10.3
website created with Mozilla's Composer
Reply With Quote
  #11  
Old 07-13-2004, 02:38 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
Quote:
Originally posted by gillylal
Could it be that I don't have one because the code was generated for me by the site that hosts the chat room? I have asked them but hven't had a reply yet.
The weather here's been dry but chilly today.
Is it you who's been to my site and looked at 'Who We Are'?
oh, yea, well.. that's no problem.. i mean.. its easy to write a page yourself, but link in an applet provided by someone else.. BUT therein steps in a problem:

applets cannot, by default, contact any site other than the one they came from.. this stops me writing an applet that uploads your credit card details to someone, or participates in a distributed denial of service attack..

so basically, youve got an applet written by ACME Applets Inc, sitting on ACME's servers, and being downloaded from them..

It then CANNOT go and download a file from your server, due to security restrictions. plus, even if it could, the parameter supplied wouldnt work, because it is only a relative path.. it does not specify the host where the file should be downlaoded from.. so your page, with their applet, and your instruction to download hello.au.. will ultimately result in hello.au being requested from THEIR server, not yours :/

there's no easy way to win this one, and the effort you'd have to put into it, wouldnt be economic... plus, you'd quickly find the audio an interruption and seek to turn it off (trust an old-time chatroom boy!)

bah.. cant win with this weather.. it's been baking all day... yesterday was nice, but rainy.. today i cant think.
i could ahve done without Bolton blowing up their TFT screen too, but it got me out the office for a good few hours.. (and aye.. i trawled round your site, seeing if i could find the aforementioned not-working applet. i probably got way-layed and then fell asleep after putting some music on the latop...)
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
  #12  
Old 07-13-2004, 02:39 PM
cjard cjard is offline
Banned Member
 
Join Date: Feb 2004
Posts: 808
Quote:
Originally posted by gillylal
... and distributing them is against copyright law.
www.mirc.com

(not applets.. )
__________________
The 6th edict:
"A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:27 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.