• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

achieve this without frames

New Here ,
Nov 27, 2006 Nov 27, 2006

Copy link to clipboard

Copied

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 click here

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 here click here


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
TOPICS
Advanced techniques

Views

215

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 27, 2006 Nov 27, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 28, 2006 Nov 28, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 28, 2006 Nov 28, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2006 Nov 29, 2006

Copy link to clipboard

Copied

LATEST
have just bought a javascript book.

I didnt know javascript could be that useful

thanks for advice

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation