Gary, I could do that, but I don't want to. It would mean I (or someone else) would have to write something (set a variable or whatever) and I do not want that, it's because I am working on a framework that is to be used many times over and over again, so I'd like to do the include dynamically. The method Steve suggested looked like it would do the trick, but since the problems on my machine with JS I cannot test it at the moment. Which brings me to another question, could the JavaScript engine in IE (or my machine) get corrupted?
-----Original Message----- From: Gary Menzel [mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 8:37 AM To: CFAussie Mailing List Subject: [cfaussie] Re: [OT] JavaScript function? > Page loads, script checks to see if any forms are present in the page (not a problem) then I want to get the name of the form Why cant you check to see if (what) you are going to generate any forms on the page at the server, and then include the JS there as you generate the page ? If not, and you are dynamically loading portions of a page through XMLHttp (or something) then get the script sent back with the form fragments there, extract the <script> portion using DHTML and dump it somewhere OR use window.execScript (this may be a MS extension). The other thing I have found is that when you insert a <SCRIPT> block using DHTML it is automatically executed. Once again - I have not checked this to be ECMA compliant. Gary Menzel IT Operations Brisbane -+- ABN AMRO Morgans Limited Level 29, 123 Eagle Street BRISBANE QLD 4000 PH: 07 333 44 828 FX: 07 3834 0828 ************************************************************************ **** If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact ABN AMRO Morgans Limited immediately by returning the email to [EMAIL PROTECTED] and destroy the original. We will refund any reasonable costs associated with notifying ABN AMRO Morgans. This email is confidential and may contain privileged client information. ABN AMRO Morgans has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Materials may also be transmitted without the knowledge of ABN AMRO Morgans. ABN AMRO Morgans Limited its directors and employees do not accept liability for the results of any actions taken or not on the basis of the information in this report. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any recommendation is made on the basis of our research of the investment and may not suit the specific requirements of clients. Assessments of suitability to an individual's portfolio can only be made after an examination of the particular client's investments, financial circumstances and requirements. ************************************************************************ **** --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ ---------------------------------------------------------------------------- This email, together with any attachments, is intended for the named recipient(s) only and may contain privileged and confidential information. If received in error, please inform the sender as quickly as possible and delete this email and any copies from your computer system network. If not an intended recipient of this email, you must not copy, distribute or rely upon it and any form of disclosure, modification, distribution and/or publication of this email is prohibited. Unless stated otherwise, this email represents only the views of the sender and not the views of the Queensland Government. ---------------------------------------------------------------------------- --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
