AJAX Page - CallbackPanel Client-side

Methods, Events


<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>

Methods

Name Description
methodUpdatePanel Update callback panel specified by id.

UpdatePanel(panelID)
  • panelID - ID of the callback panel.
ob_post.UpdatePanel("callbackPanel1");

View UpdatePanel tutorial.
methodUpdateAllPanels Update all callback panels from page.

UpdateAllPanels()

Does not require any parameters.

ob_post.UpdateAllPanels();

View UpdateAllPanels tutorial.
methodUpdatePanelInContainer Load the content of a CallbackPanel inside a container (div, span, table cell, etc.).

UpdatePanelInContainer(panelID, containerID)
  • panelID - ID of the callback panel.
  • containerID - ID of the container.
ob_post.UpdatePanelInContainer("callbackPanel1", "container");

View UpdatePanelInContainer tutorial.
methodUpdatePanelFromPage Load the content of a CallbackPanel from another page inside a container (div, span, table cell, etc.).

UpdatePanelFromPage(panelID, containerID, pageURL)
  • panelID - ID of the callback panel.
  • containerID - ID of the container.
  • pageURL - URL of the page where the callback panel belongs to.
    Optional. If it's null, the content of the CallbackPanel is taken from the same page.
ob_post.UpdatePanelFromPage("callbackPanel1", "container", "myPage.aspx");

ob_post.UpdatePanelFromPage("callbackPanel1", "container", null);

View UpdatePanelFromPage tutorial.

Events

Name Description
methodob_OnBeforePanelUpdate Invoked before a panel is updated at client side (before the request is sent to server to request for an update to the panel).

ob_OnBeforePanelUpdate(panelId, containerId, page)
  • panelId - Panel id to update - null if request was made to update all panels.
  • containerId - Container in which to store the panel's content - null if panel updates itself in its own container.
  • page - Page where the panel is declared.
If this method returns false, the update is canceled.
methodob_OnPanelUpdate Invoked after the panel update was completed.

ob_OnPanelUpdate(panelId)
  • panelId - The id of the panel that was updated.