Whenever you link to a font:

(assuming code similar to following is in your first iFrame, and your second
iFrame is named iframe2)

<cfoutput query="fonts">
    <a href="##"
onClick="parent.iframe2.location.href='fontImg.cfm?fontid=#fontid#'">
        #fontName#</a><br>
</cfoutput>

---
Billy Cravens

----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 11:07 AM
Subject: Re: Display results in two <iframe's on same page?


>
> Where and how can I reference that within my code?
>
> At 10:58 AM 12/19/2001 -0600, you wrote:
> >To reference the second iFrame from within the first:
> >
> >parent.iframe2.location.href='someurl.cfm';
> >
> >---
> >Billy Cravens
> >
> >----- Original Message -----
> >From: "phumes1" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, December 19, 2001 10:56 AM
> >Subject: Re: Display results in two <iframe's on same page?
> >
> >
> > >
> > > Hi,
> > >
> > > Rather than use dropdown menus I''m planning on using <iframe. I'm
> >grabbing
> > > the font families from a database and displaying them in a dropdown
menu.
> > > When a selection is made I redirect the results to a template to one
of
> >two
> > > <iframe's on the same page
> > > that lists all the font names of that specific font family with a
little
> > > sample graphic. Each font name is wrapped with a <a href="">...</a>
which
> > > is linked to a graphic (JPG) of sample text of that font. I would like
> >that
> > > graphic pulled into the second <iframe.
> > >
> > > Presently, if I click on the font name the JPG gets pulled into the
first
> > > <iframe.
> > >
> > > Can this be done. I'm not sure how to go about it. I'n not sure I'm
making
> > > any sense.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Thanks
> > >
> > > <cfquery name="GetFontFamily" datasource="fontstyles" dbtype="ODBC">
> > > SELECT      sti, ID
> > > FROM        fontsti
> > > WHERE sti LIKE '<cfoutput>#alphachar#%</cfoutput>'
> > > </cfquery>
> > >
> > >
> > > <form name="display">
> > > <select name="ff" size="1" onChange="cfdisplay()" class="navlinks">
> > > <option selected>Select Family ...&nbsp;&nbsp;&nbsp;</option>
> > > <cfoutput query="GetFontFamily">
> > > <option
> > >
value="GetFontName.cfm?ID=#GetFontFamily.ID#&style=#GetFontFamily.sti#">
> > > #GetFontFamily.sti#
> > > </option>
> > > </cfoutput>
> > > </select>
> > > <input type="hidden" name="test" value="Go!" onClick="cfdisplay()"
> > > class="navlinks">
> > > </form>
> > >
> > >
> > > Below is the JS I'm using (cfdisplay.js):
> > >
> > > <!--- Call in iframe for font display --->
> > > <script type="text/javascript" src="cfdisplay.js"></script>
> > >
> > > <!--
> > >
> > > //0 causes document to be displayed in an inline frame, while 1 in a
new
> > > browser window
> > > var displaymode=0
> > >
> > > //if displaymode=0, configure inline frame attributes (ie: dimensions,
> > > intial document shown
> > > var iframecode='<iframe id="xff" style="width:400px;height:80px"
> > > src="blank.cfm"></iframe>'
> > >
> > > if (displaymode==0)
> > > document.write(iframecode)
> > >
> > > function cfdisplay(){
> > > var
> > >
>
>selectedurl=document.display.ff.options[document.display.ff.selectedIndex].
v
> >alue
> > > if (document.getElementById&&displaymode==0)
> > > document.getElementById("xff").src=selectedurl
> > > else if (document.all&&displaymode==0)
> > > document.all.xff.src=selectedurl
> > > else{
> > > if (!window.win2||win2.closed)
> > > win2=window.open(selectedurl)
> > > //else if win2 already exists
> > > else{
> > > win2.location=selectedurl
> > > win2.focus()
> > > }
> > > }
> > > }
> > > //-->
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > This email server is running an evaluation copy of the MailShield
anti-
> > > spam software. Please contact your email administrator if you have any
> > > questions about this message. MailShield product info:
www.mailshield.com
> > >
> > > -----------------------------------------------
> > > To post, send email to [EMAIL PROTECTED]
> > > To subscribe / unsubscribe: http://www.dfwcfug.org
> > >
> >
> >-------------------------------------------------------------------------
> >This email server is running an evaluation copy of the MailShield anti-
> >spam software. Please contact your email administrator if you have any
> >questions about this message. MailShield product info: www.mailshield.com
> >
> >-----------------------------------------------
> >To post, send email to [EMAIL PROTECTED]
> >To subscribe / unsubscribe: http://www.dfwcfug.org
>
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
>

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to