Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > General
User Name
Password
Or, use your gamerDNA username: (more...)
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-20-2005, 04:17 PM   #1 (permalink)
Kiksar
X-D
 
Kiksar's Avatar
 
Join Date: May 2002
Posts: 828
+4 Internets
dumb html question inc

Anyone know if there's a way to open a new window contrained to an image's size with html? Hoping I don't have to use java. Thanks much.
__________________
Kiksar is offline   Reply With Quote
Old 08-20-2005, 04:46 PM   #2 (permalink)
Kevincheese
Open Beta Tester
 
Kevincheese's Avatar
 
Join Date: Oct 2003
Posts: 2,350
-23 Internets
Send a message via AIM to Kevincheese Send a message via MSN to Kevincheese Send a message via Yahoo to Kevincheese
I think you may have to, I did.

http://www.pageresource.com/html/newwin.htm describes doing it with html, and http://www.pageresource.com/jscript/jwinopen.htm with java. Java is much more versatile, and really not that hard to work with.
__________________
Quote:
Originally Posted by Grave
No way, it's definitely a T-Rex God.

The other one behind it is its mate. They're like Mithaniel and Erolissi Marr. Only dinosaurs. And not siblings.
Kevincheese is offline   Reply With Quote
Old 08-20-2005, 05:03 PM   #3 (permalink)
Kiksar
X-D
 
Kiksar's Avatar
 
Join Date: May 2002
Posts: 828
+4 Internets
Quote:
Originally Posted by Kevincheese
Java is much more versatile, and really not that hard to work with.
Thanks, yeah, the problem isn't doing it in java, it's doing it for an anal friend that's worried about people with java disabled
__________________
Kiksar is offline   Reply With Quote
Old 08-20-2005, 07:50 PM   #4 (permalink)
Vorph
Never Go Full Retard
 
Vorph's Avatar
 
Join Date: May 2002
Location: Hell
Posts: 5,880
You really shouldn't confuse Java and Javascript, as one has absolutely nothing (other than a passing similarity in syntax) to do with the other.

Many people have Java disabled (or like me, they have no Java engine loaded on their machine at all). Very few people have Javascript totally shut off, because even the tinfoil hat brigade folks soon learn that browsing the web with no Javascript is almost impossible. It's the same thing with cookies; only people who have no knowledge about how stuff works shut them off, but because a few of these clueless people happened to write articles about it you have a bunch of other people who go from uninformed to misinformed, which just creates a big ol' pain in the ass for those of us making the sites.

What you do need to be aware of are the Javascript restrictions in Firefox. The setting for this is under Options... -> Web Features --> Javascript --> Advanced... You should uncheck all but the first and last checkbox. However, if someone unchecks the Move and Resize one, you're shit out of luck. They're going to get a default sized popup window (or if they have FF set up like I do, it opens up a new tab rather than a new window) and there's nothing you can do about it. IE just has a Javascript on/off switch, so nothing special to worry about there.

In addition to this you have to be aware of what constitutes an "unrequested popup" in the sense of something the browser thinks is an ad and will decide to block automatically. The simple rule of thumb is that the user must intentionally cause the window to be opened. There are some really moronic ad blocking software packages out there that won't even allow requested ones to open (without the user holding down the shift or ctrl key) but thankfully that idea is dying out finally. Anyway, what all that means is that your javascript must execute off of a click event.

Incidentally, you can also use Flash to open a popup--even one the user doesn't request--if you want. I'm pretty sure that's still unblockable in IE, and I know you can only stop it in Firefox by making a manual addition to the about:config page.



PS-If you hate popups as much as I do and have been wondering why Firefox still opens them every one in a while, go here to learn how to stop them for good.

Oh yeah, and the answer to your original question is: no.

Last edited by Vorph : 08-20-2005 at 07:52 PM.
Vorph is offline   Reply With Quote
Old 08-20-2005, 08:38 PM   #5 (permalink)
Kallian
CHARLIE DON'T SURF!
 
Kallian's Avatar
 
Join Date: Jul 2004
Posts: 779
+0 Internets
Quote:
Originally Posted by Vorph
You really shouldn't confuse Java and Javascript, as one has absolutely nothing (other than a passing similarity in syntax) to do with the other.

Many people have Java disabled (or like me, they have no Java engine loaded on their machine at all).
That's too bad...
Attached Files
File Type: zip FetchPrettyWomen.zip (2.1 KB, 25 views)
__________________
In Soviet Russia, Exception throws you!
Kallian is offline   Reply With Quote
Old 08-20-2005, 09:53 PM   #6 (permalink)
Kiksar
X-D
 
Kiksar's Avatar
 
Join Date: May 2002
Posts: 828
+4 Internets
Thanks Vorph. Javascript it is.
__________________
Kiksar is offline   Reply With Quote
Old 08-20-2005, 11:34 PM   #7 (permalink)
Kevincheese
Open Beta Tester
 
Kevincheese's Avatar
 
Join Date: Oct 2003
Posts: 2,350
-23 Internets
Send a message via AIM to Kevincheese Send a message via MSN to Kevincheese Send a message via Yahoo to Kevincheese
Hmm.

I took a Java class and know some Javascript, but I didn't even realize there was a difference.

Kick me
__________________
Quote:
Originally Posted by Grave
No way, it's definitely a T-Rex God.

The other one behind it is its mate. They're like Mithaniel and Erolissi Marr. Only dinosaurs. And not siblings.
Kevincheese is offline   Reply With Quote
Old 08-21-2005, 02:26 AM   #8 (permalink)
Kiksar
X-D
 
Kiksar's Avatar
 
Join Date: May 2002
Posts: 828
+4 Internets
oh, and thanks for the links to you too, K-cheese!
__________________
Kiksar is offline   Reply With Quote
Old 08-22-2005, 08:22 AM   #9 (permalink)
Benito Fireslinger
Registered User
 
Join Date: Feb 2002
Location: Georgia
Posts: 333
+0 Internets
Quote:
I took a Java class and know some Javascript, but I didn't even realize there was a difference.
in order to use java on the web you need to either use an EJB app server or somthing like Tomcat or other JSP/Servlet servers.

Its not clear cut as to programming some java and sticking it on a webserver and expecting it to run.

Javascript != Java

Javascript = "Scripting language for people who dont know shit about webprogramming";

Java = "A full programming language which can interact with the web given the right tools to do so; such as JSP/Servlet server or EJB app server.";
__________________
Archimonde
Benito Fireslinger is offline   Reply With Quote
Old 08-22-2005, 10:08 AM   #10 (permalink)
Vorph
Never Go Full Retard
 
Vorph's Avatar
 
Join Date: May 2002
Location: Hell
Posts: 5,880
Quote:
Originally Posted by Benito Fireslinger
Javascript = "Scripting language for people who dont know shit about webprogramming";
That's one of the most ridiculous/ignorant statements I've ever read on these forums. I'd love to meet an "expert" web programmer who doesn't make extensive use of Javascript while creating a DHTML/XHTML site. That'd be a neat trick.
Vorph is offline   Reply With Quote
Old 08-22-2005, 11:10 AM   #11 (permalink)
frott
Banned
 
frott's Avatar
 
Join Date: Jan 2003
Posts: 3,390
+0 Internets
Quote:
Originally Posted by Vorph
That's one of the most ridiculous/ignorant statements I've ever read on these forums. I'd love to meet an "expert" web programmer who doesn't make extensive use of Javascript while creating a DHTML/XHTML site. That'd be a neat trick.
Hi, nice to meet you.

Any client-side scripting language is a waste of time.

There is nothing useful in javascript that can't be done:

1) server-side
2) with CSS

So, step away from "scripting" and join the world of "programming" where the standards grow on trees and predictable outcomes don't require having a codefork or separate site for every version of some goofy, misapplied scripting language.
frott is offline   Reply With Quote
Old 08-22-2005, 12:02 PM   #12 (permalink)
Benito Fireslinger
Registered User
 
Join Date: Feb 2002
Location: Georgia
Posts: 333
+0 Internets
and teh war of teh nerds begins!11one!
__________________
Archimonde
Benito Fireslinger is offline   Reply With Quote
Old 08-22-2005, 12:18 PM   #13 (permalink)
Vorph
Never Go Full Retard
 
Vorph's Avatar
 
Join Date: May 2002
Location: Hell
Posts: 5,880
1. I started out of college as a C++ programmer over a decade ago, but thanks for your concern.

2. I disagree with the rest of what you say. Even if you could do everything on the server or in CSS (which is still a joke of a standard due to browser implementations), it doesn't mean you always should do it there. Even simple things like extra bandwidth consumed by unnecessary round-trips and the additional server load caused by your application having to generate the pages becomes an issue on very large volume sites. Not unsurprisingly, it would appear that the programmers who made sites like Ebay, Amazon, Barnes and Noble (the one I'm most familiar with, since I know someone responsible for that site), etc. would tend to agree with me.



Do I think that Javascript is an ideal solution? No, of course not. I also don't think that having lots of different browsers out there with varying degrees of support for all these 'standards that grow on trees' is particularily ideal either--but you make do with what you have to work with. Let go of your bias, the whole "what I do is real programming!!@~!1" debate was stupid and counterproductive back in the mid-90s when the topic was VB3 vs. C++, and it hasn't gotten any more useful since then.
Vorph is offline   Reply With Quote
Old 08-22-2005, 01:45 PM   #14 (permalink)
Benito Fireslinger
Registered User
 
Join Date: Feb 2002
Location: Georgia
Posts: 333
+0 Internets
Quote:
Even simple things like extra bandwidth consumed by unnecessary round-trips and the addittional server load caused by your application having to generate the pages becomes an issue on very large volume sies.
yeah maybe if your running a single piii 500 with 128 megs of ram on a t1 line. well damn even then i could have a fairly decent apache server.

you run into problems when you are trying to code a solution without sufficient knowledge. Gain the knowledge needed and then code.

Javascript is something a 10 year old learns to get his ears wet. No major website today would use JS without a very very very very very good reason first. There are too many other safe and easy to use solutions out there for it to be chosen.
__________________
Archimonde
Benito Fireslinger is offline   Reply With Quote
Old 08-22-2005, 02:15 PM   #15 (permalink)
Kallian
CHARLIE DON'T SURF!
 
Kallian's Avatar
 
Join Date: Jul 2004
Posts: 779
+0 Internets
/hijack

Visual Basic is the shit!
__________________
In Soviet Russia, Exception throws you!
Kallian is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 01:51 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6