Technote Details :: How to turn a normal link into an AJAX link

Issue

I have a website that uses regular links and AJAX panels. I want to modify these links, to make them point to a specific state of an AJAX Panel, instead of having them refresh my entire page.

Reason

You cannnot always use AJAX links to achieve this. In some situations, you have to adjust normal links in order to "AJAX-ify" them. For instance, when you want to specify the panel state to be redirected to after an ImpAKT form is submitted, you need to build your link as specified below, under Solution. If you build your links correctly, they will be automatically recognized by the MX AJAX Toolbox engine and turned into AJAX requests.

Solution

The correct way to build a link in order to be AJAX-ified by MX AJAX Toolbox is:

[master_page].php?[TargetPanel]__state=[TargetState]

You need to replace the text between brackets with the names that match your setting. Say, if your master page is called index.php, your targetted AJAX panel is called Content and the targetted state is called News, the link would be:

index.php?Content__state=News

Note: Please pay special attention to the double underscore and the question mark. Do not use the number character (#) instead of the question mark (?). It is also strongly recommended to respect the case of each letter (lower-case or upper-case).

Incorrect ways to build the link:

  • index.php#Content__state=News
  • index.php?Content_state=News

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.