Google Answers Logo
View Question
 
Q: FireFox/ Netscape Website coding problem ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: FireFox/ Netscape Website coding problem
Category: Computers > Programming
Asked by: prochartscanbob-ga
List Price: $30.00
Posted: 01 Sep 2005 15:17 PDT
Expires: 01 Oct 2005 15:17 PDT
Question ID: 563267
Hello. Have a website that we recently added some new material
to. This particular problem is with a popup table that opens inside of
one of our member pages..This table has an image frame around it..The problem
is that the bottom of the table won't set, and the bottom of the image
has a mind of it's own as well... The table bottom and the image (frame bottom)
float around when trying to size this window...My coder is unfamiliar
with this sort of problem...He's not a
web guy and his patience has run out with this problem. Everything
works fine on IE but FF has issues.
Please see link and clik new alert bar when the link opens.you can see
the problems by comparing between FF and IE..(sizing and dragging and such)
http://www.prochartalert.com/alert/index_pop_up_new.php
Thank you for taking the time to look at my question. Appreciate your
help. Please furnish any needed code and placement of such.
Answer  
Subject: Re: FireFox/ Netscape Website coding problem
Answered By: palitoy-ga on 02 Sep 2005 05:24 PDT
Rated:5 out of 5 stars
 
Hello prochartscanbob-ga

Thank-you for your question.

The problem lies in the javascript function you are using to open up
the window.  Ideally each of the window attributes should be enclosed
in "" characters.

The new code for the javascript function in your index_pop_up_new.php
page should be:

<script language="JavaScript">
function popUp(URL) {
 day = new Date();
 id = day.getTime();
 ScreenX = '400';
 ScreenY = '100';          
 window.open (URL, id,
'titlebar=0,toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=1,width="470",height="103",left='
+ ScreenX + ',top=' + ScreenY);
}
</script>

In the above example only the width and height attributes have been
enclosed in "".  By doing this the window opens at a sensible size and
can be resized keeping the table headings visible.  When resizing the
window the page is only completely refreshed when you let go of the
mouse button.

Let me know if you require any further information on this subject by
asking for clarification.

Request for Answer Clarification by prochartscanbob-ga on 03 Sep 2005 09:34 PDT
sorry..that code didn't work...not only did it not help...it seems to
have messed up the IE application...any input would be appreciated..
thanks. Bob

Clarification of Answer by palitoy-ga on 03 Sep 2005 09:43 PDT
How did it not work?  The code seems to work here...

Have you considered using an iframe to hold the data on the
display_alerts_frames.php page?

http://www.w3schools.com/tags/tag_iframe.asp
http://www.htmlhelp.com/reference/html40/special/iframe.html

Clarification of Answer by palitoy-ga on 03 Sep 2005 11:06 PDT
I have just triple checked here and I cannot duplicate any errors.  

There does appear to be some sort of error on the page that pulls the
numbers out of your database as IE sometimes says there is a
javascript error but this does not appear to be a problem with the
original window size question.

Additionally the prevent right-click code you have used to stop people
right-clicking on the page also does not work totally in Firefox.  I
get an error message saying "This function is disabled" but only if I
click on the frame containing the table title.  It also does not
prevent me from using my right-click menu.

The only thing I would change in my solution is perhaps removing the
"" marks from around the width attribute as this makes the window in
Firefox too big.

Request for Answer Clarification by prochartscanbob-ga on 03 Sep 2005 11:23 PDT
thanks for info palitoy but it's not opening correctly on any browser i can access.
and i think i've lost my coder now.
do you realize that popup is suppossed to open (only know inches) 5
1/4" wide and 1 1/2" tall that's with 1024x768 resolution...we had it
opening perfectly sized in IE before the code change...In FF it would
open with bottom of the image floating and the bottom of table
floating up like a wondow shade that wouldn't stay down..
i wish google let people correspond directly..i need help here...thanks

Clarification of Answer by palitoy-ga on 03 Sep 2005 12:55 PDT
Unfortunately we are not allowed direct contact with customers,
sometimes this can make things a little difficult but most things can
be sorted out by these responses.

From your question, it wasn't clear that the window had to open a
specific size as you mentioned resizing the window.  My solution
ensures that the Firefox and IE windows open so that you can see the
detail of the page rather than it being obscured.

I believe the problem lies with the attributes of the window.open
command.  Some of these are IE or Mozilla/Firefox only.  It may be
that a different window.open command needs to be used for each browser
type.  There is an excellent page on this here:
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html

Unfortunately I do not have much more time available to work on this
and this could be a lot more work depending on how much more
troubleshooting is involved.
http://answers.google.com/answers/pricing.html

Request for Answer Clarification by prochartscanbob-ga on 03 Sep 2005 13:20 PDT
cool...so long story short..your answer didn't work...that's ok keep
the dough..appreciate your time..wasn't looking for a free ride..just
don't know how to get in touch with you...I wih google would let
people hire people thru this setup.i'll put it out to a
freelancer....take care....

Clarification of Answer by palitoy-ga on 03 Sep 2005 13:36 PDT
I'm sorry I haven't been able to answer your question to your
satisfaction this time.  This answer may be of some use to you in
securing a freelancer:
http://answers.google.com/answers/threadview?id=562515

Request for Answer Clarification by prochartscanbob-ga on 03 Sep 2005 19:18 PDT
I don't see how that answer petains here pal...i showed you a link and
asked you compare IE to FF...you are the one that didn't catch that it
was a finishes size on IE...I have over 200K in this project and have
never squacked about any charges from anyone...It was question of the
different code need to satify FF as compared to IE..No need to get
cute because your answer didn't work..read my question over and tell
me where I went wrong presenting it..It won't do any good to look at
the difference now...My coder set the code that you furnished and has
left me with bigger problem..Insulted that I would seek advise
elsewhere...I'll learn how to talk to you guys someday...Thank You...

Clarification of Answer by palitoy-ga on 04 Sep 2005 00:41 PDT
In your previous clarifcation you stated that you were going to "put
it out to a freelancer", I was only trying to be helpful by giving you
some options as to where to locate a freelance coder.

Once again, I can only apologise.
prochartscanbob-ga rated this answer:5 out of 5 stars
thank you..looks like you know what you are talking about..gonna go
with it...will let you know if there is a problem

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy