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


Initial Email From:
Gus
Initial Email Subject: Modal windows with Submit button and return value
Support Case Month: February 2013

Hi Kostas,

How can I get a Web Modal window to activate with an Input type="Submit" or Type="Image" button with onclick? It works great with a Type="Button". And is there a way to return True/False (or any other value) to the onclick so a button can be used for validation or a Go/No Go from the modal window?

Thanks,
Gus

Reply From: Likno Customer Support

Dear Gus,

If you have this submit button in a form and want to show the form result inside the Modal Window, then there is a simple way to capture the “on submit” event. You just need to add the correct “target” to your form:

correct target of the form in a modal window

If you just want to show a standard Modal Window, then there are many ways to do this using the element ID, Class or “onclick” method:

modal window on click event

For example: <input type=”image” onclick=”Modal_Window_1();” … />

Finally, regarding returning a value from the modal, this is not possible in the sense of a “confirm” dialog as the modal is not blocking the JavaScript execution.

Still it allows you to run any JavaScript code on exit, so you can do anything you like there (for example check a modal/page element value and act accordingly):

run JavaScript on modal window close

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

 

Tags: , , , , , , , , ,

 

Knowledge Base support case for AllWebMenus,  abstracted and stripped of all user’s private info.


Initial Email From:
Roland
Initial Email Subject: menu link target 
Support Case Month: December 2012

Hello, we are making the menu, and it's working, but after clicking on the final link

and find the web page when we close that page, all disappear, we like to have a :

TARGET="_blank" that the customer will stay in the correct page. ?

and not be lost.

what to do ?

thanks,
Roland

Reply From: Likno Customer Support

Hello Roland,

I believe that you are looking for this:

menu link target blank

Best 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: Roland

hello, YES!

thanks

Roland

 

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

 

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


Initial Email From:
Brad
Initial Email Subject: modal
Support Case Month: November 2012

Hi,

Can I create an asp.net form in a modal window?

Thanks,
Brad

Reply From: Likno Customer Support

Dear Brad,

Yes you can load an asp.net form in a modal window. To do this, you need to select the “external” source type:

modal window, external source type

Note: If you want the result of the form to be loaded in the whole page instead of the modal, you need to set the <form> to have:   target='_top'

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

 

Tags: , , , , , , , , ,

 

Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.


Initial Email From:
Ernesto
Initial Email Subject: set target for a dynamic generated menu...
Support Case Month: April 2012

Hello from Switzerland,

Here a short example (running) on my actual Project.

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;');

Now I want to control the "target link" property using like url but I found no description about this.
like this (and sure... not working :)

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;link=_blank');

Maybe you can give me here some help.

Thanks.
Ernesto 

Reply From: Likno Customer Support

Dear Ernesto,

The name is “target” instead of “link”, so the code should be like:

mainItem = awm_M0.newItem('style=sub_item_style;text0=EXAMPLE;url=../../main/main.aspx;target=_blank');

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: Ernesto

Hello Kostas,
thanks for the short replay.
I used this statement now:

mainItem = awm_M0.newItem('style=sub_item_style;text0=HOME;url=../../main/main.aspx;target=_blank');

Tests in IE or Opera... but, it is not working.
Some Idea about.

Thanks,
Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

Can you please try the following code instead?

mainItem = awm_M0.newItem('style=sub_item_style;text0=HOME;url=../../main/main.aspx;targetframe=new');

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: Ernesto

Hello Kostas,
ah, ok! This now is opening the content in a new register.
:) So this is a interesting option for us. :)
But, if you still have a new idea about how to open it in a
completely new "browser" window so thanks for the help again... 
If not.... so we will use this solution.
Thanks.
BR, Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

The only way to open it in a completely new window (the equivalent of “_blank” within the application) is to add this as a script:

mainItem = awm_M0.newItem("style=menu_main_item_style;itemid=0;text0=Home");

mainItem.script2 = "window.open('/main/main.aspx,'test','toolbar=yes, status=yes, scrollbars=yes, location=yes, fullscreen=no, menubar=yes, resizable=yes, height=600, width=500');";

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

 

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

 

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


Initial Email From:
Jim
Initial Email Subject: Test page...
Support Case Month: June 2012

Hello,
Ok, so I have created a couple of pages for you to review. This may be an issue with how I am building the Modal window, I am not using iFrame. Does that make a difference? Here are the links, please let me know what you find.
http://www.bhomes.org/a1.asp is the page that draws the links from the database.
If they load correctly you would see this page in the modal window depending on which link you clicked.
http://www.bhomes.org/a2.asp?id=1
http://www.bhomes.org/a2.asp?id=2

Thanks
Jim

Reply From: Likno Customer Support

Dear Jim,

I checked your page and when I viewed the source code I saw this:

Error! Filename not specified.

This should be:

<a href="A2.asp?ID=1" target="Modal_Window_1">test</a>

And not:

<a href="javascript:;" onclick="window.Modal_Window_1('A2.asp?ID=1'); return false;" >test</a>

I thought this was clear in our previous emails!

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: Jim

I made the change in the link but it made no difference in the site. Please review again and let me know what I am doing wrong.
Thanks
Jim

Reply From: Likno Customer Support

Dear Jim,

I just realized what was wrong…

Do you have the modal project set to “make links open in this window”?

modal windows make links open in this window

If not, please change this and change your “targets” to “Modal_Window_1_single” instead of “Modal_Window_1”.

The “Modal_Window_1” is for opening the existing (in-project) content and not what you find in pages.

This should fix everything.

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: Jim

You are correct that I used that setting. I will make the necessary changes and retest. I will email the results when I get a chance.
Thanks for all your help,
Jim

 

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

 


© 2009-2012 Likno Blog – Drop-Down Menus, Javascript Menus, CSS Menus, jQuery Scrollers/Sliders, Modal Windows