Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2006



Tip: Looking for answers? Try searching our database.

achieve this without frames

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
namtax - 27 Nov 2006 11:43 GMT
hi i have a site where an index is feeding what is displayed in a cftree...so
if you click on a, this feeds to the query which displays the tree

SELECT (music info)
      FROM (DATABASE)
      WHERE (FIRST LETTER OF ARTIST) =#url.(LETTER)#

SO essentially the index has a href which feeds to the url when clicked, which
then determines what is displayed in the tree. This works well.

 Now on the tree the child nodes are albums relating to the artist, clicking
on the album node displays information dynamically about that album to the
right of the screen.....

this works in the same way as the index in that the href for the cftree feeds
to the url, which then determines which album to show.

The issue is, that as i have two queries being determined by the URL, they
interfere with one another, so you cant use the index independantly of the the
cftree. See my site here to see what i mean  
http://www.musicexplained.co.uk/index_33.cfm?id=2000000001

When you click on the child node of the tree to display album info, the cftree
dissapears.......
 
I have managed to achieve what i want using frames....see
herehttp://www.musicexplained.co.uk/frame.cfm

but i have heard lots of bad things about frames, and you also cant refer to a
particular configuration of a frameset  through the URL with frames, which
makes them bad for navigation...

So i want to achieve what i have here with frames through some other
method...i have heard SSI is the way to achieve this, but i cant get this to
work, as the issue with feeding two queries through the URL still persists here

Any help would be massively appreciated
The ScareCrow - 27 Nov 2006 23:15 GMT
Not really sure why you are doing it the way you are.

There should only be the single query.

The user clicks a letter and the query returns a result set that contains all
the artists for that letter, it also returns all the albums and all the tracks,
picture, ect.........

You would then build your tree from the returned result set.  You could then
use javascript to populate the fields to the right with the information passed
from the tree.

But also, you could use frames or an iframe.  
Frames can't be that bad if MM use them in the auto generation of the Flex
page for the history.

Ken
namtax - 28 Nov 2006 11:37 GMT
thanks for the response....

would you be able to point me in the direction with regards to javascript?

I am unsure of how i would populate the fields to the right with the
information passed to the tree

Cheers
The ScareCrow - 28 Nov 2006 22:53 GMT
There are plenty of js sites out there, just google.

But basically you need to pass the value(s) to a function

note img is the path to the image
function fillForm(img){
document.getElementById('myImage').src = img;
}

Ken
namtax - 29 Nov 2006 20:34 GMT
have just bought a javascript book.

I didnt know javascript could be that useful

thanks for advice
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.