Announcement

Collapse
No announcement yet.

sc_ajax_refresh() doesn't work at all

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • sc_ajax_refresh() doesn't work at all

    It looks like this macro was absent in my SC because when I try to use it it gives an error:

    Code:
    Fatal error: Call to undefined function sc_ajax_refresh() in /opt/NetMake/v71/wwwroot/scriptcase/app/......
    Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
    We need: good and complete documentation written in proper English

  • #2
    Where are you calling this macro? In which event?

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      Event was good (Ajax Event - on click) but I tried it in form app...
      And now I know it works only in grid...

      Honestly I can't understand why macros like this (also sc_alert, sc_link etc.) are made only for such a narrow scope of applications.
      Why they are not accesible in other app types where they was really useful.
      Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
      We need: good and complete documentation written in proper English

      Comment


      • #4
        Agreed a refresh should basically work anywhere.

        Comment


        • #5
          Hello,

          sc_ajax_refresh() doesn't work on form applications.

          I will request this macro to work on other events/applications as a suggestion to our team.

          regards,
          Bernhard Bernsmann

          Comment


          • #6
            After a calll of sc_ajax_refresh in run button in my grid the page turns white , no error messages nothing, just white page

            if i manually reload in Crome , get this
            Confirm Form Resubmission

            This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
            • Press the reload button to resubmit the data needed to load the page.

            ERR_CACHE_MISS


            THe page code has:




            HTML CODE OF THE PAGE
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
            <html DIR='LTR'>
            <head>
            <META http-equiv="Content-Type" content="text/html; charset=windows-1251" />
            <script type="text/javascript" src="/scriptcase/prod/third/jquery/js/jquery.js"></script>
            <script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></script>
            <script type="text/javascript">var sc_pathToTB = '/scriptcase/prod/third/jquery_plugin/thickbox/';</script>
            <script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox-compressed.js"></script>
            <link rel="shortcut icon" href="../_lib/img/usr__NM__bg__NM__favicon.jpg">
            <link rel="stylesheet" href="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
            </head>
            <body class="scGridPage">
            <table class="scGridTabela" align="center"><tr><td>

            Any ideas?

            Comment

            Working...
            X