NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP and Javascript/HTML

D C Krook dkrook at hotmail.com
Fri Jun 28 10:18:06 EDT 2002


Heh, that's the way we hack around TeamSite, which doesn't allow for dynamic 
content in its templates.  It's a good way to include something like a 
common navigation box shared across a series of articles.

It also comes in pretty handy if you are using Atomz search for your site 
and would like to use your dynamic elements in the static wrapper template 
that you provide them which resides on their servers.



>From: evan heller <evan.heller at alum.rpi.edu>
>Reply-To: talk at nyphp.org
>To: NYPHP Talk <talk at nyphp.org>
>Subject: Re: [nycphp-talk] PHP and Javascript/HTML
>Date: Thu, 27 Jun 2002 22:46:02 -0400
>Received: from hotmail.com ([65.54.237.23]) by hotmail.com with Microsoft 
>SMTPSVC(5.0.2195.4905); Thu, 27 Jun 2002 19:50:09 -0700
>Received: from slipdisc.virul.net ([66.114.66.188]) by hotmail.com with 
>Microsoft SMTPSVC(5.0.2195.4905); Thu, 27 Jun 2002 19:47:02 -0700
>Received: from nyphp.org (slipdisc.virul.net [66.114.66.188])by 
>slipdisc.virul.net (8.11.6/8.11.6) with ESMTP id g5S2k2P44169;Thu, 27 Jun 
>2002 22:46:02 -0400 (EDT)(envelope-from listmaster at nyphp.org)
>Message-Id: <200206280246.g5S2k2P44169 at slipdisc.virul.net>
>X-Paralist-Archived: 
><http://nyphp.org/list/paralist_archive.html?L_mid=549>
>X-List-Software: Paralist 0.6
>List-ID: <nyphptalk.nyphp.org>
>List-Owner: <mailto:listmaster at nyphp.org>
>List-Archive: <http://nyphp.org/list/paralist_archive.html?L_lid=1>
>List-Subscribe: <http://nyphp.org/list/>
>List-Unsubscribe: <http://nyphp.org/list/>
>Organization: New York PHP
>X-Mailer: Paramail 0.5
>Return-Path: listmaster at nyphp.org
>X-OriginalArrivalTime: 28 Jun 2002 02:47:02.0768 (UTC) 
>FILETIME=[14F50700:01C21E4E]
>
>Well, a weird way of doing it is to have the page
>use the javascript include method to include a
>javascript file such as:
>
><script language="JavaScript"
>src="http://www.nyphp.org/somephpscript.php?content=blah
>"></script>
>but instead of returning a php page, it rather
>creates a javascript page which contains
>things like document.write("<br>some text from a
>database");   then all you have to do is tell your
>user to
>include the javascript bits wherever needed and
>walla...it should work across most browsers and is
>great method of getting
>data. HTMLGear.com uses it extensively if you want
>like Wired.com headlines or guest books or
>whatever.
>
>-Evan
>
>Jon Baer wrote:
> >
> > Hmm, not sure if it applies but Ive found this little hidden resource
> > extremely helpful:
> >
> > http://ashleyit.com/rs/
> >
> > Remote scripting w/ PHP works very nicely :-)
> >
> > - Jon
> >
> > Hans Zaunere wrote:
> >
> > >I have a co-worker who will be working with me on a couple pages.  He
> > >knows a little about Javascript and PHP and will be doing mostly
> > >frontend work, including taking a static HTML page and marking it up
> > >with PHP, so dynamic tables/etc can be generated from DB data that I
> > >supply (so I don't have to - YES!).
> > >
> > >Does anyone have resources that they've found particularly useful for
> > >implementing PHP in HTML/Javascript/layout/generation/etc.  I'd like to
> > >stay away from templates/"supply a couple vars and out comes a
> > >table"/class systems - just good old fashioned HTML markup with PHP.
> > >
> > >
> > >Thanks,
> > >
> > >HZ
> > >
> > >
> > >__________________________________________________
> > >Do You Yahoo!?
> > >Yahoo! - Official partner of 2002 FIFA World Cup
> > >http://fifaworldcup.yahoo.com
> > >
> > >
> > >
>
>--
>
>Evan Heller
>evan.heller at alum.rpi.edu






=======================================
D C Krook
http://krook.net/ || http://krook.info/


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the talk mailing list