jQuery UI Widgets Forums Dialogs and Notifications Window loading twice ? or something wrong

This topic contains 2 replies, has 2 voices, and was last updated by  melvin 7 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • loading twice ? or something wrong #89596

    melvin
    Participant

    Its hard to describe the problem…
    main page(index.php) : jquery.js and div content
    subpage(test.php) : jqx-all.js; and actionWindow

    When fist click of $(‘div#content’).load(‘pages/test.php’); on main page,
    the actionwindow on subpage is normal, all css is fine.
    But, click again $(‘div#content’).load(‘pages/test.php’); on main page,
    is shows 2 actionwindow, one is freezed with no css, another one sometimes work normal sometimes freezed with normal css.

    Can you help me to solve this symptoms !

    Thanks,

    loading twice ? or something wrong #89667

    Hristo
    Participant

    Hello melvin,

    It is not correct this implementation because each time when you click on this div (“#content”) will try to load jqxWindow.
    I would like to suggest you use one button and when click on it to open the jqxWindow.
    Please, take a look at this demo:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxwindow/defaultfunctionality.htm?light

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    loading twice ? or something wrong #89742

    melvin
    Participant

    Hello Hristo,

    Thanks for reply.
    Can you write a sample page that main.php with a div content and a button,
    $(‘a’).on(‘click’, function(e) {
    $(‘div#content’).load(‘pages/defaultfunctionality.htm’);

    and you will see what my problem when we click two or more time of the button.

    Please help!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.