/* Copyright 1997 Acorn Computers Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /***************************************************/ /* File : JavaScript.c */ /* Purpose: JavaScript support */ /* Author : A.D.Hodgkinson */ /* History: 24-Jul-97: Created */ /***************************************************/ #include #include #include #include "swis.h" #include "flex.h" #include "HTMLLib.h" /* HTML library API, Which will include html2_ext.h, tags.h and struct.h */ #include "wimp.h" #include "wimplib.h" #include "event.h" #include "svcprint.h" #include "Global.h" #include "Utils.h" #include "Customer.h" #include "JavaScript.h" /*************************************************/ /* javascript_body_onload() */ /* */ /* When a page has finished fetching the main */ /* page data, a BODY tag may specify some */ /* JavaScript action. This functon should be */ /* called to carry out that action. */ /* */ /* Parameters: Pointer to a browser_data struct */ /* with a filled in 'onload' field */ /* describing the contents of the */ /* onLoad command in the HTML. */ /*************************************************/ _kernel_oserror * javascript_body_onload(browser_data * b) { #ifdef CUSTOMER_SPECIAL return customer_body_onload(b); #endif // Don't forget to set the onload field to NULL after use, // or this'll keep getting called as images fetch! return NULL; }