Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use Wizard Tools or Code everything? Pin
Mark Churchill29-Jan-08 18:20
Mark Churchill29-Jan-08 18:20 
GeneralRe: Use Wizard Tools or Code everything? Pin
blooper0230-Jan-08 22:19
blooper0230-Jan-08 22:19 
GeneralRe: Use Wizard Tools or Code everything? Pin
Mark Churchill31-Jan-08 0:11
Mark Churchill31-Jan-08 0:11 
Questionreversing gethashcode() Pin
haseeb_saeed29-Jan-08 9:12
haseeb_saeed29-Jan-08 9:12 
GeneralRe: reversing gethashcode() Pin
pmarfleet29-Jan-08 9:30
pmarfleet29-Jan-08 9:30 
AnswerRe: reversing gethashcode() Pin
Guffa29-Jan-08 9:32
Guffa29-Jan-08 9:32 
GeneralRe: reversing gethashcode() Pin
Ennis Ray Lynch, Jr.29-Jan-08 9:37
Ennis Ray Lynch, Jr.29-Jan-08 9:37 
GeneralWebbrowser control + com visable functions Pin
Spacix One29-Jan-08 6:29
Spacix One29-Jan-08 6:29 
I have an application where I use the web browser control and allow JScript to interact with my application though the object for scripting class that is set to com visible.

I've been looking around the and I can't seem to find the limits of what data types/object you can pass to and from JScript. I know the basics work like int, float, string, ect...

But I'd like to pass XML directly, but not as text due to the overhead of phrasing it. So does anyone know the limits or where to find out more information about the C# to JScript COM interop though the web browser control?

I know the following works:
public string feedJScriptXML()
{
//I know this example method is pointless, but it is just an example. The actual program sends XML it builds from other values
XmlDocument myXMLDoc = new XmlDocument();
myXMLDoc.Load("C:\myXMLfile.xml");
return myXMLDoc.OuterXml;
}

Then send it as text to JScript and use it in JScript by
function readCsharpXML()
{
var xmlString = window.external.feedJScriptXML();
var theXML = new ActiveXObject("Microsoft.XMLDOM");
theXML.load(xmlString);
}


The above is 100x better than writing the XML to a file and then reading the file into JScript... I think it might be better if I could dump the XML document into the JScript directly to save the extra phrase time... This application needs to read the XML 100's of times a minute so every little bit helps...

The only information I've found on this is very basic via the MSDN C# tutorials http://msdn2.microsoft.com/en-us/vcsharp/bb798044.aspx?wt.slv=RightRail[^]

and the WebBrowser.ObjectForScripting information at MSDN: http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.objectforscripting(VS.80).aspx[^]


-Spacix
All your skynet questions[^] belong to solved

GeneralRe: Webbrowser control + com visable functions Pin
led mike29-Jan-08 6:58
led mike29-Jan-08 6:58 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One29-Jan-08 7:53
Spacix One29-Jan-08 7:53 
GeneralRe: Webbrowser control + com visable functions Pin
led mike29-Jan-08 8:26
led mike29-Jan-08 8:26 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active29-Jan-08 8:29
mentorNot Active29-Jan-08 8:29 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One29-Jan-08 9:40
Spacix One29-Jan-08 9:40 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active29-Jan-08 14:32
mentorNot Active29-Jan-08 14:32 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One30-Jan-08 4:52
Spacix One30-Jan-08 4:52 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active30-Jan-08 5:01
mentorNot Active30-Jan-08 5:01 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One30-Jan-08 5:39
Spacix One30-Jan-08 5:39 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active30-Jan-08 5:46
mentorNot Active30-Jan-08 5:46 
GeneralHelp with User Validation Pin
MumbleB29-Jan-08 5:52
MumbleB29-Jan-08 5:52 
GeneralRe: Help with User Validation Pin
led mike29-Jan-08 5:58
led mike29-Jan-08 5:58 
GeneralRe: Help with User Validation Pin
MumbleB29-Jan-08 6:29
MumbleB29-Jan-08 6:29 
GeneralRe: Help with User Validation Pin
Giorgi Dalakishvili29-Jan-08 6:04
mentorGiorgi Dalakishvili29-Jan-08 6:04 
GeneralRe: Help with User Validation Pin
led mike29-Jan-08 6:38
led mike29-Jan-08 6:38 
QuestionSimulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Mike Curry - Canada29-Jan-08 5:09
Mike Curry - Canada29-Jan-08 5:09 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Mike Ellison29-Jan-08 5:43
Mike Ellison29-Jan-08 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.