COMASIS

About me: IT company with expertise in social media, mobility apps and knowledge management
Location:
Email: comasisinfo@comasis.com

Group membership

Activity

  • COMASIS has updated their profile
  • COMASIS uploaded a new plugin: Comasis Cancel Account 1.8
  • COMASIS uploaded a new plugin: Comasis Invite Friends 1.8
  • COMASIS replied on the discussion topic Problem with elgg.get
    Thanks, Brett. I have tried your example code and there was no error but the $content value is: "<script type = "text/javascript" ... ... </script>", I mean, the content of the script; and the elgg_view_page displays... view reply
  • COMASIS added a new discussion topic Problem with elgg.get in the group Plugin Development
    I'm trying to do some test with the Ajax features in Elgg, but when I use the elgg.get function in a script, I don't receive any response. With Firebug I see an error and this message: "elgg is not defined". Is there anything else to include...
    • There was a typo in the JS on that page, but I corrected it and tried this example and it's working for me.

      Probably what's happening is that you're outputting the JS too early in the script. You need to output it after Elgg's JS engine has been fully loaded. Can you show us your code?

    • Thanks, Brett.

      I have tried your example code and there was no error but the $content value is:

      "<script type = "text/javascript" ...

      ... </script>", I mean, the content of the script; and the elgg_view_page displays nothing.

       

      I have thought that maybe I don't need to use the elgg.get function, because my aim is just displaying a map showing a search results (users array). The problem is that I don't know how I should pass these results to the page where I have the script creating the map.

      Sorry, my code is quite a mess to be shown at this moment. I'm still a newbie... Could you give me some tip to make this?

      Thanks a lot.

    • I don't understand what you mean. Put the linked code into a file in Elgg's root and then browse to that file and it should output to the JS console the contents of the activity stream.

      It sounds like you should just use GET parameters, and then access them in PHP with get_input().

  • COMASIS joined the group Plugin Development
  • COMASIS joined the group Feedback and Planning
  • COMASIS has a new avatar
    COMASIS

Friends

No friends yet.

Send private message

You must be logged in to send a private message.