Reply to Re: showing larger images in pop up window.

Your name:

Reply:


Posted by gil on 01/15/06 03:45

Thanks for the sound thrashing. I'm sure that I needed it for asking a
question where I don't know the answer.

Also please forgive me for attempting to duplicate a feature which is
already incorporated into the window frame. After all, we only need ONE
way of doing things, right?

Thirdly, I know that unscrupulous programmers can wreak havoc with code
that can be embedded into 'innocent' activities. But like the majority
of people today, I don't refrain from using, or doing something I like
or want to do, just because someone might try to harm me. I take steps
to protect myself and my property. If I hid away, or stopped doing
things because I might get hurt, then the 'evildoers' would have already
won their terror campaign.

I'm sorry that you are frightened; but not everyone else feels the way
you do.

Besides, my site is only for a small group of people in my immediate
neighborhood who know and trust me.

Seriously though, I have seen an accumulation of open popups that stayed
open, but disappeared BELOW the window with focus because the user did
not close the window, but instead clicked on the main page to view
another image. I was thinking of using a code snippet which would close
the popup whenever the popup lost focus 'onblur', or when the user
clicked 'onclick' anywhere on the page.

My problem was how to get the popup to open with the correct enlarged
photo and caption, and have the closing script added to the popup. I was
wondering if it could be done from the main page HTML.

Is it possible to pass the parameters for an adjustable sized popup
which points to a larger image and caption, and can also contain the
code necessary to close the window when the focus is lost? If so, how?

At approximately 2006/01/14 20:12, Gérard Talbot typed these characters:
> gil wrote :
>
>> I would like to have the user click on a thumb in a photo gallery to
>> view a larger image with a single line of text below it, AND a button
>> which would close the window.
>
>
> Why would you want to provide another button, an extra one on top of the
> already provided one on the titlebar? Why duplicate the standard,
> default and normal functionality of the browser with javascript? What's
> wrong with the already present, visible and UI close button in the
> titlebar? Why should an user/visitor visiting your site trust more your
> button than his own browser application and/or his own browser close
> button? In a security article, Microsoft has acknowledged this issue as
> a security issue. Anyone can place any kind of javascript code behind
> any button.
>
> For above 99% of users on the web, if they have a clear choice between
> trusting a site and trusting their browser functionality, they will
> choose to trust their own browser all the time. They will feel that this
> is a safer choice and a more normal choice.
>
>
>> Is there any way this can be done inline with <a ref...>? Or is there
>> a better option?.
>
>
> Why would you want to use a link to close a window? Would creating a
> button to actually load another page, to link to somewhere and loading a
> web address behind a button make some sense to you?
>
> Why not create an java applet or a flash movie which would close the
> window then?
>
> Why do you need to redefine the normal, standard, default usage of HTML
> elements and to redefine them away from their intended purpose? Why make
> complex when there is simple?
>
>
>> I have seen javascript which will open other html documents into a
>> resizeable window. I have a few snippets of code which would close the
>> window, but this code would have to be added into the html of the new
>> window.
>
>
> Again, what's wrong with the already available close button of the
> window titlebar, embedded into the UI? Why or how would your button
> provide more security, more convenience, more usefulness, more
> trustworthiness to the user than the default, standard user interface of
> browser window/titlebar?
>
>
> After all, isn't that the very same phenomenon which has been happening
> on the web in the last 5 years. People have "learned" to trust what
> emails (scams in spam emails, phishing sites, viruses, hoaxes, trojans,
> downloading and installing viruses, etc.) and webpages were providing or
> saying instead of trusting more their applications up to a certain point.
>
>> Also this method would seem to require that I write a separate html
>> file for every single thumbnail in the gallery. Rather wasteful...
>>
>> Is there anyway I can do all this from within the HTML tag <a href...>?
>> Or does someone have a suggestion on the best way to proceed.
>>
>> I don't want to use features only available on a specific browser.
>>
>> Thanks in advance,
>>
>> Gil
>
>
> Gérard
> --
> remove blah to email me

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация