HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Problem with Pop-ups..URGENT..
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 1:32 pm     Problem with Pop-ups..URGENT.. Reply with quote

Hi I have been working on this for sometime, but the code works in Mozilla Firefox but when i try it with Internet Explorer, after clicking the link, there is no pop-up but the website changes and (the material that is supposed to be in a pop-up window) goes in a full page website..Here is the code below:

<a href="chat.html" onClick="window.open('chat.html','CyberSpace Chatroom','width=565,height=317,resizeable=no');return false">Chatroom</a>

This code works in Mozilla Firefox for me (a pop-up window comes) but not in Internet Explorer, can someone fix this code so it works in both or tell me what the problem is.. Thankyou
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Mon May 16, 2005 3:02 pm     Reply with quote

Try

Code:

<a href=# onClick="window.open('chat.html','CyberSpaceChatroom','width=565,height=317,resizeable=no');return false">Chatroom</a>


First thing to notice is href=# (stops internet explorer navigating to another page).

Second thing to notice is CyberspaceChatroom has no spaces.

Works for me
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 3:07 pm     Reply with quote

Hmm grreaat.. it works now.. Thanx.. but another issue has come up.. when i go to the link in Mozilla.. the chatroom is in black with all the extra features (the way it is supposed to be) but with internet explorer, the chatroom is in white and the features are not present.. Can you help me with this?
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Mon May 16, 2005 3:26 pm     Reply with quote

Have you actually got a link for this. I made my own chat.html to test it so I can't see what you have got.

If not paste the code you have for chat.html. I always thought Internet Explorer was more forgiving than Firefox but I guess I'm being proved wrong tonight. lol
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 3:28 pm     Reply with quote

Haha.. well i took a pic and it is hosted here:

http://img172.echo.cx/my.php?image=problem2bf.jpg

(The correct one is the Mozilla one..and the other one is the messed up one in Internet Explorer)
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Mon May 16, 2005 3:35 pm     Reply with quote

Having had a little play here without seeing your code it has to be your chat.html that has the problem.

Is there anything that sets the background to black within chat.html for example your body tag

Code:
<body bgcolor=#000000>


or in your style sheet

Code:

<style>
body
{ background: black; }
</style>

If I add either of these to my version of chat.html then both firefox and internet explorer load the window with a black background
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 3:42 pm     Reply with quote

Hey sorry but this is my code in chat.html :

<base href="http://www.freejavachat.com/themes/colors/">

<applet archive="http://www.freejavachat.com/java/cr.zip"
codebase="http://www.freejavachat.com/java/"
name=cr
code="ConferenceRoom.class"
width=550 height=350>

<param name=cabbase value="http://www.freejavachat.com/java/cr.cab">
<param name=nick value="">
<param name=ssp value="/params/colors.prm">
<param name="floatimmediately" value="false">
<param name="joinsound" value="hello.au">
<param name="showbuttonpanel" value="false">
<param name="opimage" value="red.gif">
<param name="noload" value="true">
<param name=channel value="#Cyber_Space">
<param name="nosettings" value="true">
<param name="timestamp" value="true">
This application requires Java suport.<br>
This server also available via IRC at:<br>
<a href="irc://irc.ircstorm.net/">irc://irc.ircstorm.net/</a>
</applet>

(I added ur codes, but that did not help)(the main part is still white, but the border around is black.. so basically.. it is still the same as in the pic)
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Mon May 16, 2005 3:52 pm     Reply with quote

Code:

<html>
<head>
</head>
<body bgcolor=#000000>
<base href="http://www.freejavachat.com/themes/colors/">

<applet archive="http://www.freejavachat.com/java/cr.zip"
codebase="http://www.freejavachat.com/java/"
name=cr
code="ConferenceRoom.class"
width=550 height=350>

<param name=cabbase value="http://www.freejavachat.com/java/cr.cab">
<param name=nick value="">
<param name=ssp value="/params/colors.prm">
<param name="floatimmediately" value="false">
<param name="joinsound" value="hello.au">
<param name="showbuttonpanel" value="false">
<param name="opimage" value="red.gif">
<param name="noload" value="true">
<param name=channel value="#Cyber_Space">
<param name="nosettings" value="true">
<param name="timestamp" value="true">
This application requires Java suport.<br>
This server also available via IRC at:<br>
<a href="irc://irc.ircstorm.net/">irc://irc.ircstorm.net/</a>
</applet>

</body>
</html>


Here is my code for chat.html (I took the bit you posted and slotted it into mine).

I haven't added a title or anything like that but when I run it in Internet Explorer it shows up in black.

Let me know how you get on.
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 3:57 pm     Reply with quote

Hey i used ur code and tried it out.. but still the same prob.. this is how it looks now in internet explorer:

http://img102.echo.cx/my.php?image=problem7bj.jpg

(Only the border changed to black)
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Mon May 16, 2005 4:04 pm     Reply with quote

This is odd because the only part in IE when I tried your code not in black was the border.

The java chat client loaded perfectly fine in black which is defined by the settings in the code you added. Not sure why it would work for me and half work for you (ie firefox).

Degsy if your there can you shed any light?
Bart



Joined: 16 May 2005
Posts: 6

PostPosted: Mon May 16, 2005 5:14 pm     Reply with quote

Hmm..that is weird..what version of Internet Explorer do you have? Mine is versionL 6.0.2900.2180 ...
gary.newelluk



Joined: 12 May 2005
Posts: 552
Location: Inverurie, Scotland

PostPosted: Tue May 17, 2005 8:29 am     Reply with quote

I'm on 6.0.2800.1106CO

I can't believe that our versions are that different.

We need someone else to give it a go to see what they get.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial