I have a "monolithic style" (non-mvc, non-mvvm) application built using ExtJS 4.0.7. I am attempting to see what it takes to migrate these applications to Valence 4.1. I've already copied /ext-4.0.7 to the /valence-4.1d/desktop folder. I've also copied the Valence 3.1 version of valence.css to /valence-4.1d/desktop/ext-4.0.7/resources/css and the Valence 3.1 version of valence-extjs4.js to /valence-4.1d/desktop/ext-4.0.7. (I understand that this isn't the best place for it, but I just need something that works for right now)
My app has some code that initiates every time the app attempts to make an ajax request to ensure the server is available (we don't want web app users running web apps when the server is in a restricted state). Here is that code:
However, when an HTTP post is made to vvcall.pgm, it's using our custom folder in the url:
Here are the stylesheet and script includes:
Here are the Apache directives that allow access to those folders:
Here is a screen shot of our custom settings in the Portal Admin Setting page:
Valence41 Custom Settings.jpg
I also seem to be missing some other files (images) but I think I'll find them somehow:
I was able to fix the missing icon images by copying vvresources into the ext-4.0.7 folder. Again, I realize this isn't best practices, but I just need proof of concept working for now. Still getting the error above where my ajax call to vvpgm is building a url that includes my custom app path and not the default valence path.
My app has some code that initiates every time the app attempts to make an ajax request to ensure the server is available (we don't want web app users running web apps when the server is in a restricted state). Here is that code:
Code:
// global ajax request system availability check Ext.Ajax.on('beforerequest', function(conn, options) { if (!options.firstTime) { Ext.Ajax.request({ url: 'vvcall.pgm', params: { pgm: 'MYAPPPGM', action: 'checkSystem' }, success: function(response) { var data = Ext.decode(response.responseText); if (Ext.isIE) { Ext.Ajax.abort(); Ext.getBody().mask(); Ext.Msg.alert('Microsoft Browser Detected', 'Internet Explorer does not work well with this application. Please use Chrome.'); } if (data.SUCCESS == '99') { Ext.Ajax.abort(); Ext.getBody().mask(); Ext.Msg.alert('System unavailable', 'The system is not available at this time'); } }, firstTime: '1' }); }
Code:
POST http://mysystem:6041/ourcustomfolder/html/vvcall.pgm 404 (Not Found)
Code:
<link rel="stylesheet" type="text/css" href="/extjs407/resources/css/ext-all.css" /> <link rel="stylesheet" type="text/css" href="/extjs407/resources/css/valence.css" /> <script type="text/javascript" src="/extjs407/ext-all.js"></script> <script type="text/javascript" src="/extjs407/valence-extjs4.js"></script>
Code:
# Ext JS 4.0.7 Alias /extjs407 /valence-4.1d/desktop/ext-4.0.7 <Directory /valence-4.1d/desktop/ext-4.0.7> Order Allow,Deny allow from all </Directory>
Valence41 Custom Settings.jpg
I also seem to be missing some other files (images) but I think I'll find them somehow:
Code:
GET http://mysystem:6041/extjs407/resources/css/icons/save.gif 404 (Not Found) ext-all.js:15 GET http://mysystem:6041/extjs407/resources/css/icons/arrow_rotate_clockwise.png 404 (Not Found) ext-all.js:15 GET http://mysystem:6041/extjs407/resources/css/icons/delete.png 404 (Not Found)
Comment