Google Answers Logo
View Question
 
Q: Javascript - how do I make these functions not try to download any gif ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Javascript - how do I make these functions not try to download any gif
Category: Computers > Programming
Asked by: steve234-ga
List Price: $35.00
Posted: 10 Aug 2003 16:18 PDT
Expires: 09 Sep 2003 16:18 PDT
Question ID: 242284
I intend to use the pop-ups found here on my web site:
http://www.thebatteryshoppe.com/TestDir/AllPopUps7.html
Either/Or Question: 
(A) How do I make these pop-ups not attempt to download any of the 4
gifs (min, max, resize and close) used in the upper right hand corner.
 I don't care if the functionality is gone with the gifs. OR
(B) How do I make these pop-ups always reload by refresh so they are
100% dependable in my system.  They work perfectly from the server
with IE6, MSN8, and NS but not with my computer(I use Win98SE IE5.5
Norton, a P4 with 512ram, on an MSI motherboard)  I don't know where
the problem is, but from my computer as source they work perfectly and
they work perfectly from the server using the browsers above, but they
hang-up when trying to refresh the web page server from my computer
system.  And if it happens to my system, its sure to also happen to
other web site visitors.  I've reloaded Win98SE from scratch and IE5.5
so I know its not a corrupt file at my end... its just a bug in
Microslop.  I've tried a little script that kept putting the gifs in
cache, but it made no difference.  The status bar usually never
reaches done - just 4 items remaining.  And if I stop it, the gifs
just aren't in the pop-up.
If you choose to answer question (B) above and not (A), due to the
nature of this problem, and the testing of the solution on my PC (if
it won't fail on yours) I don't know how payment works - this is only
the second time that I've posted a question here.  See my other
Javascript question above.  These pop-ups are a little different
because they are supposed to be immune to pop-up blockers.
Thank you.
Steve

Request for Question Clarification by joseleon-ga on 10 Aug 2003 23:18 PDT
Hello:
  I have tried to answer the question, but it seems the code you use
for PopUps is encripted/obfuscated:

http://www.thebatteryshoppe.com/TestDir/PopOver.js

  So to answer the question it would be nice to provide the original
source code. Is this possible?

Regards.

Clarification of Question by steve234-ga on 11 Aug 2003 02:19 PDT
hi,
I wish I could supply the original source code, but these pop-ups were
generated by a pop-up generator and unfortunately the technical
support from the company for the past couple weeks since I bought the
product so far has been zero.  The only documentation they had was two
sentences saying where to copy and paste what code.  The only code and
information I have is what is on that page.  I had another post prior
to this one asking how to close these pop-ups with a link and not
close the entire web page.  Someone came up with the answer and you
can see that corrected code at:

http://www.thebatteryshoppe.com/TestDir/AllPopUps8-3.html

I was also just told that these are not really "pop-ups" but only look
and act like pop-ups, but that they probably use a div function to put
the text on the page, and thats why pop-up blockers can't block them.

I'm not a programmer (other than html) so I'm sorry if my reply was
not very helpful.

Thank you for your effort and keep me informed.

Steve
Answer  
Subject: Re: Javascript - how do I make these functions not try to download any gif
Answered By: joseleon-ga on 11 Aug 2003 04:08 PDT
Rated:5 out of 5 stars
 
Hello:
  I have decoded the JavaScript code for the popups and I have
modified it a bit to not show the close button. Also, I have modified
your HTML page to create non-resizable popup windows, this way, none
of the maximize, minimize, resize gifs are shown. You can get this
behaviour by calling the popup function setting isresize to false:
  
new popUp(360 , 50 , 352 , 408 , "popoverID2" , .... , false , true ,
false , false );

The fourth parameter, beginning from the end controls whether the
popup is resizable or not, I have changed it to false.

I have worked only in the popup window is shown when you wait 7
seconds after load the page, the rest of popups are untouched.

Please, download this file, it contains the Javascript and HTML code:

http://www.xpde.com/ans2.zip

I can't reproduce the problem you say you get when refreshing, try it
now without .gif images and tell me if it still happens, I will work
on this matter until you get satisfactory results, so don't hesitate
to request for any clarification.

Regards.

Request for Answer Clarification by steve234-ga on 11 Aug 2003 17:27 PDT
hi,
Great job!  I put your results in a different directory:

http://www.thebatteryshoppe.com/TestDir2/AllPopUps7.html

Use this for the latest versions of the code.  It took me awhile to
get back to you because I found that if the resize function in every
pop-up wasn't set to false, then the program would still try and
download the gifs, frequently locking up.  After setting them all to
false, there is no more hang-up on refresh. :)

I corrected the "close this box" link at the bottom of all the
pop-ups, so at least they can be closed now.

One minor question, before we conclude. I still like the idea of a
close link in the top right corner.  See how I did it in the OEM
pop-up (and unlike the gif links, it always appears without lock-up
and works too).  How do I properly flush-right the alignment of that
link?  Different browser view settings makes it appear in different
locations on that line or not appear at all.  I think it has to do
with the function in the js file.  I tried X's set to the same
background color (definitely not the pro way), and putting it in a
sub-table there in the argument line may work ok for "OEM" but it cuts
off the bottom of letters like "p" and "y".  Any suggestions?

Thank you.

Steve

Clarification of Answer by joseleon-ga on 12 Aug 2003 00:25 PDT
Hello:
  I have changed the PopOver.js script to add a close link on the
right top corner which closes the window, you can download it here:

http://www.xpde.com/PopOver.zip

Also a extra recommendation, in the AllPopUps7.html, the windows
contain a link to close the window this way:

<a href=\"javascript:window.close()\"

Which is no good because will close the entire window in most
browsers, you must change it to:

<a href=\"javascript:hidebox('popoverID1')\"

To close just the popup window, where popoverID1 is the ID of the box
you want to close.

I hope it helps ;-)

Regards.

Request for Answer Clarification by steve234-ga on 13 Aug 2003 16:10 PDT
Yes, great!  That is exactly what I was looking for - a close link
with no gifs to lock-up on download.

(Sorry I did not reply sooner to you, but twice I emailed
google-answers and twice they sent me a email reply saying the system
was down with technical difficulties.  I can include a copy of their
email if it matters.)

Your new .js file is here. Where can I find that link in the .js code
so I can set its font style, color and background color?
 
http://www.thebatteryshoppe.com/TestDir2/AllPopUps7.html 
 
I'm only concerned with the "OEM" pop-up right now.  Once that's done,
I can conclude this and copy the code for the other pop-up function
links in my own time.

Thank you again.

Steve

Request for Answer Clarification by steve234-ga on 13 Aug 2003 16:16 PDT
Hi,

Never mind that last post, unless you want to elaborate any on it, but
I think I figured it out... now if only I can figure out how to
conclude payment.

Am I allowed to ask for an email for future direct consultation jobs? 
My email is sp234@hotmail.com.  (Am I allowed to say that?)

Thank you, you've been very helpful.

Thank you again.

Steve

Clarification of Answer by joseleon-ga on 15 Aug 2003 12:11 PDT
Hello:
  Thanks for your rating and for your comments, unfortunately we are
not allowed to contact customers outside Google Answers, in any case,
you can post a new question and use For joseleon-ga only in the
subject if you want me to answer such question.

Regards and thanks again.

Request for Answer Clarification by steve234-ga on 06 Oct 2003 21:16 PDT
hi, I've posted another question for you, joseleon, under the name of
stevep234, but I don't know how to let you know.  Hopefully you'll get
this post.
Thanks.
Steve

Clarification of Answer by joseleon-ga on 07 Oct 2003 01:35 PDT
Hello, steve234:

  I have seen your new question, I'm going to look at it and if I
can't do what you need, I will let you know so other researchers can
work on it. Thanks a lot to request my services again ;-)

Regards.
steve234-ga rated this answer:5 out of 5 stars
All questions and responses were very quick and accurate.  All
questions were answered completely and programming code worked exactly
as requested.  I would recommend this researcher without hesitation
and I would like to request his services again in the future.
Thank you. 
Steve

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