FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » simple modal box to display info
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: simple modal box to display info [message #172445 is a reply to message #172443] Fri, 18 February 2011 11:13 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
richard wrote:
> On Fri, 18 Feb 2011 10:51:19 +0100, Erwin Moller wrote:
>
>> On 2/18/2011 6:45 AM, richard wrote:
>>> http://www.ericmmartin.com/projects/simplemodal-demos/
>>>
>>> This is something I have been considering doing.
>>> Using just one hidden division, could it be possible with php to load the
>>> information through an array?
>>>
>>> My idea is to have just the song titles shown on the page, then when
>>> clicked on, the modal box appears loaded with the appropriate information.
>>> That would cut down on the physical size of the page.
>>>
>>> Think that would work?
>>
>> Richard, why are you posting this all to comp.lang.php?
>>
>> Your modal boxes are client-side and have nothing to do with PHP.
>>
>> A better place would be a javascript (eg comp.lang.javascript) oriented
>> newsgroup, or HTML oriented one (alt.html maybe).
>>
>> Regards,
>> Erwin Moller
>
> Please read the post again. Do I not ask about possibly loading the
> information in the division through the use of PHP?
> And I have asked in other groups.

When I had a similar situation, I calculated the download times and went
for a compromise. All the data but only small thumbnails, comes done in
one 'get', and then a page reload or partial page reload happens when
the user selects a particular item.

My site works well over a modem link.

Large amounts of text and javascript can be loaded relatively fast
especially if you use compression.

BUT images are the killer. It is always worth preparing, dynamically or
statically, thumbnails that are the correct final size for the display.
Most images are pre-compressed anyway, so that is the only way to reduce
download times.

If you do choose dynamic resizing at the server side, be aware that this
is very compute intensive. In my site where volume is very low, this is
not an issue: in a busy site I would definitely - say - add a thumbnail
BLOB to any image: If that was null the software would dynamically
prepare the thumbnail and insert it in the database, otherwise it would
serve the thumbnail from the database directly.

This avoids having to manually rescale thousands of images ..which is a
lot longer than writing the above code.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help wanted! - need to convert to php
Next Topic: how to assign a variable string from an array?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 10:13:35 GMT 2024

Total time taken to generate the page: 0.03967 seconds