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
Switch to threaded view of this topic Create a new topic Submit Reply
simple modal box to display info [message #172436] Fri, 18 February 2011 05:45 Go to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
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?
Re: simple modal box to display info [message #172437 is a reply to message #172436] Fri, 18 February 2011 07:50 Go to previous messageGo to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
On Thu, 17 Feb 2011 22:45:16 -0700, 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?

http://1littleworld.net/modalbox/
can't figure out why the one link won't work.
Re: simple modal box to display info [message #172439 is a reply to message #172436] Fri, 18 February 2011 09:45 Go to previous messageGo to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
On Thu, 17 Feb 2011 22:45:16 -0700, 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?

simple solution actually. moved the table to be within the container for
the other links and it now works just fine.
Re: simple modal box to display info [message #172440 is a reply to message #172436] Fri, 18 February 2011 09:51 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
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

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: simple modal box to display info [message #172441 is a reply to message #172440] Fri, 18 February 2011 10:35 Go to previous messageGo to next message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Feb 18, 9:51 am, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> 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.

Because like JRough, he still has no idea what the difference is.
Re: simple modal box to display info [message #172443 is a reply to message #172440] Fri, 18 February 2011 11:02 Go to previous messageGo to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
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.
Re: simple modal box to display info [message #172444 is a reply to message #172441] Fri, 18 February 2011 11:06 Go to previous messageGo to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
On Fri, 18 Feb 2011 02:35:28 -0800 (PST), Captain Paralytic wrote:

> On Feb 18, 9:51 am, Erwin Moller
> <Since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> 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.
>
> Because like JRough, he still has no idea what the difference is.

I do understand the difference. With this basic bit of javascript, I can
save a ton of space and loading times, by utilizing php as the building
block for the information in the popup box.
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 next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
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.
Re: simple modal box to display info [message #172446 is a reply to message #172443] Fri, 18 February 2011 12:12 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 2/18/2011 12:02 PM, 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.

Maybe I misinterpret your posting.
I find it hard to estimate what you understand and what not, let alone
where your problem lies.

In my experience: if people cannot ask their questions clearly, they
don't know what problem is they are solving.

Similarly, when you can clearly phrase your question, you'll often find
the answer. (Rubber Duck principle)

In your case, even after rereading your question a few times, I still
don't know what your problem is/what you are solving.

So instead of telling me to reread it, you would make more progress
solving it by clearly asking.

Erwin Moller


--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: simple modal box to display info [message #172448 is a reply to message #172443] Fri, 18 February 2011 14:36 Go to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Feb 18, 11:02 am, richard <mem...@newsguy.com> 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.

Just because you used teh word php in your post, doesn't make the
question about php.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Thu Nov 07 13:35:27 GMT 2024

Total time taken to generate the page: 0.03960 seconds