Google グループは Usenet の新規の投稿と購読のサポートを終了しました。過去のコンテンツは引き続き閲覧できます。
Dismiss

Post data on new tab/new window/current window ?

閲覧: 54 回
最初の未読メッセージにスキップ

Yep

未読、
2007/01/24 8:54:552007/01/24
To:
Hi there,

I don't find answers to my question. I'm currently developping an
extension for firefox and I would like to post data when I load an URL
in :
- the current window
- a new tab
- in a new window

To post data in a new tab, I know that's possible :
http://developer.mozilla.org/en/docs/XUL:Method:addTab
But I don't find a way to post data in the current window or in a new
window.

Can anyone help me please ?

Mark Finkle

未読、
2007/01/24 23:33:182007/01/24
To:
When your in the current window and you want to POST data somewhere, the
easiest way could be XMLHttpRequest:

http://developer.mozilla.org/en/docs/XMLHttpRequest

Mark Finkle

Yep

未読、
2007/01/25 4:54:162007/01/25
To:
hmmm ... if I use XMLHttpRequest, the result of request will be not
display on the screen (in the current window). What I need to do is
load a web page in the current window with posted data.

eric...@yahoo.com

未読、
2007/01/25 14:24:222007/01/25
To: dev-ext...@lists.mozilla.org
You can load content into existing browsers with nsIURILoader::openURI
http://www.xulplanet.com/references/xpcomref/ifaces/nsIURILoader.html

_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions

Neil

未読、
2007/01/25 14:51:212007/01/25
To:
Yep wrote:

>To post data in a new tab, I know that's possible :
>http://developer.mozilla.org/en/docs/XUL:Method:addTab
>But I don't find a way to post data in the current window or in a new window.
>
>

Call loadURI(aURI, aReferrer, aPostData) to post data in the current window.
Call window.openDialog('chrome://browser/content', '_blank', 'all,
dialog=no', aURI, aReferrer, aPostData) to post data in a new window.

--
Warning: May contain traces of nuts.

Yep

未読、
2007/01/26 12:10:132007/01/26
To:
Hey, hey ! Thanks a lot, I will make some tests with this :)

On 25 jan, 20:51, Neil <n...@parkwaycc.co.uk> wrote:
> Yep wrote:
> >To post data in a new tab, I know that's possible :
> >http://developer.mozilla.org/en/docs/XUL:Method:addTab

> >But I don't find a way to post data in the current window or in a new window.Call loadURI(aURI, aReferrer, aPostData) to post data in the current window.

新着メール 0 件