Shawn, PHP is parsed on the server. That means that the functions,
variables, etc. are interrepted BEFORE they are sent to the browser, so
the link will show up "normal" and you won't have any problems. To see
for yourself just view the source of your webpage that uses php. You'll
see no php, only HTML and possibly javascript.
It's important to understand the difference between server-side languages
(like PHP) and client-side languages (javascript) so you might want to do
a little reading on them...
--
Christie Walker
On Mon, 14 Aug 2000, Shawn wrote:
> I guess I messed that one up eh?
>
> What I meant was how do I load a "screen" page which must be processed by
> PHP into a popup windows that is called by plain Javascript.
>
> The Javascript wants an HTTP://www.etc.com address,
> and the screens we use in freetrade are called by
> A HREF=\"".ScreenURL("help", FALSE, array('topic'=>$SCREEN
> or something similar as a processed PHP script.
>
> How do I make a screen address work in javascript?
>
> Shawn
>
>
> ----- Original Message -----
> From: "Shannon -jj Behrens" <[EMAIL PROTECTED]>
> To: "FreeTrade" <[EMAIL PROTECTED]>
> Sent: Monday, August 14, 2000 11:23 AM
> Subject: Re: [FreeTrade] Modifications to popup windows. Need help.
>
>
> > Forgive me, but I don't really understand your question. If your
> > question is, "how do I get a new screen to pop up on the welcome
> > screen," the solution would be, add a little bit of JavaScript to the
> > welcome screen itself. If the question is, "how do I do a non-PHP
> > screen", the answer is, a non-PHP screen is just like any other screen
> > in the screens directory, except it has non PHP in it. If the above
> > notes do not answer your question, perhaps you can rephrase it.
> >
> > Thanks,
> > -jj
> >
> > Shawn wrote:
> > >
> > > Hello;
> > >
> > > I have added a couple more popup windows into my site and want to add
> one in
> > > to popup the first times someone comes to the site to display specials.
> > > I have gotten it working but I don't know how to make the PHP code that
> > > points to a screen work in the popup module which is plain HTML.
> > >
> > > Here is the PHP code for the help screen.
> > >
> > > /*Add Help link*/
> > > if(file_exists(APPLICATION_ROOT . "/modules/help/$SCREEN"))
> > > {
> > > print("<A HREF=\"".ScreenURL("help", FALSE,
> array('topic'=>$SCREEN))."\"
> > > ");
> > > if((GENERATE_BROWSER_CONSTANTS) AND (BROWSER_JAVASCRIPTOK))
> > > {
> > > print("onClick=\"popuphelp(this.href); return false;\" ");
> > > }
> > > print("TARGET=\"help\">");
> > > print(L_NAV_SIDE_HELP);
> > >
> > > }
> > >
> > > And here is what I have for the specials. How do I make the var
> > > popup="http... look and find a screen in the screens directory?
> > >
> > > <!--- Load Pop-up code for specials pop-up window --->
> > > var onoff="off"
> > > function openspecials(){
> > > var popurl="http://iceprime/php/front_to_back/htdocs/specials.html"
> > >
> winpops=window.open(popurl,"","width=400,height=338,scrollbars,resizable,")
> > > }
> > > function get_cookie(Name) {
> > > file://This function is used only if you had selected popup to load ONCE
> per
> > > session
> > > file://You may remove this function if variable "onoff" above is set to
> > > "off"
> > > var search = Name + "="
> > > var returnvalue = "";
> > > if (document.cookie.length > 0) {
> > > offset = document.cookie.indexOf(search)
> > > if (offset != -1) { // if cookie exists
> > > offset += search.length
> > > // set index of beginning of value
> > > end = document.cookie.indexOf(";", offset);
> > > // set index of end of cookie value
> > > if (end == -1)
> > > end = document.cookie.length;
> > > returnvalue=unescape(document.cookie.substring(offset, end))
> > > }
> > > }
> > > return returnvalue;
> > > }
> > > function loadspecials(){
> > > if (onoff=="on"){
> > > if (get_cookie('alreadypopped')==''){
> > > openspecials()
> > > document.cookie="alreadypopped=yes"
> > > }
> > > }
> > > else
> > > openspecials()
> > > }
> > > loadspecials()
> > >
> > > Thanks
> > > Shawn
> > >
> > > ------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Site: http://www.working-dogs.com/freetrade/
> > > Problems?: [EMAIL PROTECTED]
> >
> > --
> > if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
> > print "<i>imagination is the only real medium(sm)</i><br>"
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Site: http://www.working-dogs.com/freetrade/
> > Problems?: [EMAIL PROTECTED]
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]