Note that there are some explanatory texts on larger screens.

plurals
  1. PORepostion Ext.MessageBox.alert() without changing the current code
    primarykey
    data
    text
    <p>I want to get all Ext.MessageBox.alert() across application and set it to new position. We have many jsp pages in our application, in which we have used Ext.MessageBox.alert(), now the requirement is to reposition all message boxes, without touching their code in jsp..i can include a js file though </p> <p>Option 1: i found i am able to reposition a message alert by: <a href="https://stackoverflow.com/questions/1...l-align-with-y">https://stackoverflow.com/questions/1...l-align-with-y</a> but then i have to change all jsp pages and add:</p> <pre><code>msgBox=Ext.MessageBox.alert(jsonData.responseMessage); msgBox.getPositionEl().setTop(50); </code></pre> <p>Option 2: extend the message box : still change all jsp</p> <p>Option 3: use css : dont know how?</p> <p>Can anyone please guide me if there is anyother solution or Css solution will be fine:</p> <p>My code is below</p> <pre><code> Ext.Ajax.request({ url : 'submitAddZone.htm', params : { zoneName : Ext.getCmp('zoneNameId').getValue(), emailParam : Ext.getCmp('emailId').getValue(), requestTypeParam : Ext.getCmp('requestTypeId').getValue(), level : selectedLevel + 1, parentZoneName : selectedParentZone, currency : currencyValue, startDate : Ext.getCmp('startDateId').getValue(), startTime : Ext.getCmp('startTimeId').getValue() }, method : 'POST', success : function(response,request) { toggleAddZoneElements(); var jsonData = Ext.decode(response.responseText); if(jsonData.isSuccess){ msgBox= Ext.MessageBox.alert(jsonData.responseMessage); msgBox.getPositionEl().setTop(50); addZoneWin.close(); toggleAddZoneButtons(); tree.getStore().load({url: 'loadCustomerStructure.htm'}); }else{ Ext.getCmp('sendRequest').setIcon(); Ext.getCmp('errorMessage1').setText(Encoder.htmlDecode(jsonData.errorMessage)); Ext.getCmp('errorMessage1').show(); } }, failure : function( response) { toggleAddZoneElements(); msgBox= Ext.MessageBox.alert(notCreatedLabel); addZoneWin.close(); msgBox.getPositionEl().setTop(50); } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload