?
Solved

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

Posted on 2011-05-10
10
Medium Priority
?
202 Views
Last Modified: 2012-05-11
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?
0
Comment
  • 5
  • 5
10 Comments
 
LVL 13

Expert Comment

by:ansudhindra
ID: 35736044
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
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 35736089
please provide sample if possible

thanks
0
 
LVL 13

Accepted Solution

by:
ansudhindra earned 2000 total points
ID: 35736695
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 35739532
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
 
LVL 13

Expert Comment

by:ansudhindra
ID: 35739573
Hello,
To point to the 5th link means - your mouse cursor should be on the link or how it is?

please explain.
0
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 35739620
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
 
LVL 13

Expert Comment

by:ansudhindra
ID: 35740003
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
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 35740085
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
 
LVL 13

Expert Comment

by:ansudhindra
ID: 35740986
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
 
LVL 16

Author Comment

by:Gurpreet Singh Randhawa
ID: 35742050
i have solved it thanks for ur guidence
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question