IceArmy
3c665681f4
Fix possible bug where if CoffeeScript starts with a shebang (hashbang) #!, then // gets put in front of it; but this is not a comment in CoffeeScript, so it causes a problem with the conversion.
2011-06-08 19:00:07 -07:00
IceArmy
91ceec1e9b
Add a unique id to associate resource request and receive.
2011-06-08 14:34:30 -07:00
Ariya Hidayat
555f80c899
onResourceReceived with stage=start should fire only once.
...
We detect if stage=start has been fired before. If yes, no need to
fire again, thus making the event is associated with the very
first byte received for the given resource.
2011-06-08 07:57:51 -07:00
Ariya Hidayat
5b2fdca640
Add a unique id to associate resource request and receive.
2011-06-08 07:54:28 -07:00
Ariya Hidayat
615ac6efa9
Merge pull request #67 from Roejames12/master
...
Updates..
2011-06-08 06:16:35 -07:00
IceArmy
15e596e30c
Add hook to handleStarted()
2011-06-08 04:58:20 -07:00
IceArmy
d4548b9ad9
Transform all yes,no args into True,False in parseArgs()
2011-06-08 03:14:13 -07:00
IceArmy
f0801ad356
Regenerate resources
2011-06-08 03:14:13 -07:00
IceArmy
5c6338c060
Remove encode() from utils.py
2011-06-08 03:14:13 -07:00
IceArmy
0e3b765cc4
Add 'onResourceReceived' event, fired when resource is being received.
2011-06-08 03:13:18 -07:00
Ariya Hidayat
1cae77a3e0
Add 'onResourceReceived' event, fired when resource is being received.
...
This is now being used in the netsniff.js example.
2011-06-08 01:10:00 -07:00
Ivan De Marino
60793e4c6b
Renaming "page.handlers" to "page._handlers": more common for "private" stuff.
2011-06-07 23:39:12 +01:00
Ivan De Marino
ce0577adff
"loadJsFile()" -> "injectJs"
...
* According to Issue #32 (http://code.google.com/p/phantomjs/issues/detail?id=32 ) I added a "lookup logic" that searchs for the file following those steps:
*# Search for file at given path (relative to PWD or absolute - no difference)
*# Is file there? Inject it
*# Is file not there? Try looking for it in "scriptLookupDir"
*# Is file there? Inject it
*# Is file not there? abort
* "scriptLookupDir" is an extra property for WebPage, that, as by it's name, defines a place where to look to script to inject
* Script can alter the scriptLookupDir, if they want
* Updated "injectme.js" accordingly
2011-06-07 23:22:41 +01:00
Ariya Hidayat
ea62c17b91
Fix typo, it's C5E and not CSE.
2011-06-07 11:27:10 -07:00
Ariya Hidayat
1286e99e35
Merge pull request #66 from Roejames12/master
...
Some updates
2011-06-07 11:18:50 -07:00
IceArmy
81627896c2
Support every possible PDF format
2011-06-07 10:57:08 -07:00
IceArmy
f419a958a4
Make build_binary.py able to import no matter what
2011-06-07 09:34:07 -07:00
Ivan De Marino
5b6f2731c4
Added support for "page.click()" and "page.loadJsFile()".
...
* click() accepts a "querySelectorAll" input - can click on multiple things in one call
* loadJsFile() is synchronous at loading JS in the page
* added 2 examples in JavaScript to show how to use (and test) the new methods
* NOTE: someone will have to generate the .coffee version - I tried using "http://ricostacruz.com/js2coffee/ " but it hangs and I'm not willing to learn why :P - I don't like Coffee Script.
2011-06-07 17:20:22 +01:00
Ariya Hidayat
d1973c28f3
Merge pull request #64 from Roejames12/master
...
More updates..
2011-06-07 08:35:28 -07:00
IceArmy
805c824ff3
Convert netsniff.js to CoffeeScript
2011-06-07 02:52:01 -07:00
IceArmy
33f0930d8c
Regenerate resources
2011-06-07 02:32:12 -07:00
IceArmy
48704069c2
Enumerate all headers in the HTTP request.
2011-06-07 02:32:12 -07:00
IceArmy
4b3cf65b2e
Get away with manual qDebug() since we can use the API now.
2011-06-07 02:32:12 -07:00
IceArmy
8314ad3197
Add "onResourceRequested" event, fired when request is started.
...
To see how this is being used, see the new examples/netsniff.js.
http://code.google.com/p/phantomjs/issues/detail?id=2
2011-06-07 02:31:33 -07:00
IceArmy
150b33211f
Merge branch 'master' of https://github.com/ariya/phantomjs
2011-06-07 01:09:10 -07:00
Ariya Hidayat
4dfe70f620
Enumerate all headers in the HTTP request.
2011-06-07 00:19:12 -07:00
Ariya Hidayat
a0ab4f798e
Get away with manual qDebug() since we can use the API now.
2011-06-07 00:14:01 -07:00
Ariya Hidayat
8722399c0a
Add "onResourceRequested" event, fired when request is started.
...
To see how this is being used, see the new examples/netsniff.js.
http://code.google.com/p/phantomjs/issues/detail?id=2
2011-06-07 00:06:08 -07:00
Ariya Hidayat
cf8a890f8b
loadspeed.js: Fixed missing semicolons.
2011-06-06 23:52:39 -07:00
IceArmy
189703cffc
rename setup.py (for building binaries) to build_binary.py
2011-06-06 23:09:06 -07:00
IceArmy
ce27e879a2
Setup setup.py information
2011-06-06 22:46:05 -07:00
IceArmy
5f66b1c32b
Add AUTHORS file for contributors
2011-06-06 22:31:36 -07:00
Ariya Hidayat
2e711029b2
Merge pull request #63 from franciscosouza/master
...
Providing an easier way to install PyPhantomJS via PyPI
2011-06-06 20:05:12 -07:00
Francisco Souza
08c6d232af
Added licensing headers to Python files
2011-06-06 23:59:07 -03:00
Ariya Hidayat
a1344cf986
Merge pull request #62 from Roejames12/88f9434a0cbd50069404
...
Convert 3 more examples to CoffeeScript
2011-06-06 19:51:20 -07:00
Francisco Souza
bfcc186d93
Using markdown
2011-06-06 23:27:23 -03:00
Francisco Souza
6687516724
Merge branch 'master' of https://github.com/Roejames12/phantomjs
2011-06-06 23:25:55 -03:00
Francisco Souza
7342d0f818
Merge branch 'master' of https://github.com/ariya/phantomjs
2011-06-06 23:25:39 -03:00
IceArmy
88f9434a0c
Convert run-jasmine.js to CoffeeScript
2011-06-06 19:01:45 -07:00
IceArmy
331be469bc
Convert run-qunit.js to CoffeeScript
2011-06-06 18:57:46 -07:00
IceArmy
6390f92550
Convert imagebin.js to CoffeeScript
2011-06-06 18:52:33 -07:00
Ariya Hidayat
8ee3340d7e
Merge pull request #61 from Roejames12/master
...
Add loadStarted and loadFinished events
2011-06-06 14:44:14 -07:00
IceArmy
99c62d41ef
Regenerate resources
2011-06-06 14:17:13 -07:00
IceArmy
d941691f93
Introduce "onLoadFinished" event, fired when loading is completed.
...
It is now possible to specify only the URL in the open() function.
The loading callback can be set using onLoadFinished.
Example use:
var page = new WebPage();
page.onLoadFinished = function () {
console.log("Done!");
phantom.exit();
};
page.open("http://example.com ");
2011-06-06 14:16:48 -07:00
IceArmy
841dc41f41
Introduce 'onLoadStarted' event which will fire upon page loads.
...
An example use:
var page = new WebPage();
page.onLoadStarted = function() {
console.log('start loading...Please wait');
};
page.open("http://example.com ", function (status) {
console.log('Done ' + status);
phantom.exit();
});
2011-06-06 14:15:08 -07:00
Ariya Hidayat
cec73ed07d
Merge branch 'master' of github.com:ariya/phantomjs
2011-06-06 01:46:35 -07:00
Ariya Hidayat
c8504f6994
Introduce "onLoadFinished" event, fired when loading is completed.
...
It is now possible to specify only the URL in the open() function.
The loading callback can be set using onLoadFinished.
Example use:
var page = new WebPage();
page.onLoadFinished = function () {
console.log("Done!");
phantom.exit();
};
page.open("http://example.com ");
2011-06-06 01:40:17 -07:00
Ariya Hidayat
d9d9d5a8ac
Introduce 'onLoadStarted' event which will fire upon page loads.
...
An example use:
var page = new WebPage();
page.onLoadStarted = function() {
console.log('start loading...Please wait');
};
page.open("http://example.com ", function (status) {
console.log('Done ' + status);
phantom.exit();
});
2011-06-06 01:39:24 -07:00
Ariya Hidayat
c68762dc9d
Add --version command-line option.
2011-06-06 00:36:31 -07:00
IceArmy
435c66c153
Cleanup INSTALL.md
2011-06-05 17:40:27 -07:00