Need help with a modal anchor link...

User 38401 Photo


Senior Advisor
10,951 posts

Ya I know, I probably am trying to do something I shouldn't lol. Anyways here's the concept of what I'm trying to do.

My client has over 300 products (not a shop) that will be modal windows rather than pages. We aren't going to actually do "pages" for each of the products, but instead are doing category pages with thumbnails of all of the products on them (similar to what you would have using something like Visual Light Box) that open a modal window with the information about the product. There are 8 different categories of products so each of these will have their own page(s) full of thumbnail image links.

So what I have been trying to work out a possible idea for is that some of the products have a "You May Also Like..." image on the modal window along with the rest of the product information for the product they clicked. I need to find a way to have the "You May Also Like" image be a link that opens the category page that that particular product is on as well as the modal window for that product itself.

I hope that makes sense, trying to type what I'm thinking.. (shut up Scott... lol) so if it's not clear please let me know.

Summary:
Need image link to open another page "and" open a modal window that resides on that page.

Note: Site was built with RLMP and using Bootstrap layout (which unfortunately is still stuck at 2.3.2 version of Bootstrap) so the Modal windows are constructed using Bootstrap 2.3.2. Hopefully that helps some. :)

Thanks for any assistance or ideas anyone can provide. :)
User 187934 Photo


Senior Advisor
20,245 posts

Hi Jo See if this is what you after.
Go to this page and click on # Of Chemicals. Keep your mouse over the modal window and it will stop the slideshow. Then you can click the links that are in the window.
https://pestlogbook.com/help/pest-logbo … e-map.html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Eric,

Not sure as that's basically opening an image gallery with the same webpage open behind it. Part of the concept might be there, but I don't think I'm seeing it.

The main things I need is:
- Click an image in a modal window
- Triggers a new (target blank) or replaces current open web page (no target)
- Opens a modal window on the new page that is opened.

I'm thinking it would be similar to opening an anchor link to a specific position on another page of the site, but instead I want it to just open a specific modal window that is connected to an image on the newly opened page. I can't quite get my head around the full idea yet.

Hopefully that might be a little clearer. I hate it when I know what it is I'm trying to say, but not sure I'm saying the right words/terms to get the points across so let me know.
User 187934 Photo


Senior Advisor
20,245 posts

I'm sure that's the same for what I'm doing but I'm targeting images that are hidden on the same page. It's just an example where I wanted to show that you can have links within the modal. Colorbox has support for iframes also.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 38401 Photo


Senior Advisor
10,951 posts

I'll have to give it some more thought on how that would be implemented to make it go to the other page and activate a modal window too. I'll be giving this a lot more thought or coming up with some simpler way to do this I think.

Thanks for the ideas as always Eric!
User 379556 Photo


Registered User
1,568 posts

It seems that what is being sought is having links set up as macros of the following nature: "Go to page X and click on link Y in that page". While such a link-macro may well be feasible, I am wondering whether the end user's antivirus/anti-malware software might throw up an alert that the page was dangerous - which would be a disaster for a business. I myself stopped using one printer cartridge supplier because of the alerts that company's pages threw up - even though I'm pretty sure those pages were harmless.

Frank
User 187934 Photo


Senior Advisor
20,245 posts

Ho about a php $_GET variable. If ISSET then echo the appropriate script that's set for on page load. Colorbox will also do AJAX calls.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 38401 Photo


Senior Advisor
10,951 posts

Frank Cook wrote:
It seems that what is being sought is having links set up as macros of the following nature: "Go to page X and click on link Y in that page". While such a link-macro may well be feasible, I am wondering whether the end user's antivirus/anti-malware software might throw up an alert that the page was dangerous - which would be a disaster for a business. I myself stopped using one printer cartridge supplier because of the alerts that company's pages threw up - even though I'm pretty sure those pages were harmless.

Frank

I understand why that would concern some people on websites, but this is a site that someone would click on that link to purposely to to that product's information so they would expect a new window to open or the page to change etc. so I'm not too concerned on that. :)

Eric Rohloff wrote:
Ho about a php $_GET variable. If ISSET then echo the appropriate script that's set for on page load. Colorbox will also do AJAX calls.

Totally over my head on all that lol, one of these days I really gotta take some time and learn more about javascript and jquery etc., but been too busy to even think about it these days. :P
User 271657 Photo


Ambassador
3,816 posts

Jo, I'm not sure if this can do what you want, but it has a lot of options. I just got it for a site I'm working on, but haven't used it yet.
http://crusader12.com/C12HoverAlls/

I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 103173 Photo


VP of Software Development
0 posts

paintbrush wrote:
Jo, I'm not sure if this can do what you want, but it has a lot of options. I just got it for a site I'm working on, but haven't used it yet.
http://crusader12.com/C12HoverAlls/


Now that is pretty cool!
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.