|
List Info
Thread: How to access vb script in js.
|
|
| How to access vb script in js. |

|
2006-08-13 03:33:40 |
Hi,
Actually, the problem is as follows
Vbscript is embedded in html file. Lets call as A .html file
On an another B.html file , the js embedded has to call the
vbscript
function which is in A.html.
Please note that both the html files are independent of each
other.
So ,how do i solve this problem ?
regards,
Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|
|
| How to access vb script in js. |

|
2006-08-13 12:59:45 |
does both script are content-dependant ? Meaning that, do
you need to
access any data in the HTML structure of document, or are
the script
use mostly for validations, or data processing ? If you can,
separate
you embedded scripts (and I would strongly recommend to do
so in any
case), and simply include them both in both pages.
<script type="text/vbscript"
src="a.vbs"></script>
<script type="text/javascript"
src="b.vbs"></script>
Then call your vbscript/javascript functions as usual...
(NOTE : do not use the language attribute as it is obsolete)
See this link for more informations :
http://www.webreference.com/dhtml/column22/js-vbFunct.
html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|
|
| How to access vb script in js. |

|
2006-08-14 16:02:32 |
Hi,
It is not possible for me to include both the scripts in a
html file.
As the vbscript embedded html file is generated from
different
application.
I have to pass parameters from my js function to the
vbscript function
, and get the return value.Hence, it is used for data
processing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|
|
| How to access vb script in js. |

|
2006-08-15 17:29:14 |
anand wrote:
> Hi,
> It is not possible for me to include both the scripts
in a html file.
> As the vbscript embedded html file is generated from
different
> application.
>
> I have to pass parameters from my js function to the
vbscript function
> , and get the return value.Hence, it is used for data
processing.
Hi,
If it is to be done in client-side javascripting, my naive
solution
would utilize the XMLHTTP to retrieve "b.html",
then parse for the
script part, and finally create a new <script> in this
"a.html" with
the content of the parsed script.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|
|
| How to access vb script in js. |

|
2006-08-15 19:22:25 |
ok... perhaps you could create two iframes where you will
load the
generated HTML page inside (make those iframes width = 0 and
height =
0, not hidden), then call the functions inside those iframe
in a js
script as :
var iframeA = document.getElementById( 'iframeA' );
var iframeB = document.getElementById( 'iframeB' );
var returnValueA = iframeA.functionToCall( arguments, ... );
var returnValueB = iframeA.functionToCall( arguments, ... );
... well, of course this is untested, but you could give it
a shot. The
use of IFrame could work as the scripting engine, css
engine, etc. are
isolated from the parent page.
Goog luck.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|