php-general Digest 24 Jul 2010 06:37:49 -0000 Issue 6862

Topics (messages 307120 through 307126):

Re: Video lessons
        307120 by: Dan Joseph
        307121 by: David Hutto
        307122 by: David Hutto

Re: php array in different OS
        307123 by: Yang Fei

Re: opening link in new window
        307124 by: Paul M Foster
        307125 by: Robert Cummings
        307126 by: Paul M Foster

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov <[email protected]>wrote:

> Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?
>
>
I'm not sure exactly what you're meaning there, but check out www.lynda.com

-- 
-Dan Joseph

http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
Promo Code "NEWTHINGS" for 10% off initial order -- Reseller Plans also
available!

http://www.facebook.com/canishosting
http://www.facebook.com/originalpoetry
http://www.facebook.com/teaserleague<http://www.facebook.com/apps/application.php?id=135491833139465>

--- End Message ---
--- Begin Message ---
On Fri, Jul 23, 2010 at 2:35 PM, Dan Joseph <[email protected]> wrote:
> On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov <[email protected]>wrote:
>
>> Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?
>>
>>
> I'm not sure exactly what you're meaning there, but check out www.lynda.com
>
> --
> -Dan Joseph
>
> http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
> Promo Code "NEWTHINGS" for 10% off initial order -- Reseller Plans also
> available!
>
> http://www.facebook.com/canishosting
> http://www.facebook.com/originalpoetry
> http://www.facebook.com/teaserleague<http://www.facebook.com/apps/application.php?id=135491833139465>
>
Have you tried searching at youtube, or google. I'd suggest 'php video
tutorials lessons' as the search term without out even trying it first
myself.

--- End Message ---
--- Begin Message ---
On Fri, Jul 23, 2010 at 8:13 PM, David Hutto <[email protected]> wrote:
> On Fri, Jul 23, 2010 at 2:35 PM, Dan Joseph <[email protected]> wrote:
>> On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov 
>> <[email protected]>wrote:
>>
>>> Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?
>>>
>>>
>> I'm not sure exactly what you're meaning there, but check out www.lynda.com
>>
>> --
>> -Dan Joseph
>>
>> http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
>> Promo Code "NEWTHINGS" for 10% off initial order -- Reseller Plans also
>> available!
>>
>> http://www.facebook.com/canishosting
>> http://www.facebook.com/originalpoetry
>> http://www.facebook.com/teaserleague<http://www.facebook.com/apps/application.php?id=135491833139465>
>>
> Have you tried searching at youtube, or google. I'd suggest 'php video
> tutorials lessons' as the search term without out even trying it first
> myself.
>
I you want, you can copy and paste my suggestion into the search box,
that way it eliminates any excess activity on your part.

--- End Message ---
--- Begin Message ---
Dear Colin Guthrie ,

     Thanks for your help very much.
     According to your suggestion, I have solved the question.

best wish,
Yang Fei
2010-7-24

--- End Message ---
--- Begin Message ---
On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:

> Hello,
> I've got a page with an external link. I'd like to open it in a new
> window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
> I was wondering if php could pull this off? Failing that, and not
> really wanting to go there, would javascript work for this?
> Thanks.
> Dave.

I take it

<A HREF="newwindow.html" TARGET="_blank">a new window</A>

is not part of the xhtml 1.0 strict dtd? Because I recently solved this
problem using the above syntax.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
On 10-07-24 12:58 AM, Paul M Foster wrote:
On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:

Hello,
I've got a page with an external link. I'd like to open it in a new
window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
I was wondering if php could pull this off? Failing that, and not
really wanting to go there, would javascript work for this?
Thanks.
Dave.

I take it

<A HREF="newwindow.html" TARGET="_blank">a new window</A>

is not part of the xhtml 1.0 strict dtd? Because I recently solved this
problem using the above syntax.

The GP is correct, target="_blank" is not valid XHTML 1.0 strict.

Here's some JavaScript to put in your page and run once the page completes loading. It looks for anchors having rel="nofollow" and rel="external" attributes in anchors and adds a target="_blank" attribute.

    function bahHumbugExternalLinks()
    {
        if( !document.getElementsByTagName )
        {
            return;
        }

        var anchor  = null;
        var anchors = document.getElementsByTagName( 'a' );

        for( var i = 0; i < anchors.length; i++ )
        {
            anchor = anchors[i];

            if( anchor.getAttribute( 'href' ) )
            {
                if( anchor.getAttribute( 'rel' ) == 'nofollow'
                    ||
                    anchor.getAttribute( 'rel' ) == 'external' )
                {
                    anchor.target = "_blank";
                }
            }
        }
    }


Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
On Sat, Jul 24, 2010 at 01:08:49AM -0400, Robert Cummings wrote:

> On 10-07-24 12:58 AM, Paul M Foster wrote:
>> On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:
>>
>>> Hello,
>>> I've got a page with an external link. I'd like to open it in a new
>>> window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
>>> I was wondering if php could pull this off? Failing that, and not
>>> really wanting to go there, would javascript work for this?
>>> Thanks.
>>> Dave.
>>
>> I take it
>>
>> <A HREF="newwindow.html" TARGET="_blank">a new window</A>
>>
>> is not part of the xhtml 1.0 strict dtd? Because I recently solved this
>> problem using the above syntax.
>
> The GP is correct, target="_blank" is not valid XHTML 1.0 strict.
>
> Here's some JavaScript to put in your page and run once the page
> completes loading. It looks for anchors having rel="nofollow" and
> rel="external" attributes in anchors and adds a target="_blank" attribute.
>
>     function bahHumbugExternalLinks()
>     {
>         if( !document.getElementsByTagName )
>         {
>             return;
>         }
>
>         var anchor  = null;
>         var anchors = document.getElementsByTagName( 'a' );
>
>         for( var i = 0; i < anchors.length; i++ )
>         {
>             anchor = anchors[i];
>
>             if( anchor.getAttribute( 'href' ) )
>             {
>                 if( anchor.getAttribute( 'rel' ) == 'nofollow'
>                     ||
>                     anchor.getAttribute( 'rel' ) == 'external' )
>                 {
>                     anchor.target = "_blank";
>                 }
>             }
>         }
>     }
>

You know, if you're going to sneak target="_blank" in the back way in
order to avoid antagonizing the xhtml 1.0 deities, it seems like it'd be
easier to just say:

<?php echo '<A HREF="newwindow.html" TARGET="_blank">a new window</A>';
?>

Or, wait. With javascript, you're hacking the DOM. If you put my PHP
above in the file, the offending code will arrive at the client browser.
Will the xhtml 1.0 deities cast you into the pit of hell if this
happens?

Paul

-- 
Paul M. Foster

--- End Message ---

Reply via email to