Tuesday 15 January 2013

ASP Classic - Include VBScript page in a JavaScript page? -


Is there a way to include a VBScript page in an ASP page using Javascript?

An ASP page is written in Javascript, but our sidebar menu is written in VBScript. When I include the sidebar ASP file in Javascript, the server returns an error.

& lt; % @ LANGUAGE = "JavaScript"%>

& lt;%

...

& lt; ! - # include file = "sidebar asp" ->

...

where sidebar AP is written using VBScript.

You can try it, but I guess that sidebar.asp is preceded by your javascript code will be performed.

  & lt; % @ LANGUAGE = "Javascript"%> & Lt;% ... & lt; Script language = "VBscript" runat = server & gt; & Lt; ! - # include file = "sidebar.asp" - & gt; & Lt; / Script & gt; ...  

No comments:

Post a Comment