View Single Post
Old 04-02-2008, 12:20 PM   #3 (permalink)
Scriptiz
Newbie
 
Scriptiz's Avatar
 
Join Date: Oct 2006
Location: Belgium
Posts: 37
Send a message via MSN to Scriptiz
Default

I knew those solutions, but the problem is that I ave to invoke a javascript in my page, and to find the parameters of this javascript function.

Actually with the webBrowser control available, I can navigate to the page I want, get the parameters of the javascript function by some functions wich analyse the html-code. But then when i change the Url of my webBrowser in : "javascript: the_function_searched("param1", "other_param");" the browser don't execute the javascript function.

In firefox, if I look manually in the code for this function, I can change the url in this way to invoke the javascript function. But in IE, or my webBrowser control wich is based on IE, the manually way doesn't work neither...

I find a way to solve this problem by the webBrowser wich got à Document instance wich permit to call the InvokeScript([script], [array of params]) but it doesn't work too...

Another way I think, is to user the firefox.exe to open new url, but then how can I get the source code of my page, because in this page, I'm identified by a cookie, session variables, and a get variable wich contain a hash code. Thus at each identification on the website by a different navigator, the hash is changed, and I can't get farther. So the only way is to stay in the same navigator, but my webBrowser don't permit me to invoke scripts... so I really have to find a way to totally control the "moves" of firefox or to invoke the javascripts functions in this webBrowser controle.

I'm searching for a solution many hours, an I got headaches now

Thanks for your help.
Scriptiz is offline   Reply With Quote