jaagare — 2012-04-30T23:25:16-04:00 — #1
I am having a specific issue.
Here is what I need.
I have the main page with an image and I have image maps on it.
When a user hovers / clicks on the specific area, I need to open a popup on the page with another image with image maps.
Again when a user hovers / clicks on the specific area within the new popup another popup opens.
The issue I am having is this.
If I hover / click on the first image map I am able to open a new popup. But the issue comes up when I use the script to open the popup on the new popup. Here sometimes it opens / sometimes it doesnot.
Also once a popup opens the script fails to work for other popups on the page. Only after I refresh the page I can open popups again.
Any jquery script / function that I could use for the issue I am facing?
Thanks in advance for the help
mandes — 2012-05-01T00:26:52-04:00 — #2
Can I ask.. are you sure you want layed popups !!! why not consider changing the original image each time and staying in the parent window.
jaagare — 2012-05-01T01:06:14-04:00 — #3
Well that's a good idea. I could use that. But am not very good with jquery. Any pointers towards achieving that? Thanks a lot for the suggestion.
mandes — 2012-05-01T04:27:12-04:00 — #4
jaagare — 2012-05-01T04:32:38-04:00 — #5
Thank you very much for the link. Looks like this should solve my issue. Shall get back incase I get stuck somewhere
jaagare — 2012-05-02T23:54:23-04:00 — #6
This I believe is needing a lot of coding. Further for each window need to create a popup and on close change event. Is there nothing a bit simpler available? I have a total of around 100 popups to open and this would result in a lot of coding.
Attaching a screen of what is needed. Any help is highly appreciated.
mandes — 2012-05-03T03:40:21-04:00 — #7
Attachments can take a long time to approve ... better to stick the jpg on your server and give us a link.
100 popups, that sounds extreme (and extremelly annoying for the user). Perhaps you need to rethink your site layout plan and see if theres a better way.
jaagare — 2012-05-03T04:30:15-04:00 — #8
Here is the attachment via site link
jaagare — 2012-05-03T04:34:39-04:00 — #9
Yes I am aware that so many popus are not good for any site. But thats what the design team wants done and the design team is not ready to move an inch in this regard.
I tried explaining many times that load times would suffer and not the best way to create a page, but the design team believes thats the way to go.
I also created a couple of small demos explaining the issues but thats not changed their outlook. They feel there is nothing much to do, but I explained it would mean a lot of coding / work.
Further, I also gave them the idea, that we could create on click to to to a specific page and then have popup on that page. That way we could limit the number of popups but they need it all on a single page.
Any help is highly appreciated.
mandes — 2012-05-03T04:54:17-04:00 — #10
OK, I'd treat the whole site as you would a multilayered menu bar. Make a database to store the relationships of each popup to other popups and hold the content for each within.
Id then use AJAX to query the database on each click, fetch the new info and use the innerHTML function I mentioned earlier to change the content of the page/div.
I still wouldnt be using popups per se, rather changing the content of the same screen on the fly.
If you are absolutely forced to use real popups you can still use the same functionality, but the finished design will be more cluncky
jaagare — 2012-05-03T05:30:54-04:00 — #11
Thank you for the response. Let me try if AJAX works and get back.
system — 2014-10-07T22:21:18-04:00 — #12
This topic is now closed. New replies are no longer allowed.