Execution of javascript in page context

chris007

Новичок
Регистрация
09.10.2012
Сообщения
14
Благодарностей
1
Баллы
0
Hello,

I've been trying to execute javascript for various DOM operations but I didn't figure a way.

First I tried the "Own JavasScript" box but it seems it does not see the DOM or access the window and document objects.

Then I tried to use ExecScript or InsertScript in a "Own C#" box, but they return Resut:ok yet nothing happens.


Can you detail an example, like popping up an alert("test") box?

Can I embed my own javascript with the page in general? It would be a great miss not to have access to the page in this way. I could use jQuery or some other library to easily make tests and control the page.

Thank you
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
Not possible to embed your js with a page's source for now.
 

chris007

Новичок
Регистрация
09.10.2012
Сообщения
14
Благодарностей
1
Баллы
0
I see.
I managed to do everything I wanted with the C# API. :-)

Thanks
 

EthanXu

Новичок
Регистрация
07.04.2013
Сообщения
5
Благодарностей
0
Баллы
1
the same to me..
Did anybody solve this problem?
 

EthanXu

Новичок
Регистрация
07.04.2013
Сообщения
5
Благодарностей
0
Баллы
1
could you show a example how to use execScript and InsertScript ? I never execute the two functions successfully ..
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)