Knowledge Base support case for Likno Web Modal Windows Builder, abstracted and stripped of all user’s private info.


Initial Email From:
Buddy
Initial Email Subject: modal window
Support Case Month: October 2012

Hi Kostas,

I have a modal window on the index page of {URL REMOVED} that I want to only open when the index page opens. But as you navigate through the site the page opens. I received this email from the company:" Also, the October Physical Therapy pop up box pops up several times as you maneuver through the website. Is there a way for it to only pop up upon initial entrance into the website?"

Is there any way I can make it only open when Index page opens or open only once when someone visits the site.

thanks,

Buddy

Reply From: Likno Customer Support

Dear Buddy,

I checked your site and only saw the modal in the first page! Did you fix the problem in the meantime?

If not, keep in mind that the modal will show only on those pages where you added its Linking Code. So if it shows in a page you did not want it to, check if you accidentally added the modal Linking Code there and remove it.

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Buddy

Thanks for checking, no I have not fixed. If you go to {URL REMOVED}   , then locations {URL REMOVED} then sty. Francis rehabilitation center {URL REMOVED} the modal will open. I do have another modal window on that page that opens when you click on the one of the patients forms but it only opens on that link.

thanks,

Buddy

Reply From: Likno Customer Support

Dear Buddy,

I checked the “columbus” page and indeed the modal opens there, but you also have the Linking Code there.

Shall I assume you created two modal windows within the same project and you only want the second to work in this specific page?

If this is the case you have two ways to resolve this:

1) separate the modal windows into different projects.

OR

2) go to your first modal which opens on page load, and change it so that it does not open on page load. Then go to the page where you want it to load and add some JavaScript code to make it load there.

The first option is obviously the easy one. If for some reason you want to keep them in the same project and want to go with the second option, let me know if you need more help.

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Buddy

I tried adding 

<script>var Modal_Window_2_open=octnatptday;</script> 

but it still opens on the st.francis page. If I make two projects it seems like the likno scripts will overwrite each other.

What should the javaScript be to only load octnatptday on the index page?

Thank you so much for the help. I really hate I had to bother you.

Buddy

Reply From: Likno Customer Support

Dear Buddy,

Do not worry, we are here to help! Smile

When you create multiple projects (in any Likno product) all you have to make sure is that each has a different “compile name”:

modal window compile name

Now for the single project solution, first you have to make sure that the modal window will NOT open “on page load” by unchecking the related option. Then you will add the following code in the page where you DO want it to load:

<script>

    function load_my_modal() {

        if (typeof(Modal_Window_1)=="undefined") setTimeout(load_my_modal,200);

        else Modal_Window_1();

    }

</script>

In the above code you need to substitute the “Modal_Window_1” in both places with the actual name of the modal window you want to open on page load.

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Buddy

You are a genius and mighty nice to me. I can be a little slow so please be patient. I have made the changes and recompiled several times but the modal window does not open at all now. I inserted this code: modal wdw named hprcnatptm. I am sure I've done something dumb, but I can't figure it out.

thanks again for all the help.

<script>

    function load_my_modal() {

        if (typeof(hprcnatptm)=="undefined") setTimeout(load_my_modal,200);

        else hprcnatptm();

    }

</script>

Reply From: Likno Customer Support

Hello again,

It seems I am a pretty sloppy “genius” too... I forgot the most important line where the function is called! Sorry about that.

Please change this:

<script>

    function load_my_modal() {

        if (typeof(hprcnatptm)=="undefined") setTimeout(load_my_modal,200);

        else hprcnatptm();

    }

</script>

Into this:

<script>

    function load_my_modal() {

        if (typeof(hprcnatptm)=="undefined") setTimeout(load_my_modal,200);

        else hprcnatptm();

    }

load_my_modal();

</script>

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Buddy

thank you, working like a charm.

Buddy

Tags: , , , , , , , , , , , ,