Home | Community | Message Board

Magic-Mushrooms-Shop.com
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: Kraken Kratom Red Vein Kratom   PhytoExtractum Maeng Da Thai Kratom Leaf Powder

Jump to first unread post Pages: 1
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
javascript assistance
    #5925174 - 08/02/06 11:57 AM (17 years, 5 months ago)

i am trying to make a javascript irc chat for a friends site, but unfortunately i dont know javascript  :frown:
i view sourced the code from the chat here but i dont see where to add the host server port and channel
nor do i really have any idea what im doing

this is what i have so far: http://www.practiceboard.com/?4230261

can someone who knows this stuff please show me how to connect that to a certain server and room
thanks


Extras: Filter Print Post Top
InvisiblePrisoner#1
Even Dumber ThanAdvertized!
 User Gallery

Registered: 01/22/03
Posts: 193,665
Loc: Pvt. Pubfag NutSuck
Re: javascript assistance [Re: insectvhore]
    #5925179 - 08/02/06 11:58 AM (17 years, 5 months ago)

fuck java, if people wanna chat they should use the telephone  :smirk:


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: Prisoner#1]
    #5925192 - 08/02/06 12:04 PM (17 years, 5 months ago)

but some of us are frightened by actual near human encounters  :confused:


Extras: Filter Print Post Top
OfflineFractalated
There's no onehome up there...

Registered: 07/22/06
Posts: 640
Last seen: 17 years, 4 months
Re: javascript assistance [Re: insectvhore]
    #5925199 - 08/02/06 12:07 PM (17 years, 5 months ago)

You've got to get the address of the server and have the form submit the data to that. I'm not sure of the proper JS for it, but I'm sure a quick google search will give you what you need. But you will need the IRC server address, using whatever language it operates on.


--------------------
"Now that the principalities and the powers stockpile weapons of mass destruction, contaminate the earth with their feverish industry, release floods of images to trigger insatiable desires, treat animals and humans as commodities and functions of a market, the devil must be grinning from ear to ear."


Extras: Filter Print Post Top
InvisiblePrisoner#1
Even Dumber ThanAdvertized!
 User Gallery

Registered: 01/22/03
Posts: 193,665
Loc: Pvt. Pubfag NutSuck
Re: javascript assistance [Re: insectvhore]
    #5925200 - 08/02/06 12:07 PM (17 years, 5 months ago)

try carrier pidgeons


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: Fractalated]
    #5925210 - 08/02/06 12:10 PM (17 years, 5 months ago)

akh! this is sounding more difficult that i was originally pretending it would be..ive searched a lot for the scripts but all i keep getting are actual chatrooms running on java, and the source is never easily readable..


Extras: Filter Print Post Top
OfflineYthanA
ᕕ( ᐛ )ᕗ
Male User Gallery

Registered: 08/08/97
Posts: 18,774
Loc: NY/MA/VT Borderlands Flag
Last seen: 8 hours, 10 minutes
Re: javascript assistance [Re: insectvhore]
    #5925368 - 08/02/06 01:02 PM (17 years, 5 months ago)

I'll help you but I'm kind of drunk at the moment. But http://www.pjirc.com/ is a good place to start.


Extras: Filter Print Post Top
Offlineabsolute zero
The Hero
Male User Gallery
Registered: 11/04/01
Posts: 796
Loc: 127.0.0.1
Last seen: 11 years, 8 months
Re: javascript assistance [Re: insectvhore]
    #5925393 - 08/02/06 01:12 PM (17 years, 5 months ago)

It looks like you have a form that submits data, but there is no "action" atrribute on your form specifying the target of the form...

This means that the fields from the form are posted back to the same page the form is on... this is ok if you have some way of processing the form data within that same page... if the applet is embedded in a separate page, you will need to change the target of the action...

In your <form> tag, I suggest that during troubleshooting, you should change the form method from "POST" to "GET"... this will allow you to see the form data that has been passed via the url...


Looking further down your page, I do not see a java applet, or any attempt to process the form data...




What are you attempting to do with the:

Code:
<wtvchat host=irc.rizon.org port=6667 channel=#spleen>



tag that is in the head?



also, what are you trying to do with this function?

Code:
<SCRIPT>
function addMessage() {
Chat.addChannelMessage(document.chat.input.value) document.chat.input.value=""
}
</SCRIPT>



--------------------


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: Ythan]
    #5925482 - 08/02/06 01:50 PM (17 years, 5 months ago)

awesome thanks a lot, ill look through that site and see if i can somehow figure out what im trying to do


Extras: Filter Print Post Top
Offlineeris
underground
Male User Gallery

Registered: 11/17/98
Posts: 48,024
Loc: North East, USA
Last seen: 4 months, 18 days
Re: javascript assistance [Re: Ythan]
    #5925497 - 08/02/06 01:55 PM (17 years, 5 months ago)

Hah, yeah drunken coding is quite a trip. Been there before.


--------------------
Immortal / Temporarily Retired
The OG Thread Killer
My mushroom hunting gallery


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: absolute zero]
    #5925499 - 08/02/06 01:55 PM (17 years, 5 months ago)

heh, yes like i said i dont know what im doing, i actually linked the wrong one, this is the one i meant: http://www.practiceboard.com/?4230261
and it is everything i could get out of the source code from this site.
i only know how to use HTML and maybe make an alert message popup with javascript but thats about it...anyway ill look around the site ythan linked and try to make sense of your advice and with some luck ill give up before im too pissed


Extras: Filter Print Post Top
Offlineabsolute zero
The Hero
Male User Gallery
Registered: 11/04/01
Posts: 796
Loc: 127.0.0.1
Last seen: 11 years, 8 months
Re: javascript assistance [Re: insectvhore]
    #5925536 - 08/02/06 02:06 PM (17 years, 5 months ago)

Very specifically, the problem you are having is that you grabbed your code from the page in which you enter the data to connect to the chat WITHOUT looking at the code on the page the applet is actually contained on... If you click the login for the chat, the server figures out what username you wanted, and logs you in and onto the proper channel...

The actual code for embedding the applet...

Code:
<applet code="IRCApplet.class" codebase="http://irc.shroomery.org/pjirc/" archive="irc-unsigned.jar,pixx.jar" width="640" height="400">
<param name="CABINETS" value="irc.cab,securedirc-unsigned.cab,pixx.cab">
<param name="nick" value="Guest">
<param name="alternatenick" value="Guest?">
<param name="name" value="Java User">
<param name="host" value="irc.shroomery.org">
<param name="port" value="9999">
<param name="gui" value="pixx">
<param name="quitmessage" value="Closed Browser">
<param name="useinfo" value="true">
<param name="command1" value="join #shroomery">
<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value=":) img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=":d img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">

<param name="style:smiley6" value=":o img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=":p img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value=";) img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value=":( img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value=":| img/OH-3.gif">
<param name="style:smiley15" value=":'( img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">

<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="false">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true">
<param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true">
<param name="pixx:helppage" value="/chat">
<param name="pixx:showabout" value="false">
<param name="pixx:showhelp" value="false">
<param name="pixx:color0" value="f7f7f7">
<param name="pixx:color1" value="000000">
<param name="pixx:color2" value="ebebeb">
<param name="pixx:color3" value="ebebeb">

<param name="pixx:color4" value="D1D7DC">
<param name="pixx:color5" value="DEE3E7">
<param name="pixx:color6" value="f7f7f7">
<param name="pixx:color7" value="f7f7f7">
<param name="pixx:color8" value="DAB2B2">
<param name="pixx:color9" value="888888">
<param name="pixx:color10" value="ebebeb">
<param name="pixx:color11" value="ebebeb">
<param name="pixx:color12" value="ebebeb">
<param name="pixx:color13" value="ebebeb">
<param name="pixx:color14" value="ebebeb">
<param name="pixx:color15" value="ebebeb">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<h1>Shroomery Chat</h1>

<p>
Sorry, but you need a Java 1.1.x enabled browser to use Shroomery Chat.</p>
</applet>



You'll have to modify the parameters to fit your specific circumstances... you should also put a copy of the applet on your own server, don't just link to the one here...



Hope this helps...


--------------------


Extras: Filter Print Post Top
Offlineabsolute zero
The Hero
Male User Gallery
Registered: 11/04/01
Posts: 796
Loc: 127.0.0.1
Last seen: 11 years, 8 months
Re: javascript assistance [Re: absolute zero]
    #5925552 - 08/02/06 02:11 PM (17 years, 5 months ago)

Just to make it easier:

http://www.practiceboard.com/?4231160


--------------------


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: absolute zero]
    #5925683 - 08/02/06 02:44 PM (17 years, 5 months ago)

oh thank you so much! :thumbup:


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: absolute zero]
    #5925980 - 08/02/06 04:30 PM (17 years, 5 months ago)

sorry to bother you more but when i use that code it works fine, but if i change the host port and channel i get

[16:28] Unable to connect : java.security.AccessControlException : access denied (java.net.SocketPermission irc.rizon.org resolve)

any suggestions would be very appreciated :smile:


Extras: Filter Print Post Top
OfflineYthanA
ᕕ( ᐛ )ᕗ
Male User Gallery

Registered: 08/08/97
Posts: 18,774
Loc: NY/MA/VT Borderlands Flag
Last seen: 8 hours, 10 minutes
Re: javascript assistance [Re: insectvhore]
    #5926006 - 08/02/06 04:40 PM (17 years, 5 months ago)

There are two issues. First, if you're using the applet from our server it's compiled for SSL on a specific port and won't work if you change to a server with a different setup. You can fix this by getting a clean copy of the PJIRC applet from their site and installing it on yoru server.

Second, if you want to connect to an IRC server that's not running on the same box as the Java client you will want to sign it, see this thread for instructions.

It's kind of a pain in the ass, we avoided the whole issue by running a web server on our IRC box and hosting the Java applet off that.

Hope this helps,

-Y


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: Ythan]
    #5926039 - 08/02/06 04:52 PM (17 years, 5 months ago)

oh ok, i have uploaded the applet from the pjirc site to his freewebs and im waiting for him to get me the proper link, i was just testing it using this server, so that could very well be the only problem,
thank a lot for helping, all i can give you in return is free cyber... :crazy2:


Extras: Filter Print Post Top
Offlineinsectvhore
lord of flies

Registered: 07/09/99
Posts: 1,233
Last seen: 7 months, 16 days
Re: javascript assistance [Re: insectvhore]
    #5926240 - 08/02/06 05:53 PM (17 years, 5 months ago)

off-topic a little, but fuck, ths is funny:


[18:25] * Guest (~Guest@1328406c.113ade0c.home.cgocable.net) has joined #shroomery
[18:27] <Guest> wtf
[18:27] <Guest> how did I get here
[18:27] <insectae> gtfo
[18:27] <Guest> i was browsing the forums
[18:27] <Guest> then I clicked the link about javascript assistance
[18:27] <Guest> by you!
[18:27] <Guest> insectae!
[18:27] <Pnutbot>
[18:28] <insectae> heh
[18:28] <Guest> YOU HACK ME??
[18:28] <insectae> i dragged you here?
[18:28] <Guest> get off my computer
[18:28] <insectae> yes i am 1ee7
[18:28] <Guest> close this
[18:28] <insectae> nyet
[18:28] <Guest> why not?
[18:28] <insectae> give me all your internets
[18:28] <Guest> no
[18:28] <Guest> get your own
[18:28] <insectae> i have no internets
[18:28] <Guest> buy them
[18:28] <Guest> sbc has a deal on
[18:28] <insectae> all your megahurtz are belong to me
[18:29] <Guest> free dsl for 3 months
[18:29] <Guest> if you buy a year
[18:29] <Guest> whats a megahurt
[18:29] <insectae> keep talking and youll find out!
[18:29] <Guest> CLOES THIS NOW
[18:29] <insectae> nyet!
[18:29] <ihadamonkey> hahaha
[18:29] <Guest> NOW
[18:29] <insectae> never
[18:29] <Guest> or I'll report you
[18:29] <ihadamonkey> close it yourself
[18:29] <insectae> you are here forever
[18:29] <insectae> report me to what?
[18:29] <Guest> fuck you
[18:29] <insectae> the internet police?
[18:29] <Guest> I'll jsut restart
[18:29] <insectae> im the seargent!
[18:29] <ihadamonkey> hahahaha
[18:29] <ihadamonkey> omfg
[18:30] <insectae> restart will not help you!
[18:30] <insectae> i have your internets
[18:30] <Guest> I'm restarting
[18:30] <Guest> then you better be gone
[18:30] <insectae> psh see if that heklps
[18:30] <insectae> i will be hiding
[18:30] <Guest> if you arnet, i'll report you to the fbi
[18:30] <Guest> for tampering
[18:30] <insectae> but i will not be gone
[18:30] * Guest (~Guest@1328406c.113ade0c.home.cgocable.net) Quit (Quit: Closed Browser)

les than three minutes later...

[18:33] * Guest (~Guest@1328406c.113ade0c.home.cgocable.net) has joined #shroomery
[18:33] <Guest> WTF
[18:33] <insectae> hah
[18:34] <insectae> owned
[18:34] <ihadamonkey> hahahaha
[18:34] <insectae> n00b
[18:34] <Guest> why are you here again
[18:34] <ihadamonkey> omg no way
[18:34] <insectae> i am in your fucking brain
[18:34] <insectae> now again
[18:34] <insectae> give me all your megahurtz

then my fucking connection died


on topic, i guess i must figure out that signing thing..:( the thawte link is no longer available though...i might just try a different server though, if theres any that you know will just cooperate easily itd be nice.


Extras: Filter Print Post Top
Jump to top Pages: 1

Shop: Kraken Kratom Red Vein Kratom   PhytoExtractum Maeng Da Thai Kratom Leaf Powder


Similar ThreadsPosterViewsRepliesLast post
* anyone here with javascript and php experience? kanglow 325 3 07/12/11 12:16 AM
by kanglow
* How to enable javascript on NoScript RonaldFuckingPaul 299 6 09/18/12 02:58 PM
by RonaldFuckingPaul
* Assisted suicide in Montana legalized.
( 1 2 3 4 5 all )
anyone420 7,360 98 12/08/08 10:55 AM
by anyone420
* Art Assistant Jobs (Graphic Design, Photography, etc.)? SprewellSleeve 103 1 08/08/17 09:54 PM
by Mush 4 Brains
* Would it be *that* douche to take an admin assistant job for 2-3 months?
( 1 2 all )
st1llnox 3,077 36 11/12/13 11:02 PM
by Enjoywho
* Assistant Manger Fired me...Need help rewriting, "Let me back letter"
( 1 2 all )
Sterben 921 28 12/18/15 04:24 PM
by Atreyu
* Assisted Suicide i8an8thsGF 866 16 10/04/06 08:29 PM
by i8an8thsGF
* The flat tire homosexual douchebag cop roadside assistance situation
( 1 2 3 4 ... 11 12 all )
ModestMouse 10,364 238 04/06/15 12:43 AM
by lowbrow

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Entire Staff
1,671 topic views. 1 members, 82 guests and 78 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.027 seconds spending 0.005 seconds on 12 queries.