how to show in popup?
am 12.11.2007 14:01:57 von Richard
http://littleworldofours.com/1960/table1.html
I want to take the calendar table and hide it from the page until a user
clicks on a link. Then show only that calendar in a popup window. What's my
best approach on this?
Re: how to show in popup?
am 12.11.2007 15:11:10 von Erwin Moller
richard wrote:
> http://littleworldofours.com/1960/table1.html
>
> I want to take the calendar table and hide it from the page until a user
> clicks on a link. Then show only that calendar in a popup window. What's my
> best approach on this?
JavaScript?
PHP cannot produce a popup. At most it can send HTML to a browser that
contains JavaScript that creates a new window.
Basically you bind an event (onClick for example) to a
button/hyperlink/whatever, then call a routine that creates the new
window using window.open(....).
Consult comp.lang.javascript for more help.
(But most regulars in there prefer you post your failing code instead of
asking them to write it for you.)
Regards,
Erwin Moller
Re: how to show in popup?
am 12.11.2007 15:32:35 von Richard
On Mon, 12 Nov 2007 15:11:10 +0100, Erwin Moller wrote:
> richard wrote:
>> http://littleworldofours.com/1960/table1.html
>>
>> I want to take the calendar table and hide it from the page until a user
>> clicks on a link. Then show only that calendar in a popup window. What's my
>> best approach on this?
>
> JavaScript?
> PHP cannot produce a popup. At most it can send HTML to a browser that
> contains JavaScript that creates a new window.
>
> Basically you bind an event (onClick for example) to a
> button/hyperlink/whatever, then call a routine that creates the new
> window using window.open(....).
>
> Consult comp.lang.javascript for more help.
> (But most regulars in there prefer you post your failing code instead of
> asking them to write it for you.)
>
>
> Regards,
> Erwin Moller
thanks. I've also been reading up on this and it appears that doing so in
pure php just isn't possible as you say. As it is now, it is only a sample,
not the finished output.
Re: how to show in popup?
am 12.11.2007 15:38:37 von Richard
On Mon, 12 Nov 2007 15:11:10 +0100, Erwin Moller wrote:
> richard wrote:
>> http://littleworldofours.com/1960/table1.html
>>
>> I want to take the calendar table and hide it from the page until a user
>> clicks on a link. Then show only that calendar in a popup window. What's my
>> best approach on this?
>
> JavaScript?
> PHP cannot produce a popup. At most it can send HTML to a browser that
> contains JavaScript that creates a new window.
>
> Basically you bind an event (onClick for example) to a
> button/hyperlink/whatever, then call a routine that creates the new
> window using window.open(....).
>
> Consult comp.lang.javascript for more help.
> (But most regulars in there prefer you post your failing code instead of
> asking them to write it for you.)
>
>
> Regards,
> Erwin Moller
failing code? Not according to the validator. How can you screw up a simple
table?
Re: how to show in popup?
am 12.11.2007 15:41:21 von Michael S Bykov
On Nov 12, 3:01 pm, richard wrote:
> http://littleworldofours.com/1960/table1.html
>
> I want to take the calendar table and hide it from the page until a user
> clicks on a link. Then show only that calendar in a popup window. What's my
> best approach on this?
Hi!
2 ways really and both related to JS.
1st way
Open new window:
http://www.w3schools.com/htmldom/met_win_open.asp
2nd way
Divs. Here is 3 good examples with description of use:
http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm
http://www.dynamicdrive.com/dynamicindex11/abox2.htm
http://www.dynamicdrive.com/dynamicindex11/abox2.htm
Hope my information will help you.
Regards, Michael
Re: how to show in popup?
am 12.11.2007 16:35:01 von Erwin Moller
richard wrote:
> On Mon, 12 Nov 2007 15:11:10 +0100, Erwin Moller wrote:
>
>> richard wrote:
>>> http://littleworldofours.com/1960/table1.html
>>>
>>> I want to take the calendar table and hide it from the page until a user
>>> clicks on a link. Then show only that calendar in a popup window. What's my
>>> best approach on this?
>> JavaScript?
>> PHP cannot produce a popup. At most it can send HTML to a browser that
>> contains JavaScript that creates a new window.
>>
>> Basically you bind an event (onClick for example) to a
>> button/hyperlink/whatever, then call a routine that creates the new
>> window using window.open(....).
>>
>> Consult comp.lang.javascript for more help.
>> (But most regulars in there prefer you post your failing code instead of
>> asking them to write it for you.)
>>
>>
>> Regards,
>> Erwin Moller
>
> failing code? Not according to the validator. How can you screw up a simple
> table?
Hi,
I mean something else: A lot of people show up in comp.lang.javascript
that ask for a solution without posting the code. (Here too for that matter)
If they post the code others can see what they tried so far, and spot
the errors in that code or approach (if any).
So with failing code I mean: 'the relevant parts of the php and
JavaScript that doesn't seem to work for you.'.
Regards,
Erwin Moller
Re: how to show in popup?
am 12.11.2007 20:36:46 von Richard
On Mon, 12 Nov 2007 06:41:21 -0800, Michael S Bykov wrote:
> On Nov 12, 3:01 pm, richard wrote:
>> http://littleworldofours.com/1960/table1.html
>>
>> I want to take the calendar table and hide it from the page until a user
>> clicks on a link. Then show only that calendar in a popup window. What's my
>> best approach on this?
>
>
> Hi!
>
> 2 ways really and both related to JS.
>
> 1st way
> Open new window:
> http://www.w3schools.com/htmldom/met_win_open.asp
>
> 2nd way
> Divs. Here is 3 good examples with description of use:
> http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm
> http://www.dynamicdrive.com/dynamicindex11/abox2.htm
> http://www.dynamicdrive.com/dynamicindex11/abox2.htm
>
> Hope my information will help you.
>
> Regards, Michael
Thanks. That may work.