php forum
php mysql forum
php mysql smarty
 
Topic Options
#109929 - 11/02/04 10:01 PM JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Hi, I have a small problem. I have two mods that uses a Java applet, but starting a few days back they dont work anymore. I tried everything but I just cant figure it out. The small windows open but blank and another regulaar window opens on top.

I dont think the problem is in my scripts, didnt touch them, it has to be something in the browser or around that because I havent change anaything in this code:

Code:
 <script language="JavaScript"> 
function PopupWindow(win) { 
PopupWin=window.open(win,"PopupWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=425,height=500"); PopupWin.window.focus()
} 
</script> 
nor in the scripts that call it.

if you need to see this, please go to http://romanianational.com/cgi-bin/ultimatebb.cgi and click on the the bold links ( chat and citate):

lista membrilor | statistici | calendar | chat | mi | jocuri | galeria foto | e-card | citate | forum home


anybody willing to give me some suggestions?

thanks in advance.

Felix

Top
#109930 - 11/02/04 10:24 PM Re: JAVA question
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
it says:

"Nu esti conectat! Trebuie sa fi inregistrat sa ai acces la functia asta.
Conecteaza sau Inregistreaza"

open a test account, so we can look at it...
_________________________
one bytecode to rule them all

Top
#109931 - 11/03/04 11:27 PM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Burak, it's okay. I took the SP2 out, and all my headaches stopped, it was that that creeated me problems, not only here, all over the place.
I recommand you guys dont accept it as an upgrade for win XP! it is a pain in the neck !

sorry about that, I forgot you need to be registered, however the testing account is Test and the same for the pass.

thank you very muck

AKA Teshekur ederym wink

Felix

Top
#109932 - 11/04/04 01:29 AM Re: JAVA question
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I've been running WinXP SP2 since it was in beta on 6 machines and have yet to have any real issues...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#109933 - 11/04/04 06:54 AM Re: JAVA question
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
Quote:
Originally posted by Felix 10:
AKA Teshekur ederym wink


I didn't do anything but, bir &#351;ey de&#287;il smile

btw, I'm also using XP with sp2, but mine is SP2-Bundled XP. I didn't install SP2, it was already in the system smile and I didn't experience any problem so far...
_________________________
one bytecode to rule them all

Top
#109934 - 11/04/04 07:40 AM Re: JAVA question
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
List (on-site):
BlueFlame; WinXP Pro SP2; upgraded to SP2 from SP1 (SP1 was upgrade from original XP Pro).

Lappy; WinXP Pro SP2; upgraded to SP2 from SP1 (SP1 was upgrade from original XP Pro).

Laptop; WinXP Pro SP2; upgraded to SP2 from SP1 (SP1 was upgrade from original XP Pro).

Carolyns; WinXP Pro SP2; upgraded to SP2 from SP1 (SP1 was upgrade from original XP Pro).

Work; WinXP Pro SP2; upgraded to SP2 from SP1 (SP1 was upgrade from original XP Pro).

StarGate; WinXP Pro SP2; Installed from SlipLined SP2 CD
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#109935 - 11/04/04 07:54 AM Re: JAVA question
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Why would a server-side Windows install effect a client-side javascript execution?

Code:
<a href="http://www.romanianational.com/shoutbox1.html"
 target="shoutbox" onClick="window.open('','shoutbox','width=450,height=500,scrollbars=no')" title="chat">chat</a>
Those links don't use the function you specified

Code:
<a href="http://www.romanianational.com/shoutbox1.html"
 target="_blank" onClick="window.open('http://www.romanianational.com/shoutbox1.html'
,'shoutbox','width=450,height=500,scrollbars=no';) return false;" title="chat">chat</a>
should work better for you

Top
#109936 - 11/06/04 11:26 PM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto

Top
#109937 - 11/06/04 11:52 PM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Quote:
Originally posted by Ian Spence:

Why would a server-side Windows install effect a client-side javascript execution?

Those links don't use the function you specified



They do. I have a few applications that work with that Java popup, therefore I planted this code in the header:

Code:
 <script language="JavaScript"> 
function PopupWindow(win) { 
PopupWin=window.open(win,"PopupWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=425,height=500"); PopupWin.window.focus()
} 
</script>


&nbsp; 
and I call that from the public_common.pl with something like this:

Code:
 # Chat
	push(@items, qq(<a href="http://www.romanianational.com/shoutbox1.html" target="shoutbox" onClick="window.open('','shoutbox','width=450,height=500,scrollbars=no')" title="chat">chat</a>)); 

# Citate
	push(@items, qq(<a href="http://romanianational.com/cgi-bin/quotes.pl" target="quotes" onClick="window.open('','quotes','scrollbars,width=450,height=500')" title="Citatul Zilei">citate</a>));
      #
I think it is much easier this way.

Why would your code work better? please explain.


As far as the SP2 is concerned....trust me, the minute I uninstalled it fixed the problem.
Cant blame anything else it occured just aftere I upgraded and I have a pretty good SYSTEM .

Thanks you,
Felix

Top
#109938 - 11/07/04 11:45 AM Re: JAVA question
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
you never called that function, so you never used it.

my way tells it what to open in the window, your's tells it to open a blank page

Top
#109939 - 11/07/04 08:22 PM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
shot! you know, you're right. this:

Code:
 <script language="JavaScript"> function PopupWindow(win) { PopupWin=window.open(win,"PopupWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=425,height=500"); PopupWin.window.focus()} </script> 
is useless!. so I took it out of the footer. I would use your code but it gives me an error on the summary page and also it opens a large regular page. I'd rather use a smaller window.
what is wrong?

thanks

smile

Top
#109940 - 11/07/04 08:57 PM Re: JAVA question
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
the error messages are related to the newfader
the size can be changed via the width= and height= parameters

Top
#109941 - 11/09/04 12:37 AM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Yes, I know to change the size. Your script shows width=425,height=500 but I am not getting this. I get a full window. Can you fix it?

thank you

Top
#109942 - 11/18/04 02:29 AM Re: JAVA question
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 394
Loc: Toronto
Quote:
Originally posted by Ian Spence:

you never called that function, so you never used it.

my way tells it what to open in the window, your's tells it to open a blank page



Ian, I found out! I completelly forgot.

So,
No1. I have this is the Header:
Code:
 <script language="JavaScript"> 
function PopupWindow(win) { 
PopupWin=window.open(win,"PopupWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=425,height=500"); PopupWin.window.focus()
} 
</script> 
No.2: I have this in public_common.pl

Code:
 <a href="javascript:PopupWindow('$vars_config{NonCGIURL}/hex_codes.html');"><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_hex}" border="0" align="center"/></a> 
which is a link to a small hack I did called Hex Codes, with a style button in CP and works very well.
I want to do it your way and get rid of my code from the Header but using the code bellow I still get the browser window along with the small one. Can you have a look at this:

Code:
 <a href="$vars_config{NonCGIURL}/hex_codes.html" target="hex_code" onClick="window.open('$vars_config{NonCGIURL}/hex_codes.html','hex_codes','width=450,height=500,scrollbars=yes')" ><img src="$vars_config{NonCGIURL}/$vars_style{ubbcode_hex}" border="0" align="center" /></a> 
what is wrong with it? where do I insert the "return false" tag?

Thank you,
Felix

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks