Results 1 to 2 of 2

Thread: Help using ajax

  1. #1
    mak111 is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    18

    Default Help using ajax

    Hi everyone,

    I am using sugar ce 6.1.2 and I am encountering few problems using YUI ajax. I have a url = "index.php?mdoules=Leads&action=checkLead"

    where action is at the following location custom/modules/leads/checkLead.php. which simply contain a single
    echo 'Hello world'

    whenever i am try to execute ajax response using YUI Ajax

    YAHOO.util.Connect.asyncRequest('GET',url,callback ,null); . The response i get an complete HTML page of the sugar view , instead simply 'Hello world'

    I simply need the response as 'Hello World' rather entire HTML page as response.

    Any Inputs on these will be appreciated

    Regards
    Mak

  2. #2
    erop is offline Sugar Community Member
    Join Date
    Jan 2005
    Location
    Moscow, Russia
    Posts
    107

    Default Re: Help using ajax

    I think you should use 'custom/modules/leads/checkLead.php' as url and add appropriate entry into (like in include/MVC/Controller/entry_point_registry.php but to be safe-upgrade) custom/include/MVC/Controller/entry_point_registry.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ajax...
    By ajlisowski in forum Developer Help
    Replies: 1
    Last Post: 2010-08-26, 07:59 PM
  2. how can i use ajax?
    By tahir.nazir in forum Help
    Replies: 0
    Last Post: 2009-04-07, 11:39 AM
  3. Possible AJAX bug(s)
    By stevec in forum Help
    Replies: 0
    Last Post: 2009-04-01, 03:13 PM
  4. ajax example?
    By hoang in forum Help
    Replies: 3
    Last Post: 2008-02-10, 08:23 PM
  5. Using AJAX
    By otelem in forum Developer Help
    Replies: 1
    Last Post: 2008-01-08, 04:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •