We had a missionary from Japan Sunday at church that said "the Japaneese language was created by the devil", in reference to it being hard to learn. Coming from a very safe comfortable environment to the web sometimes makes me think the same about JavaScript. I will learn this and be looking back and laughing at this comment. Thanks.
fellathedog
Posts
-
var RVIPath = RVIPath || {}; -
var RVIPath = RVIPath || {};Thanks Bob. But why the OR operand? Here is the rest of the code: // This function will open a new window with the URL of the Image requested. OpenImageWindow = function (ImageViewer, RVIPath) { if (RVIPath != "XX") { var hgt = screen.height - 20; var wdt = screen.width * .5; var lft = 1100; var window_chrome = "toolbar=no,resizable=yes,height=" + hgt + ",width=" + wdt; cas_window1 = window.open(RVIPath, "NewWindow", window_chrome); cas_ window1.focus(); } } // This function will read thru a subfile and determine if the the Image field has a "Y" in it. // If it does then it will set the field to " " and display the Scanner Images. // If it does not then it sets the field to " " and leaves the URL blank. DisplayScannerImage = function (elementsLength, imgCharField, imgImage, ScannerPath, startingID) { var startpoint = startingID; var next = startpoint; for (var i = 0; i < elementsLength; i++) { var imgtext = document.getElementById(imgCharField + next); var imgUrl = document.getElementById(imgImage + next); if ($(imgtext).text() != 'Y') { $(imgtext).text(' '); $(imgUrl).hide(); } if ($(imgtext).text() == 'Y') { $(imgtext).text(' '); $(imgUrl).attr('src', ScannerPath); } next = next + 1; } }
-
var RVIPath = RVIPath || {};I am looking through JavaScript and searching the web to try to learn what it is doing. I see this as the first line of text. var RVIPath = RVIPath || {}; I know the || is a logical operator for OR. But the rest makes no sense to me.
-
How do you get your first job?Actually, IBM breathed new life into RPG with the latest operating system release. They have created Open Access, which allows a handler to re-route all the ugly 5250 traffic to the web for example. We are currenly using ASNA's handler to accomplish this. We import the displays into ASP.NET, then change them. The RPG buisness logic stays intact and runs on the POWER box (formerly AS/400), while the web server renders the web stuff. I know, there have been many discussions that RPG is dead. But I think it will be around for quite some time. Yes, the interface is dead, and has been dead, but all the user will see is a web page. RPG still powers it. It also gives me some tranportable skills with JavaScript and HTML.
-
How do you get your first job?I was in a technical school taking up Data Processing (that is what it was called back then). There was an opening for a computer operator. IBM System 3 model 15d, for those old folks. The teacher reccomended another student for the job. The manager hired me. When I went back and told the teacher I got the job, he said, gee, I told him to hire Matt. That was back in 1980. I have been working on IBM mid-range computers ever since, now programming mostly in RPG (not Role Playing Games, but Report Program Generator). Our language uses indicators, which used to be lights you could see on the computer when they were turned off and on.