Announcement

Collapse
No announcement yet.

[SOLVED] sc_ajax_message

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] sc_ajax_message

    Hello, i have set an ajax event onclick on a field in a form
    in the event i have set:

    sc_ajax_message("Message", "Title", "modal=Y&button=Y&button_label=GO&width=420&re dir= app_to_call.php&redir_target=_blank", "idpatient={idpatient};iddisease={iddisease}") ;

    the event fires and i am redirected on the appilcation app_to_call.php as specified but redirecting parameters are not passed, because i end up not at the specific record of the target application.

    Am i writing a bad syntax? Thanks
    Last edited by mhanu70; 05-16-2016, 07:02 AM. Reason: ajax events

  • #2
    Did you tried with params outside double quotes?

    Code:
    sc_ajax_message("Message", "Title", "modal=Y&button=Y&button_label=GO&width=420&re dir= app_to_call.php&redir_target=_blank", idpatient={idpatient};iddisease={iddisease}) ;
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      As a matter of fact no.. I will try ASAP.
      Thanks

      Comment


      • #4
        No. Does not work. without quotes the application crashes as soon as i generate it

        Comment


        • #5
          Are you sure is ok? Can you show how are declared your globals?
          iddisease on target app is a field or a global var.

          Another consideration, try to avoid to call variables with the same name that fields, use a preffix like g_myfield or glo_myfield, what you prefer.



          [ATTACH=CONFIG]n68639[/ATTACH]
          Attached Files
          Last edited by Giu; 05-16-2016, 11:24 AM.
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            iddisease on target app is a field not a global var
            also idpatient. I hve not set gloal var on target app. Should i?
            Last edited by mhanu70; 05-16-2016, 11:54 AM.

            Comment


            • #7
              Yes, Passign values to fields directly by URL is only accepted by PK AFAIR. You can set your field with initial value for iddisease to [glo_iddisease] and on your redirection with params do
              glo_iddisease={iddisease};
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment


              • #8
                It works..

                Thank you very much.
                i have learned something new.

                Comment


                • #9
                  Closed as solved
                  /Giuseppe

                  Professional Scriptcase Services
                  Some Customers opinions

                  Comment

                  Working...
                  X