Results 1 to 3 of 3

Thread: how to show-execute some php script in CRM beforeuser authentication

  1. #1
    bandsb is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    25

    Default how to show-execute some php script in CRM beforeuser authentication

    Hi

    My requirement is to i would like to add the regions dropdown in Login screen along with username and Password fields , i am trying to write AJAX script on "OnBlur" event of username to fetch the region names from "regions" table and should display the dropdown with the regions that user belongs to, but i am able to see the ajax request going to my page, but the response is all login page html.

    i looked at the code , according to my understand,user is not authenticated yet, i think it is redirecting to Login page again.

    Can any one suggest how can i accomplish this

    Thanks
    bands

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: how to show-execute some php script in CRM beforeuser authentication

    The php script behind ajax should be saved at root of sugarcrm, and this script should load admin as current_user, just like cron.php does.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    bandsb is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    25

    Default Re: how to show-execute some php script in CRM beforeuser authentication

    Thanks Andopes

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. execute code after an associantion is done
    By danikun in forum Developer Help
    Replies: 11
    Last Post: 2008-06-05, 07:28 AM
  2. execute sql problems
    By Systems Navigator in forum Help
    Replies: 0
    Last Post: 2007-06-13, 02:21 PM
  3. Can not execute the scheduler
    By jcjcjc in forum General Discussion
    Replies: 4
    Last Post: 2006-09-15, 03:59 PM
  4. Install script doesn't execute
    By emungai in forum Help
    Replies: 0
    Last Post: 2006-05-16, 01:54 PM
  5. Cannot execute patch 3.5.1b
    By jscherber in forum Help
    Replies: 3
    Last Post: 2005-11-15, 03:36 AM

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
  •