Bugs item #439070, was opened at 2001-07-06 07:50 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=439070&group_id=5757 Category: DynAPI 2 Extentions Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Scanlan (dscanlan) Assigned to: Robert Rainwater (rainwater) Summary: inline setHTML problems Initial Comment: I'm trying to use the setHTML function on an inline layer in a Netscape 4.76 / DynAPI 2.54 environment, and I get the following error:- JavaScript Error: http://dom-bracknell-1:8080/NewTimeTrack.nsf/WriteJS?OpenAgent&JScript=WriteDiv, line 62: DynAPI.document.all[Div].SetHTML is not a function. JavaScript Error: http://dom-bracknell-1:8080/NewTimeTrack.nsf/WriteJS?OpenAgent&JScript=WriteDiv, line 62: DynAPI.document.all[Div].SetHTML is not a function. The relevent code portion is:- function WriteDiv() { var Div = "SubtaskSchStartDateDIV" ; var StartDate = document._DominoForm.SubtaskSchStartDate.value; var MonthNames = document.Storage.ThisPersonMonthNames.value ; var HTMLCode = FormatDate( StartDate , MonthNames , 'DD MON YYYY'); DynAPI.document.all[Div].moveTo(100,100); DynAPI.document.all[Div].SetHTML("<I>" + HTMLCode + "</I>"); DynAPI.document.all[Div].moveTo(0,0); } The code to initialise everything is:- <HTML> <!-- Lotus-Domino (Release 4.6.1d (Intl) - 27 May 1998 on Windows NT/Intel) --> <HEAD> <SCRIPT LANGUAGE="JAVASCRIPT1.1" SRC="/NewTimeTrack.nsf/JS/Calendar/$FILE/RefreshNotesForm.js"> </SCRIPT> <SCRIPT LANGUAGE="JAVASCRIPT1.1" SRC="/NewTimeTrack.nsf/JS/Calendar/$FILE/Calendar_v1.8.js"> </SCRIPT> <SCRIPT LANGUAGE="JAVASCRIPT1.2" SRC="/NewTimeTrack.nsf/JS/DynAPI.core/$FILE/dynapi.js"> </SCRIPT> <SCRIPT LANGUAGE="JAVASCRIPT" SRC="/NewTimeTrack.nsf/JS/WriteDiv/$FILE/GetElement.js"> </SCRIPT> <SCRIPT LANGUAGE="JAVASCRIPT" SRC="/NewTimeTrack.nsf/WriteJS?OpenAgent&JScript=WriteDiv"> </SCRIPT> <Script language="Javascript1.2"> DynAPI.setLibraryPath('/NewTimeTrack.nsf/JS/DynAPI.Libraries/$FILE/*?OpenElement','.'); DynAPI.include('dynapi.api.*'); DynAPI.include('dynapi.ext.inline.js'); </SCRIPT><TITLE>Details for subtask 7</TITLE> Obviously the layer must be set up before this is called, as the .moveTo function is fine. I have had to modify the setLibraryPath function slightly to operate in my Notes/Domino environment, but I believe this is OK, as the other functions are OK, and I'm not getting any errors loading the libraries. Is this is bug or a known 'feature'? If a feature, does anyone know how I can modify inline DIV tags, without referring to <LAYER> and <ILAYER> tags on a Netscape 4 platform? Cheers ---------------------------------------------------------------------- >Comment By: David Scanlan (dscanlan) Date: 2001-07-06 09:42 Message: Logged In: YES user_id=259083 Oops. There's an old saying about wood and trees which probably covers this one! Many thanks for the pointer. I'm now finding no errors, but also finding nothing appear on the page. Using code: function WriteDiv() { var Div = "SubtaskSchStartDateDIV" ; var StartDate = document._DominoForm.SubtaskSchStartDate.value; var MonthNames = document.Storage.ThisPersonMonthNames.value ; var HTMLCode = FormatDate( StartDate , MonthNames , 'DD MON YYYY'); DynAPI.document.all[Div].setBgColor('Red'); DynAPI.document.all[Div].setSize( 80 , 20 ); DynAPI.document.all[Div].setHTML("<I>" + HTMLCode + "</I>"); } I get a red box covering the area of interest, but no text.... if you have any ideas, I'd appreciate them, but will have a look again next week as well. Again, many thanks for your assistance. ---------------------------------------------------------------------- Comment By: Ernest MacDougal Campbell III (emc3) Date: 2001-07-06 08:08 Message: Logged In: YES user_id=29866 Javascript is case sensitive. It should be 'setHTML', not 'SetHTML'. I think the DynAPI is pretty consistent in using lowercase to start off method names, then using inline caps to set words apart. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=439070&group_id=5757 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev