Announcement

Collapse
No announcement yet.

passing an array to AJAX event not working

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

  • passing an array to AJAX event not working

    Hello
    i define an array in OnApplicationInit
    $ar= array();
    sc_set_global($ar);

    and if i try to print the array i see this : array() a string not an array.
    how can i use an array in AJAX event ? i must declare it outside of the event it self so that it will not get recreated every time the event fire.
    Thanks

  • #2
    after doing a foreach loop and assigning the array to a global variable i only see the first item in the array.

    Comment


    • #3
      If it doesn't work it might be a bug. Perhaps you can use a workaround using (un)serialize?
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        storing the array in a session solved it
        Thanks

        Comment

        Working...
        X