Link to home
Start Free TrialLog in
Avatar of Coast Line
Coast LineFlag for Canada

asked on

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?
Avatar of Sudhindra A N
Sudhindra A N
Flag of India image

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...
Avatar of Coast Line

ASKER

please provide sample if possible

thanks
ASKER CERTIFIED SOLUTION
Avatar of Sudhindra A N
Sudhindra A N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Hello,
To point to the 5th link means - your mouse cursor should be on the link or how it is?

please explain.
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
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.
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
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..
i have solved it thanks for ur guidence