Support » Plugin: Exit Notifier » Attempting to use with a generated URL

  • Resolved jjsararas

    (@jjsararas)



    Hi Curtis, this is a much needed plugin, thanks!

    We have a button that builds a URL for a google search with user selected variables. I’d like to use your plugin to give visitors some instruction upon leaving the site. Currently, it opens up Google Search in a new tab. https://www.screencast.com/t/ryWIwF2QQO

    I installed and configured, but can’t get the notifier to come up, and I’m wondering if it’s because it already opens up in a new tab, so technically not ‘leaving’ the site?

    Could you take a look and let me know if you think it’s possible to get it to work?

    https://www.canadatoolparts.ca

    Thanks!
    Jeff

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    On initial examination, I’d say that the issue is that the “Find” button is activated via javascript. My plugin is designed to intercept the <a href=… links. In other words, the plugin doesn’t work like that.

    However… I’ve been thinking about this, and I have an idea. Give me a few days to develop it and I’ll get back to you.

    Awesome!

    Hi Curtis, just checking in on this. Any luck?

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    Not as yet. It’s been a crazy few weeks for me. My basic idea is to see if I can isolate what it will take to emulate a click with a javascript call. I hope to get a look at it again next weekend. Sorry for the delay!

    10-4

    Hi Curtis, in the meantime I tried that Yeloni one. Yikes! Too many moving parts. Really hoping you can pull through! 🙂

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    Still have not had a chance to dig into this. So sorry! I hope to have news to you before the weekend is up.

    Any luck on this one Curtis? My client is getting itchy, and so I’ll likely end up with just a rollover/tooltip message as a last resort. Let me know if you still think it’s possible.

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    I think I’ve got it! I need to do some further troubleshooting, but I have a proof of concept that seems to work. I’ll do the additional testing and get the new version uploaded tonight, and then I’ll contact you here again with specifics on getting it integrated into your site.

    Wow! Ok looking forward to it.

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    Ok, here’s what I’ve done. I’ve pulled out the main function from the inside of my .js so it’s callable from anywhere now. All you have to do to call it manually is define a fake event.currentTarget.href and call the function with it. Like so:

    	var myevent = new Object();
    	myevent.currentTarget = {};
    	myevent.currentTarget.href = "http://kernel.org";
    
    	exit_notifier_leave_now(myevent);
    

    I just uploaded version 1.4.3. Let me know how it works for you!

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    So does this work for your specific need? Can I assist in getting it added to your javascript?

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    Please let me know if I can help with this. Resolving this thread for now.

    Curtis, SO sorry for the disappearing act. I took a dive off a ladder and shattered my wrist, been laid up on painkillers! I will definitely need a hand implementing your code, but I’m not sure when exactly I’m going to be able to circle back to it. I’ll reach out when I can OK? Really truly appreciate you creating a solution for me!

    Plugin Author Curtis V. Schleich

    (@cvscvstechcom)

    Wow! So sorry for what you’ve been through! Absolutely, just contact me again through here, or email me directly, whichever you prefer.

    In the meantime, may the doctors be wise, the patient compliant, the flesh quick to heal, and the painkillers effective.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Attempting to use with a generated URL’ is closed to new replies.