Announcement

Collapse
No announcement yet.

sc_redir() how to remove OK message popup

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

  • sc_redir() how to remove OK message popup

    Hi Everyone,


    I'm new here in scriptcase and I'm developing a Barcode system project, I created a new button in Form Application using sc_redir(); command everything is working ok when i clicked the button, but there is a OK button popping up before it redirect to other form.

    How to remove this popup (ok)? i want to click the button and directly redirect to other form without clicking OK to proceed.

    Please advice thank you.


  • #2
    I'm not sure, but did you set any confirm message at the button settings?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi Aducom,

      Thank for your reply, i just checked the confirm message but it's blank nothing is there so i wonder where its that came from.

      Comment


      • #4
        pHP button or Ajax button?
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Hey Tasyo,
          You provided little details on the issue or code sample but, what I would do is debug what is actually happening in the form when you click on your button. The button should have a listener when the OnClick event is triggered. You can debug it like in this example (use Chrome browser):

          http://blittle.github.io/chrome-dev-...listeners.html

          or like this:

          http://stackoverflow.com/questions/1...-web-developer

          You'll get to see what is actually happening after you click on the button in the click event.

          Hope this helps.

          Comment


          • #6
            It's easy to overcome. The next line behind the sc_redir should be sc_exit(ref);
            Albert Drent
            aducom software netherlands
            scriptcase partner, reseller, support and (turn-key) development
            www.scriptcase.eu / www.scriptcase.nl

            Comment


            • #7
              Mr. Drent is correct. It works out perfect with sc_exit(form_name);

              Comment


              • #8
                Huwow thank you very much sc_exit(form_name) do the trick! Thank you for all your help guys.

                Comment

                Working...
                X