eazygen — 2012-12-03T21:12:43-05:00 — #1
I have trawled through various sites but have been unable to find a satisfactory solution.
What I would like to do is to embed a browser (preferable FF or Chrome) into a page and then send statements to the browser so it reflects what I am sending it. It is like a preview to help me perfect my instrctions.
Has anyone got experience of this or knows the best way to go about it?
Many thanks in advance,
chris_upjohn — 2012-12-03T22:42:12-05:00 — #2
What do you mean by "Embed a browser"?
Do you mean an image or an actual browser window?
eazygen — 2012-12-04T01:26:51-05:00 — #3
Thanks for your time.
ralphm — 2012-12-04T03:11:34-05:00 — #4
Why not just run the code in your browser, either by viewing the results on the page or in the console? Would those options work?
eazygen — 2012-12-04T03:19:18-05:00 — #5
Could you expand about the console you mentioned. I don't know much about that. How would it shiow on a page and respond to statements I give it?
ralphm — 2012-12-04T03:34:19-05:00 — #6
I only know the basics of it, but create a .html page, for example, with some JS in it. A simple example would be
var name = "Jack";
console.log("My name is " + name);
Now, open Chrome, click View > Developer > Developer Tools, and a window opens at the bottom of the browser. Click the Console tab, then refresh the page. You will see the output of the script at the in the Console window. (There are instructions for the Mac version of Chrome, but I assume it's similar on Windoze.)
You can type instructions in the Console, too, and thus interact with the browser.
This is a great video that shows what you can do with Chrome dev tools:
eazygen — 2012-12-07T04:22:59-05:00 — #7
That was not quite what I was after, but thank you very much for your time and thoughts.
solidcodes — 2012-12-07T06:04:03-05:00 — #8
Are you trying to test a page for cross browser compatability?
eazygen — 2012-12-07T06:39:56-05:00 — #9
No I want to feed a set of instructions (java components actually) into a browser and see the results - it is a screen designer I am after. I could use an external browser page, but that would not very user friendly