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 9237913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:38:31+00:00 2026-06-18T07:38:31+00:00

Below is an ajaxSubmitButton that in working on a mac but not on a

  • 0

Below is an ajaxSubmitButton that in working on a mac but not on a linux server. On the linux server Error Console shows this error: SyntaxError: missing } after property list

<?php
     echo CHtml::ajaxSubmitButton(
        '',          
        array('/modelA/action'), 
        array(
            'type'=>'POST',
            'success' => 'js:function(){window.location="/modelB/action"}',
        ),
        array(
            'id'=>'button',
        )
    ); 
?>

When I copy the error from Firebug or Error Console I get this:

SyntaxError: missing } after property list
https://www.mysite.com/assets/95062282/jquery.ba-bbq.js
Line 853

and Firebug looks like this:

enter image description here

  • 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-06-18T07:38:32+00:00Added an answer on June 18, 2026 at 7:38 am

    You need to remove the ‘js:’ part in your code (before function) then it should work

    So it will look like this:

    <?php
         echo CHtml::ajaxSubmitButton(
            '',          
            array('/modelA/action'), 
            array(
                'type'=>'POST',
                'success' => 'function(){window.location="/modelB/action"}',
            ),
            array(
                'id'=>'button',
            )
        ); 
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below function is working fine for IE, but not working for Mozilla and other
Below code not work, but it's work fine for jsf1.2. Now the framework is
Below is the code so far that I am working on, It will be
Below is a Class that converts a string (coming from a sql server database)
Below is my code that works fine on IE 8 but it doesn't work
Below I have provided a snippet of some code that I have been working
Below is a series of events that should run as listed, but I used
Below download url is not working because of the presence of amp; in the
Below code is working in Safari without any issues but same piece of code
Below is code to an inherited ComboBox. The issue is that the ComboBox is

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.