Announcement

Collapse
No announcement yet.

Use AJAX to load new content after search/ NO refresh of the page

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

  • Use AJAX to load new content after search/ NO refresh of the page

    hi
    so here is the thing, i need to display both search and results in the same page. Like this example here: "http://www.scriptcase.net/sistemas/v6/exemplos_en_us/grid12/grid12.php " ..but, when it loads the new content, the page is refreshed.
    I have to get rid of the refresh process since i'm gonna use this application in a web page and i don't want to show the other components that come with the result as it's refreshed..
    I hope i made my self clear..

    I thought i could use AJAX,but i don't know where.

    Any idea is greatly appreciated!

    Regards

  • #2
    Afaik you can set an ajaxevent on a field. An onchange will do in this case. Then you can set a filter on the query and refresh?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      hey ,
      thanks for answering
      ..but i still can't figure it out. Ok for the AJAX part, but the grid doesn't have ajax events and even if it is a form application(which supports ajax event),i have to call a search app first.. anyway none of these loads the new content without refreshing the page

      Comment


      • #4
        The instructions are oln http://helpdesk.scriptcase.net/desk/...-the-same-page
        These comply afaik on an earlier version of SC but using these principles I managed to do something similar. Does it provide help for you? Where does it fail?
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          I had a similar scenarios to show search box as well as the results in same page. Having a Grid application and configuring a search within Grid solved the problem by using an iframes and onchange submits.

          Check: http://www.scriptcase.net/phpgenerat...rch/grid12.php

          hth.

          Comment


          • #6
            That's quite interesting! Thanks! i think i will use this in an iframe in my web page, it still does refresh the hole page when i click on search, but apparently i can't get rid of it :/
            Anyway, this is very helpful! Thanks again!

            Best regards

            Comment


            • #7
              @chetan
              thanks for answering but i have a search calling a form, so this example does not do my case :/ ..
              all the best!

              Comment


              • #8
                Hi Mirela,

                I got the same problem and I still not founded a solution. I got four fields on search area and 2nd is based on the selection of first and so on till the 4th that is based on selections of 3 previous fields.
                Have you got fix it and if yes are you so kind to suggest me how ..
                Thanks

                Comment

                Working...
                X