Ariya Hidayat
f4d40b82f1
No need for the command-line --upload-file.
2011-06-05 13:26:10 -07:00
Ariya Hidayat
f8b9c322ea
Bring back file upload support.
...
Instead of using command-line option, file can be uploaded using
WebPage.uploadFile function, e.g.:
var page = new WebPage();
page.open(....., function () {
page.uploadFile('input#attachment', '/path/to/file');
});
uploadFile() accepts selector name (first argument), this is used to identify
which input element will need the filename (second argument).
2011-06-05 00:34:27 -07:00
IceArmy
69ff230f3a
Revert "Fix bug where WebPage.evaluate had a syntax error."
...
This reverts commit d2c520a777
.
2011-06-01 12:14:20 -07:00
IceArmy
d2c520a777
Fix bug where WebPage.evaluate had a syntax error.
...
It now creates a proper anonymous function (which passes this for global context)
2011-06-01 02:09:07 -07:00
Ariya Hidayat
dfb19a4d8a
WebPage callback for its JS alert.
...
This is similar to the way console message is handled (see commit
5be29972
). WebPage callback for alert is called 'onAlert'.
2011-05-29 00:29:29 -07:00
Ariya Hidayat
1d9c349265
Make exit() synchronous.
...
We might still need to find a workaround if this crashes on Windows
(see commit bb355db6
).
2011-05-29 00:20:56 -07:00
Ariya Hidayat
5be29972cf
WebPage callback for its console message.
...
See http://code.google.com/p/phantomjs/issues/detail?id=12 .
By default, WebPage is "silent" and does not report its console message.
This can be overridden easily, e.g:
var page = new WebPage();
page.onConsoleMessage = function (msg) {
console.log(msg);
};
page.open(.....);
2011-05-28 21:16:18 -07:00
Ariya Hidayat
e7ca6c0aaf
Render the web page using tiling approach.
...
http://code.google.com/p/phantomjs/issues/detail?id=54
Because Qt software rasterizer has a bug in its fillRect() when
dealing with very big paint device, we split the painting into
smaller-size tiles.
2011-05-28 16:02:48 -07:00
Ariya Hidayat
7594a050e9
Refactor render(), split the buffer rendering to its own function.
...
This can be useful for issue #15 .
2011-05-28 13:51:39 -07:00
Ariya Hidayat
ff726de796
Simplify buffer handling in render().
2011-05-28 13:45:23 -07:00
Ariya Hidayat
b1af26ecc0
Support different HTTP operations for loading a page.
...
http://code.google.com/p/phantomjs/issues/detail?id=88
2011-05-28 02:06:20 -07:00
Ariya Hidayat
7e099abaf2
User-agent is part of WebPage settings, not WebPage object itself.
2011-05-27 22:50:33 -07:00
Ariya Hidayat
2a46ccde8b
WebPage object can have settings.
2011-05-27 22:36:34 -07:00
Ariya Hidayat
b8fc6558a2
Bring back load-images and load-plugins option.
2011-05-27 20:39:09 -07:00
Ariya Hidayat
f5e070d444
Store bootstrap code in its own file.
2011-05-26 02:18:09 -07:00
Ariya Hidayat
a65ae9b1a8
Reenable custom network access manager.
2011-05-26 01:56:43 -07:00
Ariya Hidayat
9a2fd4b361
Bring back some default web page settings.
2011-05-26 00:27:55 -07:00
Ariya Hidayat
df64f60ec9
Use WebPage, not QWebPage, inside Phantom class.
2011-05-25 14:00:20 -07:00
Ariya Hidayat
d15e097815
Refactor most of functionalities to WebPage object.
...
This breaks all examples (will be fixed slowly). Some features, e.g.
file upload, are also still regressed.
2011-05-25 10:49:35 -07:00
rgieseke
11cc69efa4
Update CoffeeScript to version 1.1.1.
2011-05-11 11:45:23 +02:00
Peter Jihoon Kim
57f525a78a
added option: --ignore-ssl-errors=[yes|no]
2011-04-29 16:32:40 +08:00
Ariya Hidayat
710e947ac7
Fix issue 93: build with Qt 4.5.
...
Guard some Qt >= 4.6 features in version checks.
2011-04-18 22:50:27 -07:00
Ariya Hidayat
a23a012ef9
Fix issue 93: build with Qt 4.6
...
Guard some new enums of QNetworkAccessManager in Qt version checks.
2011-04-18 22:47:29 -07:00
Ivan De Marino
4f1fbb3f81
Commented out flags for "phantomjs.pro" that can be useful to have at hand.
2011-04-19 01:04:15 +01:00
IceArmy
924eaa9cbd
Only show status code if it exists
2011-04-13 07:45:54 -07:00
IceArmy
acbc62a1a5
Added HTTP status code to debug messages in handleFinished()
2011-04-13 04:07:53 -07:00
IceArmy
6fdc9d11f5
Allow setting clipRect to height:0, width:0, which will 'reset' the clipRect
2011-04-13 02:08:33 -07:00
IceArmy
3ca9137219
Show response URL on NetworkAccessManager's Reponse (because you can't always know what request the response came from)
2011-04-12 18:53:23 -07:00
IceArmy
6f9f368cab
Fixed issue 86 - req.url() in NetworkAccessManager createRequest() displays incorrectly
2011-04-12 18:37:29 -07:00
Jon Turner
e82619df4d
Removed old function declaration
2011-04-12 18:10:53 +01:00
Jon Turner
0e1e5071fb
Added option for disk cache use
2011-04-12 15:21:09 +01:00
Ariya Hidayat
e808690fd8
Default build should not litter the output with debug messages.
2011-04-09 23:04:01 -07:00
Ariya Hidayat
7280e6d5c6
For the moment, remove simulateMouseClick, includeJS, and loadJS.
...
See http://code.google.com/p/phantomjs/issues/detail?id=32 and
http://code.google.com/p/phantomjs/issues/detail?id=41 .
2011-04-09 22:40:36 -07:00
Ariya Hidayat
c0ea3d8732
Preserve last year copyright.
2011-04-09 22:37:06 -07:00
Ivan De Marino
8ed9dc1c44
Adding forgotten Include Guards.
2011-04-09 19:49:22 +01:00
Ivan De Marino
1f1e1d17e4
Amended a stupid mistake with Version String.
...
I always forget that the Pre-Compiler passes only once.
2011-04-09 19:48:58 +01:00
Ivan De Marino
be72a29c9f
Propagated License Headers.
2011-04-09 18:34:04 +01:00
Ivan De Marino
71e0612ccc
Added analysis of the HTTP Reply in the NetworkAccessManager.
2011-04-09 18:26:04 +01:00
Ivan De Marino
6ec8b3b669
New "shim" Network Access Manager, new 'browsermode' example and more.
...
The new Network Access Manager currently is designed to do just logging:
- logs HTTP Method type
- logs HTTP Destination URL
The new 'browsermode':
It's in "/examples" and make PhantomJS do just a call to "open(url)".
It has a companion shell script to help with the task.
Also, improvement for Message Handler:
messages are now prefixed with ISO Datetime.
2011-04-09 18:22:52 +01:00
Ivan De Marino
c616205620
Added a Qt Message Handler (finally).
2011-04-08 15:49:20 +01:00
Ivan De Marino
a45b8e8401
Major refactoring of the CPP code into separate classes.
...
This doesn't add ANY new feature: it's aimed only at separating code into
more manageable pieces.
Maybe it's not perfect yet, but it's a start.
2011-04-08 14:30:50 +01:00
Ivan De Marino
ce07e12c9e
Merge remote branch 'upstream/master'
2011-04-07 10:19:12 +01:00
IceArmy
6888877aad
In setClipRect, remove top and left positive only limits
2011-04-01 13:21:35 -07:00
Wouter de Bie
2a84536d95
Match coding style
2011-03-30 08:18:47 +02:00
Wouter de Bie
affdd9b245
Don't copy buffers, but translate the QPainter instead when clipping
2011-03-29 21:01:40 +02:00
Wouter de Bie
f96d113302
Renamed clipSize() to clipRect()
2011-03-29 20:09:45 +02:00
Wouter de Bie
7531b3311c
Renamed renderSize() to clipSize() and fixed a bug
2011-03-29 20:06:12 +02:00
Wouter de Bie
2fe2e696ee
Modified phantom.renderSize() to allow top and left parameters
2011-03-29 13:30:40 +02:00
Wouter de Bie
3e939febd4
Added phantom.renderSize() to be able to control the dimensions of the output
2011-03-29 08:39:58 +02:00
Ivan De Marino
8ac4a7962b
Separated the "usage" instructions in a text file, embedded as "resource".
...
Also:
* I added a couple of "qFatal" where it makes sense.
* Usage now mentions the fact that the input files that finish by ".coffee" are also acceptable
2011-03-24 23:20:34 -07:00