Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 605435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:08:42+00:00 2026-05-13T17:08:42+00:00

my application updated some of the framework as well as jquery and now doesn’t

  • 0

my application updated some of the framework as well as jquery and now doesn’t work. I’m not sure what to do since I’m not getting useful information back to debug. Here’s what I am looking for:

GIVEN: I am on the selected page with a text field and submit button
WHEN: I type a few letters in the textbox
THEN: I want Autocomplete with available accounts matching values from the database.

GIVEN: I see a value that I want to add to my list
WHEN: I click “Add”
THEN: I want to see the selected value displayed in the panel via Ajax (no need to refresh the page):

Here is the code for the Autocompletion:

    $this->btnAddOffer = new QButton($this->pnlAddOffer,"btnAddOffer");

    $this->btnAddOffer->CssClass =  "button";

    $this->btnAddOffer->Text = "Add";
    $this->txtNewOffer->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnAddOffer_Click'));
    $this->txtNewOffer->AddAction(new QEnterKeyEvent(), new QTerminateAction());

    $this->btnAddOffer->AddAction(new QClickEvent(), new QAjaxAction('btnAddOffer_Click'));

and:

protected function btnAddOffer_Click($strFormId, $strControlId, $strParameter) {
    if($this->txtNewOffer->Text == ''){

        $this->txtNewOffer->Warning = "You must be enter a offer company name!";
        return false;

    }
    $objUser = unserialize($_SESSION['User']);

    $objAccount = Account::LoadByName($this->txtNewOffer->Text);

    if($objAccount){
        $objUser->AccountId = $objAccount->Id;
        $objOffer = Offer::LoadByUserOwnerIdAccountId($objUser->Id,$objAccount->Id);
        if($objOffer){

            QApplication::DisplayAlert("This account already exists!!");

        } else {

            $objOffer = new Offer();
            $objOffer->UserOwnerId = $objUser->Id;
            $objOffer->AccountId = $objAccount->Id;
            $objOffer->Save();

            #QApplication::DisplayAlert("New account was added successfully");
        }
    }

The current outcomes that I get:

  • When I type in the textbox, I see an empty form with the following Firebug:

alt text http://img707.imageshack.us/img707/5102/screenshot2162010102232.png

I’m not sure what to do since I have no information to debug what is going on.

Here is a screenshot using Firebug of the code-generated around the input box and the submit button:

alt text http://img535.imageshack.us/img535/9148/screenshot292010113245a.png

The related code in the controller:

More details can be found here:

http://github.com/allyforce/AF-upload/blob/master/Library/Offer.class.php

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:08:43+00:00Added an answer on May 13, 2026 at 5:08 pm

    Have you defined a method for the event to call. Looking at your screenshot, you’re using a QAjaxAction rather than a QServerAction, but have you told it the method to call, for example :-

    $this->btnAddOffer->AddAction(new QClickEvent(), new QAjaxAction('btnAddOffer_click'));
    

    and then

    protected function btnAddOffer_click()
    {
        // submit code you want here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built an ASP.NET MVC web application that uses Entity Framework. To provide
I'm just starting out with NServiceBus and have updated the PubSub sample to work
Today, no matter what I did, my application just would not recognise a change
I am looking to build a web site/application. The class model is around 100
I am building a ASP.NET MVC application where I use the following flow :
Version 2.3.4 Let's say, I have an items table with some fields, for example:
My application needs to log informations about user actions (inserts, updates, deletes, etc) and
I currently have a bash application that, among other things, uses cURL to upload
I have registered a custom MembershipProvider class in my Web.Config file. I'm using Inversion
Realize this may sound like a broad question - so let me clarify. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.