EasyUI Forum
September 14, 2025, 03:58:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / my own icon in the top bar of window (panel>) on: October 16, 2014, 05:30:00 PM
Hello coders....

Anyone got any idea on how to place an icon in the header bar of a window.  I can get one there if I make it a 16x16 png and place its address into the icon.css document.  This way does not allow me to "easily" build a page on the fly.  Any help would be appreciated.

Charlie
2  General Category / EasyUI for jQuery / Re: navigation menu on: October 16, 2014, 04:53:37 PM
Thank you for your reply...

It appears to work....

It would have been nice if this was in the documentation somewhere...

I am now trying to put a picture in the window (panel?) After perusing the documentation it appears the icon must be 16X16 and that it must reside in the icons.css.  Please don't answer that here as I have not finished looking through the forum.  I will start a new thread...

Thank you
Charlie

p.s. From my point of view this is closed, is there a way I should be marking these as solved?
3  General Category / EasyUI for jQuery / Re: Closing a Window on: October 16, 2014, 04:46:10 PM
Thank you so much for your kind reply...

Moving scripts to the body section of a form becomes a cumbersome task, and negates loading a page not written by me.

Charlie

p.s. This is not meant to be argumentative just true.  I do not need a reply.  Consider this closed.
4  General Category / EasyUI for jQuery / Re: Closing a Window on: October 11, 2014, 07:10:23 AM
Once again, thank you so much for your help....but...
Using the panel and refresh seems to work fine...but...
I cannot access any javascript functions in windows 2 it tells me


ReferenceError: ESSSMaybe is not defined

of course it is, and when I run the HTML not in a window, all is fined.

I am close, please continue to help

Charlie
5  General Category / EasyUI for jQuery / Re: Closing a Window on: October 10, 2014, 10:56:16 PM
Thank you for answering...

It is an Easy-UI window:

     <div id="xx" class="easyui-window" ......>
          <iframe scrolling="auto" frameborder="0"  src="http://....." style="width:100%;height:100%;"></iframe
     </div>

This was the only way I could figure to load an html page into a window.  Also these lines are generated in "real time" and appended to the parent window (also an easy-ui window).

Charlie
6  General Category / EasyUI for jQuery / Re: Closing a Window on: October 10, 2014, 07:46:40 PM
Thank you much for your reply... however I guess I am having trouble explaining myself:

   +-------------------------------------------------+
   | Window 1                                          -- BX |
   +-------------------------------------------------+
   |                                                                 |
   |   +--------------------------------------+        |
   |   | Window 2                            -- BX|         |
   |   +--------------------------------------+        |
   |   |                                                   |        | 
   |   |                                                   |        |
   |   |                                                   |        |
   |   |                                   +---------+|        |
   |   |                                    |CANCEL ||        |
   |   |                                   +---------+|        |
   |   +---------------------------------------+       |
   +-------------------------------------------------+

Now, window 1 creates window 2 dynamically and a web page is loaded.  For purposes of argument lets say the user is asked for a password.  If the user does not want to continue, the user clicks on the Cancel Button.  If the page was running by itself, not in an iframe inside a window the routine would issue a self.close and all is done.  However, when I do that in this scenario the window 2 stays.  So how do I close window 2 from window 2.  I have tried calling a subroutine (e.g.  window.parent.runSomething("CLOSEME")  )  but I do not get an error and the winow just sits there.  The runSomething function is in the <head> section of the windows 1 program which dynamically built the second window.  I think the problem is with the IFrame but I really haven't been able to figure it out.

Once again thank you for your timely reply

Charlie           
7  General Category / EasyUI for jQuery / Closing a Window on: October 10, 2014, 05:44:47 PM
Gentlepersons...

I have a window in which I open another window consisting of a particular web page.  When I click on the button to "close" the web page the window stays open.  How does the child program "tell" the parent program to close himself(the child)?

Charlie
8  General Category / EasyUI for jQuery / Re: navigation menu on: October 10, 2014, 05:29:04 PM
never mind...

after about 4 more hours I figured it out.  Sure would have been nice if there was an example that said here is what you want a menu to look like her is the code to do it (with no ellipses).  For example:
    |File v|        |Entry v|                                                                                             |View v|                         |About|
    |----  |------ |-----    |------------------------------------------------------------------------------   -----------------------------
           |Exit|            |Employee Entry >| |Enter Part Timers  |                                              |Logged in Users  |
           |----|            |--------------------| |Enter Short Timers|                                              |--------------------|
                               |Department Entry| |Enter Others       >  |Enter Early Retirement|          |Logged Out Users|
                               |--------------------| |---------------------| |Enter Near Retirement|           |-------------------|
                               |Position Entry      |                                |-------------------------|
                               |--------------------|

Those graphics should be prettier but I do not have the time....

Code:
[size=8pt]	<div class="easyui-panel" style="padding:5px;">

<a id="MEN_mnuFile_2095" href="#" class="easyui-menubutton" data-options="menu:'#SPN_mnuFile_2095'">File</a>
<a id="MEN_mnuEntry_2281" href="#" class="easyui-menubutton" data-options="menu:'#SPN_mnuEntry_2281'">Entry</a>
<a id="MEN_mnuView_3304" href="#" class="easyui-menubutton" data-options="menu:'#SPN_mnuView_3304'">View</a>
<div id="MEN_mnuAbout_37699" href="#" class="easyui-linkbutton" onclick="essMenu_Clicked('MEN_mnuAbout_3769!ABOUT!', '&About');">About</div>
     
<div id="SPN_mnuFile_2095" style="width:150px;" >
<div id="MEN_submnuExit_2186" onclick="essMenu_Clicked('MEN_submnuExit_2186', 'E&xit');">Exit</div>
</div>   <!-- mnuFile {1] -->
<div id="SPN_mnuEntry_2281" style="width:150px;" >
<div><span>Employee&nbsp;Entry</span>
<div style="width:150px;" >
<div id="MEN_mnuPartTimers_2463" onclick="essMenu_Clicked('MEN_mnuPartTimers_2463', 'Enter Part Timers');">Enter&nbsp;Part&nbsp;Timers</div>
<div id="MEN_mnuShortTimers_2556" onclick="essMenu_Clicked('MEN_mnuShortTimers_2556', 'Enter Short Timers');">Enter&nbsp;Short&nbsp;Timers</div>
<div><span>Enter&nbsp;Others</span>
<div style="width:150px;" >
<div id="MEN_mnuEarly_2740" onclick="essMenu_Clicked('MEN_mnuEarly_2740', 'Enter Early Retirement');">Enter&nbsp;Early&nbsp;Retirement</div>
<div id="MEN_mnuNear_2833" onclick="essMenu_Clicked('MEN_mnuNear_2833', 'Enter Near Retirement');">Enter&nbsp;Near&nbsp;Retirement</div>
</div>   <!-- mnuOthers {3] -->
</div>   <!-- mnuOthers {3] -->
</div>   <!-- submnuEmployee {2] -->
</div>   <!-- submnuEmployee {2] -->
<div class="menu-sep"></div>
<div id="MEN_submnuDepartment_3023" onclick="essMenu_Clicked('MEN_submnuDepartment_3023', 'Department Entry');">Department&nbsp;Entry</div>
<div class="menu-sep"></div>
<div id="MEN_submnuPosition_3209" onclick="essMenu_Clicked('MEN_submnuPosition_3209', 'Position Entry');">Position&nbsp;Entry</div>
</div>   <!-- mnuEntry {1] -->
<div id="SPN_mnuView_3304" style="width:150px;" >
<div id="MEN_submnuLogIn_3395" onclick="essMenu_Clicked('MEN_submnuLogIn_3395', 'Logged In Users');">Logged&nbsp;In&nbsp;Users</div>
<div class="menu-sep"></div>
<div id="MEN_submnuLogOut_3581" onclick="essMenu_Clicked('MEN_submnuLogOut_3581', 'Logged Out Users');">Logged&nbsp;Out&nbsp;Users</div>
</div>   <!-- mnuView {1] -->
</div>
[/size]

Now a newbie has something to hang his hat on. 

I created a window in a window how does the javascript tell the parent to close the window once again I have already searched for hours and have found nothing.  What good is crating a window in a window if it can't be closed.  I am gonna open a new thread for this but I am betting it will not be answered.

Charlie
9  General Category / EasyUI for jQuery / navigation menu on: September 25, 2014, 11:43:32 AM
Hello people...

First a "slam" I find the documentation woefully lacking as I am brand new to easyUI

I have looked high and low for an example of building a menu using javascript.  I would like to put out a bunch of divs and then create a menu by hooking the divs together using javascript all examples that I have found use an ellipse where there should be code.  I sure would like to know what is supposed to be in that ellipse.  If anyone can help me you will have my undying love and admiration.

Thanks for reading
Charlie Elliott
 
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!