jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Validation only if has data Validation only if has data #25663

    david
    Member

    As you suggested me, I’ve tryied the custom validation, but I can’t implements my idea. I’ve found my last attempt.
    Look at this:

      {input: '#idEmailR', message: 'El correo ha de ser válido',action:'keyup',rule:function (input, commit) {
    if(input.val()!==''){
    //some code
    }else{
    if($('#usarR').val()!==''){
    return true;
    }else{
    return false;
    }
    }
    }

    at //some code, I don’t know how, I need to validate e-mail, can you tell me if there is something like:
    $(‘#UserRenewForm’).jqxValidator(‘validateInput’, ‘#idEmailR’, rule:’email’); to put there?

    best regards

    in reply to: Validation only if has data Validation only if has data #25662

    david
    Member

    Hello dear Peter.
    I don’t understand why you suggest me Date validation when i’m trying to validate an e-mail?.
    I don’t understand why this line return false $(‘#UserRenewForm’).jqxValidator(‘validate’);
    I’ve tried this too : $(‘#UserRenewForm’).jqxValidator(‘validateInput’, ‘#idEmailR’); and return false when i put my e-mail correctly and I don’t know why.

    I’ve tried customs validations, but always return false previous lines.

    I have another question. It’s necessary rules for all the inputs of the form to validate the entire form? or only try to validate the inputs where I put rules to validate?

    Thanks for your help.

    David


    david
    Member

    Hi !!

    I have changed the way that I’m working.

    Instead of load the content getting by Ajax and writte it using: ‘ $(‘#frameMio1’).contents().find(“body”).html(data); ‘ as I’ve explained at the top of my post, I’m using $(‘#frameMio1’).attr(‘src’, url-to-get-data);

    It seems change the way that works and now I can resize columns.

    Thanks for all and I hope it can be useful to others,

    David.

    in reply to: Resize columns iframe problem Resize columns iframe problem #25333

    david
    Member

    Thanks, but your test sample isn’t good for me.
    It works, as “http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/hideshowcolumns.htm?classic” example works too. i’m trying to compare with it (because it has hidden columns and resize columns).
    I’ll try to do a sample that you will use, with iframe (I don’t know why, but I think that it’s the key), tabs, and the others features.

    Best Regards,
    David.


    david
    Member

    It’s my content:

    <html>
    <head>
    <title></title>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <style>
    <script src="js/jquery/jquery-1.8.3.min.js" type="text/javascript">
    <script src="js/jquery/jquery.i18n.js">
    <script src="js/jquery/jquery.i18n.messages.js">
    <script src="js/jquery/jquery.i18n.fallbacks.js">
    <script src="js/jquery/jquery.i18n.parser.js">
    <script src="js/jquery/jquery.i18n.emitter.js">
    <script src="js/jquery/jquery.i18n.language.js">
    <link type="application/l10n+json" href="views/js/i18n/sgo-en.json" hreflang="en" rel="localization">
    <link type="application/l10n+json" href="views/js/i18n/sgo-es.json" hreflang="es" rel="localization">
    <script src="js/require.js" type="text/javascript">
    <script src="js/ViewLoader.js" type="text/javascript">
    <script src="js/Constants.js" type="text/javascript">
    <script src="js/Utils.js" type="text/javascript">
    <script src="js/ConstructGrid.js" type="text/javascript">
    <script src="js/ConstructCombo.js" type="text/javascript">
    <script src="js/jqwidgets/jqxcore.js" type="text/javascript">
    <script src="js/jqwidgets/jqxinput.js" type="text/javascript">
    <script src="js/jqwidgets/jqxwindow.js" type="text/javascript">
    <script src="js/jqwidgets/jqxvalidator.js" type="text/javascript">
    <script src="js/jqwidgets/jqxbuttons.js" type="text/javascript">
    <script src="js/jqwidgets/jqxdockpanel.js" type="text/javascript">
    <script src="js/jqwidgets/jqxscrollbar.js" type="text/javascript">
    <script src="js/jqwidgets/jqxpanel.js" type="text/javascript">
    <script src="js/jqwidgets/jqxexpander.js" type="text/javascript">
    <script src="js/jqwidgets/jqxnavigationbar.js" type="text/javascript">
    <script src="js/jqwidgets/jqxtabs.js" type="text/javascript">
    <script src="js/jqwidgets/jqxsplitter.js" type="text/javascript">
    <script src="js/jqwidgets/jqxmenu.js" type="text/javascript">
    <script src="js/jqwidgets/jqxdata.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.selection.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.pager.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.sort.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.grouping.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.filter.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.edit.js" type="text/javascript">
    <script src="js/jqwidgets/jqxgrid.columnsresize.js" type="text/javascript">
    <script src="js/jqwidgets/jqxlistbox.js" type="text/javascript">
    <script src="js/jqwidgets/jqxdropdownlist.js" type="text/javascript">
    <script src="js/jqwidgets/jqxcombobox.js" type="text/javascript">
    <script src="js/jqwidgets/jqxcheckbox.js" type="text/javascript">
    <script src="js/jqwidgets/jqxradiobutton.js" type="text/javascript">
    <link type="text/css" href="js/jqwidgets/styles/jqx.base.css" rel="stylesheet">
    <link type="text/css" href="js/jqwidgets/styles/jqx.ui-redmond.css" rel="stylesheet">
    <script type="text/javascript">
    </head>

    I’m debugging with Firebug and I can find all loaded.
    I think It can’t be the problem, because it’s loaded with all the other scripts and the grid is done, loaded, doubleclick event works, etc.
    I’ve tried to load again as head’s content of iframe with the same result.


    david
    Member

    Hi Mariya, thank you for yor quick answer.

    I’m using 2.9.3 version, but I’ve tried with 2.6.1 before.

    In reference of “provide the code where you add references for the Grid modules,” I don’t understand what are you asking for.

    If your are asking for links to scripts, they are been loaded at main.php outside the iframe, but it works ok.

    thanks

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