Jump to content

molla2005b

uniGUI Subscriber
  • Posts

    222
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by molla2005b

  1. hi

    For JQuery solution click here

     

    or use this code

     

    var arabicNumbers = ['۰', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];
    $('.translate').text(function(i, v) {
    var chars = v.split('');
    for (var i = 0; i < chars.length; i++) {
    if (/\d/.test(chars[i])) {
    chars[i] = arabicNumbers[chars[i]];
    }
    }
    return chars.join('');
    })

     

    best regards

  2. what the problem in This code.Callback url not work.

    Download 

    Multi-level-Vertical-Accordion-Menu-Plug

     

    //Prepear menu ...

    SubmitUrl:=UniSession.CallbackUrlEx('MenuClick', Self, ['RES', 'OK']);

     

     <ul id="menu1">
        <li>
            <h3><span>Tennis</span></h3>
            <ul>
                <li><a href="/">Serves</a></li>
                <li class="active"><a href="/">Player results</a></li> 
                <li><a href="/">Leagues</a></li>
                <li><a href="/">Tournaments</a></li> 
                <li><a href="{URL_CALLBACK}">Menu Click Test</a></li> 
            </ul>
        </li>
    </ul>
     
     Menu_Str:=StringReplace(Menu_Str, '{URL_CALLBACK}', SubmitUrl, []);
     
    //Event ...
    procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;
      Params: TUniStrings);
    begin
      if EventName = 'MenuClick' then
      begin
        if Params.Values['RES']='OK' then
          ShowMessage('Operation Succeeded: '+Params.Values['RES'])
     
      end;
    end;
  3. hi

    I have this problem.do you solve it?

    Run.dll: 00000D64: 02:08:04 []:>--------------------------------------------------------------<
    Run.dll: 00000D64: 02:08:04 []:Starting Server. Module Handle: 0000000002090000
    Run.dll: 00000D64: 02:08:04 [TUniServerModule]:Server First Init.
    Run.dll: 00000D64: 02:08:04 [TUniServerModule]:HTTP Server not Started!
    Run.dll: 00000D64: 02:08:04 []:Server Started. Module Handle: 0000000002090000
×
×
  • Create New...