Creating a Link & attaching it to the Link which is inside the Expand/Collapse

Hi I have the Following Link

<a href="http://www.abc.com?ID=#id#&pass=###pass">Click</a>

Now the link is appearing in another Page and on that Page, Expand/Collapse (Javascript version) is used, which when clicked the image expands it and show its.

Now my issue is when i click on the link, i should be able to open the page and open that Expand Panel in which the link resides and it should point to that

Is it possible?
LVL 16
Gurpreet Singh RandhawaWeb DeveloperAsked:
Who is Participating?
 
ansudhindraCommented:
Hello,
Attached is a sample code only for demonstration purpose.
Extract files to your CF webroot, rename the childpage.htm to childpage.cfm.
Run parent.html page  as http://localhost:8500/Test/parent.html

 Test1.zip
0
 
ansudhindraCommented:
Hello,
it is possible.

pass parameters to the target page on which panel to expand initially.
In the target cfm file, write a javascript onLoad function with CF conditional statement specifying if parameter exists then write code (in javascript) to expand the panel...

If you have any sample please let me know...
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
please provide sample if possible

thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Thanks for this!
1. I am able to Expand the DIV now,
2. Now the second issue is inside that Expand Div, there are 5 links and i want topoint to the 5th one, how do i do that,

If i pass two anochor tags, it will not work. it points to the first anochor and it stops there, it does not point to the second anchor if i pass in the url

Here like this!

1. Page 1

abc.cfm?url1=###abc&url2=###def

on page page it should point to def, but currently if i use one url1 only, its works fine, if i use both, it fails

Guide
0
 
ansudhindraCommented:
Hello,
To point to the 5th link means - your mouse cursor should be on the link or how it is?

please explain.
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
yes! The Mouse cursor should be on the link

See like this

Level 1 -  This will be Opened always

Level 2 -  i expand it through URL and passed anchor tag which points to Level 2

Level 3- I want to point to link 5 which have 5 links inside it, i can even point to link 4 also, So it should directly point to link 4 or link 5

util level 2 its goes fine and then it fails
0
 
ansudhindraCommented:
I am not sure how we can achieve this, but moving mouse cursor over the link is not a good idea as what I think.

May be since the last link is having problem, then create a 6th dummy link, so that you can point to 5th link..
dont put anything in the 6th anchor tag. If it works then your problem is solved.
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Btw how i do that! There is i am confused.

Having two anchor tag in a Page and Both values passd from URL will break it!

any jquery answer for it
0
 
ansudhindraCommented:
Are you passing entire "url" for the link inside the page using url variables?
Url has a limit of 100. if it crosses extra will be terminated and will be a problem again..
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
i have solved it thanks for ur guidence
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.