Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2008, 03:54 AM
Member
 
Join Date: Apr 2008
Posts: 2
mattonitto is on a distinguished road
Noob question- easy
This should be super simple, at least I think.

Here's the goal. Clean window (no scroll bars) same size as image(link) in the center of the browser.

Linking through the image is not a problem, resizing the window is not a problem (in itself.)

Here we go: The window moves to the top left of the browser with scroll bars for both the horizontal and vertical, even though "window.resizeTo" is the same dimensions as the image. As far as moving goes the best I could come up with are "moveTo" and "moveBy", but those both run off coordinates. Is there an easier way to center?

Throw me a freaking bone here.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-20-2008, 05:06 AM
Member
 
Join Date: Apr 2008
Posts: 2
mattonitto is on a distinguished road
Anything? At least maybe a direction to point me in?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 01:00 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
Is this a Java question or a JavaScript question? It sounds like JavaScript to me..

In which case, you should find a JavaScript forum. Java and JavaScript are two different languages.
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 03:07 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Not clear that question me too. Seems more like a JavaScript, moveTo confusing me.

My friend mattonitto, provide more details. At least a code segment may help to all of us . As Don says, Java and JavaScript are totally different.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-21-2008, 08:38 PM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by mattonitto View Post
This should be super simple, at least I think.
Then why are you having trouble?

Quote:
Here we go: The window moves to the top left of the browser with scroll bars for both the horizontal and vertical, even though "window.resizeTo" is the same dimensions as the image. As far as moving goes the best I could come up with are "moveTo" and "moveBy", but those both run off coordinates. Is there an easier way to center?

Throw me a freaking bone here.
I'm not sure where to throw the bone at you.

If the members here had a nickel for every time someone came here with a Javascript question we'd all be super rich.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-22-2008, 03:51 AM
Member
 
Join Date: Apr 2008
Posts: 28
rico16135 is on a distinguished road
they should really change the java in javascript to something else, it confuses people
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 04-22-2008, 04:14 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by rico16135 View Post
they should really change the java in javascript to something else, it confuses people
Agreed. This is has been one of the worst names in the biz.... unfortunately, Sun doesn't have a say in the matter, if they did it wouldn't have been named the way it was.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 06-13-2008, 02:26 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 684
Nicholas Jordan is on a distinguished road
Java v JavaScript - I got my first one a few days ago. In Java, there shoud be some way to get screen size and so on. If it is Java, they have sample code in the tutorials that will center();//

It is remarkably deep to dig into everything well enough to actually get enough information to proxy for the LayoutManagers.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[noob]Problem with TOS .bat fred33 Advanced Java 0 03-19-2008 04:04 PM
help me with a realy easy program (substring) michcio New To Java 7 01-27-2008 02:41 AM
Ah! Help a Java Noob Snejana New To Java 4 01-24-2008 05:52 AM
Noob nokomis Introductions 1 11-09-2007 11:42 PM
Easy question JavaNoob New To Java 10 08-04-2007 12:28 AM


All times are GMT +3. The time now is 10:47 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org