Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conflict - VI6.0/JavaScript(client)/Netscape

Status
Not open for further replies.

gheta

Technical User
Jul 21, 2000
8
US
Hi folks,<br>I'm just a biginner with VI 6.0<br>I Have installed and am playing with the product under NT, IIS4.0., using Netscape<br>4.72 and IE5.0.<br>I'm building some very simple Web applications using VI6.0. I'm using<br>DTC's and scripting via SOM (Script Object Module).<br>The default scripting language is set to Java Script for Client and VBScript for the server.<br>When I run the application(client processing) it is working only with IE but not with Netscape.<br>What am I missing? <br>Thanks in Advance<br>
 
Please tell use what the error or put up the script so we can have a look <p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
unicorn11,<br>Thanks for replying.<br>By &quot;not working&quot;, I mean that the data is not shown in the browser and some of the<br>generated script by IV6.0 (the grayed-out portion, lines 7-9 ) shows up in the browser. If this is not enough clue I have pasted the script below:<br><br>**********************************************************<br>&lt;%@ Language=VBScript%&gt;<br>&lt;SCRIPT id=DebugDirectives runat=server language=javascript&gt;<br>// Set these to true to enable debugging or tracing<br>@set @debug=false<br>@set @trace=false<br>&lt;/SCRIPT&gt;<br>&lt;% ' VI 6.0 Scripting Object Model Enabled %&gt;<br>&lt;!--#include file=&quot;_ScriptLibrary/pm.asp&quot;--&gt;<br>&lt;% if StartPageProcessing() Then Response.End() %&gt;<br>&lt;FORM name=thisForm METHOD=post&gt;<br>&lt;HTML&gt;<br>&lt;HEAD&gt;<br>&lt;META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;&gt;<br>&lt;TITLE&gt;&lt;/TITLE&gt;<br>&lt;SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript&gt;<br>&lt;!--<br><br>function Button1_onclick() {<br>url=' + Listbox1.getValue(Listbox1.selectedIndex);<br>thisPage.navigateURL(url);<br>}<br><br>//--&gt;<br>&lt;/SCRIPT&gt;<br>&lt;/HEAD&gt;<br>&lt;BODY&gt;<br>&lt;H1&gt;&nbsp;&nbsp;This&nbsp;&nbsp;is nav.htm!&lt;/H1&gt;<br>&lt;P&gt;&nbsp;&lt;/P&gt;<br>&lt;P&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; startspan<br>&lt;OBJECT classid=&quot;clsid:B5F0E450-DC5F-11D0-9846-0000F8027CA0&quot; height=21 id=Listbox1 <br>style=&quot;HEIGHT: 21px; LEFT: 10px; TOP: 34px; WIDTH: 85px&quot; width=85&gt;<br> &lt;PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2249&quot;&gt;<br> &lt;PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;556&quot;&gt;<br> &lt;PARAM NAME=&quot;id&quot; VALUE=&quot;Listbox1&quot;&gt;<br> &lt;PARAM NAME=&quot;DataSource&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;DataField&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;ControlStyle&quot; VALUE=&quot;0&quot;&gt;<br> &lt;PARAM NAME=&quot;Enabled&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;Platform&quot; VALUE=&quot;257&quot;&gt;<br> &lt;PARAM NAME=&quot;UsesStaticList&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;CLSize&quot; VALUE=&quot;2&quot;&gt;<br> &lt;PARAM NAME=&quot;CLED1&quot; VALUE=&quot;dynamac&quot;&gt;<br> &lt;PARAM NAME=&quot;CLEV1&quot; VALUE=&quot;<A HREF=" TARGET="_new"> &lt;PARAM NAME=&quot;CLED2&quot; VALUE=&quot;yahoo&quot;&gt;<br> &lt;PARAM NAME=&quot;CLEV2&quot; VALUE=&quot;<A HREF=" TARGET="_new"> &lt;PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;&gt;<br> <br> &nbsp;&nbsp;&lt;/OBJECT&gt;<br>--&gt;<br>&lt;script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/EventMgr.HTM&quot;&gt;&lt;/script&gt;<br>&lt;script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/ListBox.HTM&quot;&gt;&lt;/script&gt;<br>&lt;SCRIPT LANGUAGE=JavaScript&gt;<br>function _initListbox1()<br>{<br> Listbox1.addItem('dynamac', '<A HREF=" TARGET="_new"> Listbox1.addItem('yahoo', '<A HREF=" TARGET="_new"> _initListbox1, null);<br>&lt;/script&gt;<br><br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; endspan--&gt;<br>&lt;/P&gt;<br>&lt;P&gt;&nbsp;&lt;/P&gt;<br>&lt;P&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; startspan<br>&lt;OBJECT classid=&quot;clsid:B6FC3A14-F837-11D0-9CC8-006008058731&quot; height=27 id=Button1 <br>style=&quot;HEIGHT: 27px; LEFT: 10px; TOP: 55px; WIDTH: 38px&quot; width=38&gt;<br> &lt;PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;1005&quot;&gt;<br> &lt;PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;714&quot;&gt;<br> &lt;PARAM NAME=&quot;id&quot; VALUE=&quot;Button1&quot;&gt;<br> &lt;PARAM NAME=&quot;Caption&quot; VALUE=&quot;GO&quot;&gt;<br> &lt;PARAM NAME=&quot;Image&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;AltText&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;Platform&quot; VALUE=&quot;257&quot;&gt;<br> &lt;PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;&gt;<br> <br> &nbsp;&nbsp;<br>&lt;/OBJECT&gt;<br>--&gt;<br>&lt;script language=&quot;JavaScript&quot; src=&quot;_ScriptLibrary/Button.HTM&quot;&gt;&lt;/script&gt;<br>&lt;SCRIPT LANGUAGE=JavaScript&gt;<br>function _initButton1()<br>{<br> Button1.value = 'GO';<br> Button1.setStyle(0);<br>}<br>CreateButton('Button1', _initButton1, null);<br>&lt;/script&gt;<br><br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; endspan--&gt;<br>&lt;/P&gt;<br>&lt;P&gt;&nbsp;&lt;/P&gt;<br>&lt;P&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; startspan<br>&lt;OBJECT classid=&quot;clsid:8CC35CD6-E98B-11D0-B218-00A0C92764F5&quot; id=PageObject1 <br>style=&quot;LEFT: 0px; TOP: 0px&quot;&gt;<br> &lt;PARAM NAME=&quot;ExtentX&quot; VALUE=&quot;4233&quot;&gt;<br> &lt;PARAM NAME=&quot;ExtentY&quot; VALUE=&quot;1508&quot;&gt;<br> &lt;PARAM NAME=&quot;State&quot; VALUE=&quot;(ObjectName_Unmatched=\qnav_htm\q,NavigateMethods=(Rows=0),ExecuteMethods=(Rows=0),Properties=(Rows=0),References=(Rows=0))&quot;&gt;<br> <br> &nbsp;&nbsp;&lt;/OBJECT&gt;<br>--&gt;<br>&lt;SCRIPT LANGUAGE=JavaScript SRC=&quot;_ScriptLibrary/pm.js&quot;&gt;&lt;/SCRIPT&gt;<br>&lt;SCRIPT LANGUAGE=JavaScript&gt;<br>nav_htm = thisPage;<br>nav_htm.location = &quot;nav.htm&quot;;<br>nav_htm.navigate = new Object;<br>nav_htm.navigate.show = Function('thisPage.invokeMethod(&quot;&quot;, &quot;show&quot;, this.show.arguments);');<br>&lt;/SCRIPT&gt;<br><br><br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; endspan--&gt;<br>&lt;/P&gt;<br><br><br>&lt;P&gt;&nbsp;&lt;/P&gt;<br>&lt;P&gt;&nbsp;&lt;/P&gt;<br>&lt;A HREF=&quot;<A HREF=" TARGET="_new"> HREF=" TARGET="_new"> ' VI 6.0 Scripting Object Model Enabled %&gt;<br>&lt;% EndPageProcessing() %&gt;<br>&lt;/FORM&gt;<br>&lt;/HTML&gt;<br>***************************************
 
One step forward!<br>By renaming the file from *.htm to *.asp I got rid of&nbsp;&nbsp;the garbage code the showed<br>up in the browser. But still the objects and the data don't show up correctly!<br>gheta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top