Hi guys, I met this problem, any help is appreciate. thanks.
How can I get the var of Java Script from c# webBrowser?
Below is part code of the html, the function in JS does not have name.
<script type="text/javascript">
dojo.require("myrta_tbs_dojo.portlethelper.chooseTime");
var portletHelper_ns_Z7_0HEPVU271835D0IFC7B1OP10Q2_;
var containsPreferredDate = false;
var containsSelectedDate = true;
var weekDate = new Date('Mon Nov 25 00:00:00 EST 2013');
var timeslots = { "ajaxresult" : { "slots" : {
"nextAvailableDate" : "27/11/2013 14:50",
"listTimeSlot" : [ {
"startTime" : "25/11/2013 8:35",
"availability" : false,
"slotNumber" : null
}, {
"startTime" : "01/12/2013 15:35",
"availability" : false,
"slotNumber" : null
} ]
}}};
var stSelectedSlot = '2013/11/28 08:35';
var timetableInterval = [515, 890, 935];
var extendedRangeFlag = false;
dojo.addOnLoad( function() {
portletHelper_ns_Z7_0HEPVU271835D0IFC7B1OP10Q2_ =
new myrta_tbs_dojo.portlethelper.chooseTime({portlet: portlet_ns_Z7_0HEPVU271835D0IFC7B1OP10Q2_});
dojo.require("myrta_tbs_dojo.portlethelper.chooseLocation");
how can I get the value of timeslots in c# code via WebBrowser? thanks.