Using Firebug, I can see that the .js file has been loaded, so I was just wondering how this can happen? And what can I do to resolve the problem.? Here is the code:
Expand|Select|Wrap|Line Numbers
- function StartSmallSearchResult(cWhichClient, cIsJob) {
- if (cIsJob)
- {
- /*
- when this condition is commented out then there is no problem.
- The cIsJob is a parameter that may or may not be passed. I have two apps. where it is passed and one app. where it is not, where everything works fine.
- In these 3 apps. this function is called.
- I have a 4th app. where this function is not called, but the "if (cIsJob)" condition causes other function calls to fail.
- I have also tried
- if (cIsJob == true), but that does not work either.
- I can leave the results of the if condition in the function and that is not a problem. It is only the if condition that creates the problem.
- */
- var cJobOrGeoTech = true;
- }else
- var cJobOrGeoTech = false;
- }
- if (cWhichClient=="ComContact")
- {
- var cId = f1.COMID.value;
- }else{
- var cId = f1.ID.value;
- }
- var cWidth = 450;
- var cHeight = screen.availHeight;
- CenterWindow( cHeight, cWidth);
- smallSearchWindow =window.open('SmallSearchResult.exe?SEARCH='+cId+'&FieldName='+cWhichClient+'&isJobOrGeoTech='+cJobOrGeoTech+'&SearchId=yes&SETMODE=No',
- 'SmallsearchWindow',
- windowFeatures);
- smallSearchWindow.focus();
- return false;
- }