Nevermind...
I made a typo. It works great.
Thanks Billy!
At 01:26 PM 12/19/2001 -0500, you wrote:
>OK...thats what I though. Only thing is it opens a new window rather than
>getting displayed in iFrame2?
>
>
>At 12:02 PM 12/19/2001 -0600, you wrote:
>>The code I provided would go into getfontname.cfm
>>
>>---
>>Billy Cravens
>>
>>----- Original Message -----
>>From: "phumes1" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Wednesday, December 19, 2001 12:02 PM
>>Subject: Re: Display results in two <iframe's on same page?
>>
>>
>> >
>> > I think I'm missing something here or most likely didn't explain it
>>properly.
>> >
>> > I have a page "template.cfm" which pulls in fontnames from a database and
>> > displays them in a dropdown menu.
>> >
>> > Below is what appear when you view the page for the first time. I hope
>>it
>> > displays OK :-)
>> >
>> >
>> > -------------------------------------------
>> > | Select Family ... | GO! |
>> > -------------------------------------------
>> > ----------------------------------------------------------------
>> > |
>> > |
>> > | iFrame1
>>|
>> > |
>> > |
>> > ----------------------------------------------------------------
>> > ----------------------------------------------------------------
>> > |
>> > |
>> > | iFrame2
>>|
>> > |
>> > |
>> > ----------------------------------------------------------------
>> >
>> > When you select a font family (Garamond) from the dropdown list it loads a
>> > template called "getfontname.cfm" and displays the font names of that
>> > specific font family in "iFrame1" I have this no problem. Now when you
>> > click on a link of a font name within iFrame1
>> > I want the graphic file pulled into iFrame2 of the same page
>>(template.cfm)
>> >
>> > ----------------------------------------------------
>> > | Select Family ... | GO! |
>> > | Garamond -------| Use clicks
>>on
>> > Garamond and iFrame1 is updated with font names (This works OK)
>> > | Times |
>> > -------------------------------------------
>> > ----------------------------------------------------------------
>> > |
>> > |
>> > | [Image] Garamond Normal |
>> > | [Image] Garamond Bold | User
>> > clicks on Garamond Bold and image file is loaded in iFrame2
>> > | [Image] Garamond Italic |
>> > |
>> > |
>> > ----------------------------------------------------------------
>> > ----------------------------------------------------------------
>> > |
>> > |
>> > | iFrame2
>> > | Can't get this to work
>> > |
>> > |
>> > ----------------------------------------------------------------
>> >
>> >
>> > I'm not understanding something here...going in circles.
>> >
>> >
>> > At 11:33 AM 12/19/2001 -0600, you wrote:
>> > >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 ... </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
>> >
>> >
>> > -------------------------------------------------------------------------
>> > 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