Queries - Window minimize, setResizable() and DOM location

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Queries - Window minimize, setResizable() and DOM location

Amit Rana
Hi all,

First of all wishing you all a very happy 2009. May this year bring even
more happiness in your life and get more projects to use Qooxdoo ;-)

I am just back from my vacations, you would also like to congratulate
Qooxdoo team for v0.8.1 release.

Currently, I am using v0.8 SDK and have a couple of issues :

1. Minimize button of a window makes the window to vanish. Seems incorrect.

2. How to prevent the window from resizing?
I have a tabview inside my window and am dynamically adding pages to it.
I want scrollbar to appear in my tabview when it reaches the end of window.

---code snippet---
var win = new qx.ui.window.Window("abc", "xyz.png");
win.setLayout(new qx.ui.layout.VBox(20));
...
var box = new qx.ui.container.Composite;
box.setLayout(new qx.ui.layout.HBox(10));
win.add(box, {flex:1});
..
box.add(<tabview>);
---end of code -----

I tried using setResizable(false) but the window still expands if there
is no room for a new page.
I tried setWidth() but got same results as above.
I also tried setMaxWidth(). Though it stoped the window from growing,
but it couldn't prevent it child tabview from growing outside the window
causing weird results.

3. How can I get the top and left co-ordinates for a DOM element? I have
a tree node and want to get its coordinates :
-- code snippet---
var node = this.tree.getSelectedItem();
var ele = node.getContentElement();
var leftCord = qx.bom.element.Location.getLeft(ele); // gives me error
as qx.dom.Node.getDocument(elem) is null in Location.js
---end of code-----

regards
Amit Rana

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Connection to Qooxdoo-contrib repository on SVN

Amit Rana
Hi,

How can I connect to qooxdoo-contrib SVN ?
When I try to add the repository,
https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/

I get an error like :


My SVN interface property is Java HL(JNI). Even if I set it to SVNKit (pure Java), I get the same  error.

What is the public SVN path from where I can checkout the projects ??

One more thing, the window widget in v0.8 disappears on clicking the minimize button.
There is a bug opened for this (http://bugzilla.qooxdoo.org/show_bug.cgi?id=1770) and a nabble topic (http://n2.nabble.com/Windows-disappear-irretrievably-on-%22minimize%22-td1658526.html#a1667164).
But the bug report has no comments or activity associated to it. Has this been postponed ??

regards
-- 
Amit Rana 


Amit Rana wrote:
Subject: [qooxdoo-devel] Queries - Window minimize,    setResizable() and DOM location
Hi all,

First of all wishing you all a very happy 2009. May this year bring even 
more happiness in your life and get more projects to use Qooxdoo ;-)

I am just back from my vacations, you would also like to congratulate 
Qooxdoo team for v0.8.1 release.

Currently, I am using v0.8 SDK and have a couple of issues :

1. Minimize button of a window makes the window to vanish. Seems incorrect.

2. How to prevent the window from resizing?
I have a tabview inside my window and am dynamically adding pages to it. 
I want scrollbar to appear in my tabview when it reaches the end of window.

---code snippet---
var win = new qx.ui.window.Window("abc", "xyz.png");
win.setLayout(new qx.ui.layout.VBox(20));
...
var box = new qx.ui.container.Composite;
box.setLayout(new qx.ui.layout.HBox(10));
win.add(box, {flex:1});
..
box.add(<tabview>);
---end of code -----

I tried using setResizable(false) but the window still expands if there 
is no room for a new page.
I tried setWidth() but got same results as above.
I also tried setMaxWidth(). Though it stoped the window from growing, 
but it couldn't prevent it child tabview from growing outside the window 
causing weird results.

3. How can I get the top and left co-ordinates for a DOM element? I have 
a tree node and want to get its coordinates :
-- code snippet---
var node = this.tree.getSelectedItem();
var ele = node.getContentElement();
var leftCord = qx.bom.element.Location.getLeft(ele); // gives me error 
as qx.dom.Node.getDocument(elem) is null in Location.js
---end of code-----

regards
Amit Rana
  

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Connection to Qooxdoo-contrib repository on SVN

Derrell Lipman
On Thu, Feb 5, 2009 at 11:46 AM, Amit Rana <[hidden email]> wrote:
Hi,

How can I connect to qooxdoo-contrib SVN ?
When I try to add the repository,
https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/

I get an error like :

I use this repository (without trunk/qooxdoo-contrib at the end). See if it works any better for you.
 
https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib

Derrell


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Connection to Qooxdoo-contrib repository on SVN

Daniel Wagner
Administrator
In reply to this post by Amit Rana
Hi Amit,

I just checked out the contrib repository using command line svn and the
same URL you used, worked fine. I did have the same timeout problem you
described the last time I tried checking out a repository using
Subversive with the SVNKit connector in Eclipse. I'm no Eclipse guru so
instead of trying to figure out what went wrong I just gave up and used
command line svn for my checkouts.

Have you tried using a different svn client?

As for the disappearing window, we briefly discussed this in the qooxdoo
core dev team a short while ago, so it's not off our radar ;-)
Next week we're going to talk about widgets currently missing in
qooxdoo, I'll make sure to bring this issue up so we can get it
prioritized for a (hopefully near) future release.


Regards,
Daniel

Amit Rana schrieb:

> Hi,
>
> How can I connect to qooxdoo-contrib SVN ?
> When I try to add the repository,
> https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/
>
> I get an error like :
>
>
> My SVN interface property is Java HL(JNI). Even if I set it to SVNKit
> (pure Java), I get the same  error.
>
> What is the public SVN path from where I can checkout the projects ??
>
> One more thing, the window widget in v0.8 disappears on clicking the
> minimize button.
> There is a bug opened for this
> (http://bugzilla.qooxdoo.org/show_bug.cgi?id=1770) and a nabble topic
> (http://n2.nabble.com/Windows-disappear-irretrievably-on-%22minimize%22-td1658526.html#a1667164).
> But the bug report has no comments or activity associated to it. Has
> this been postponed ??
>
> regards
>
> --
> Amit Rana
>
>
>
> Amit Rana wrote:
> Subject: [qooxdoo-devel] Queries - Window minimize,    setResizable()
> and DOM location
>> Hi all,
>>
>> First of all wishing you all a very happy 2009. May this year bring even
>> more happiness in your life and get more projects to use Qooxdoo ;-)
>>
>> I am just back from my vacations, you would also like to congratulate
>> Qooxdoo team for v0.8.1 release.
>>
>> Currently, I am using v0.8 SDK and have a couple of issues :
>>
>> 1. Minimize button of a window makes the window to vanish. Seems incorrect.
>>
>> 2. How to prevent the window from resizing?
>> I have a tabview inside my window and am dynamically adding pages to it.
>> I want scrollbar to appear in my tabview when it reaches the end of window.
>>
>> ---code snippet---
>> var win = new qx.ui.window.Window("abc", "xyz.png");
>> win.setLayout(new qx.ui.layout.VBox(20));
>> ...
>> var box = new qx.ui.container.Composite;
>> box.setLayout(new qx.ui.layout.HBox(10));
>> win.add(box, {flex:1});
>> ..
>> box.add(<tabview>);
>> ---end of code -----
>>
>> I tried using setResizable(false) but the window still expands if there
>> is no room for a new page.
>> I tried setWidth() but got same results as above.
>> I also tried setMaxWidth(). Though it stoped the window from growing,
>> but it couldn't prevent it child tabview from growing outside the window
>> causing weird results.
>>
>> 3. How can I get the top and left co-ordinates for a DOM element? I have
>> a tree node and want to get its coordinates :
>> -- code snippet---
>> var node = this.tree.getSelectedItem();
>> var ele = node.getContentElement();
>> var leftCord = qx.bom.element.Location.getLeft(ele); // gives me error
>> as qx.dom.Node.getDocument(elem) is null in Location.js
>> ---end of code-----
>>
>> regards
>> Amit Rana
>>  
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Connection to Qooxdoo-contrib repository on SVN

Amit Rana
Daniel Wagner wrote:
Hi Amit,

I just checked out the contrib repository using command line svn and the 
same URL you used, worked fine. I did have the same timeout problem you 
described the last time I tried checking out a repository using 
Subversive with the SVNKit connector in Eclipse. I'm no Eclipse guru so 
instead of trying to figure out what went wrong I just gave up and used 
command line svn for my checkouts.

Have you tried using a different svn client?

As for the disappearing window, we briefly discussed this in the qooxdoo 
core dev team a short while ago, so it's not off our radar ;-)
Next week we're going to talk about widgets currently missing in 
qooxdoo, I'll make sure to bring this issue up so we can get it 
prioritized for a (hopefully near) future release.


Regards,
Daniel
  
I tried using Tortoise SVN and am able to checkout the code.
Initially, it was giving error as :
OPTIONS of
'https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib':
could not connect to server (https://qooxdoo-contrib.svn.sourceforge.net)

And, I found that I had not set the proxy. Once I did that, it worked. Don't know why the same gives error in Subclipse. Anyways, problem solved.

@Derrell :-
   I use this repository (without trunk/qooxdoo-contrib at the end). See if it works any better for you.
    https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib
    Derrell

I was still getting the same error (in Subclipse) :
svn: PROPFIND request failed on '/svnroot/qooxdoo-contrib'
svn: Connection timed out: connect


I have never tried SVN from command line. I will explore how that is used. Thanks for the tip.

Amit

Amit Rana schrieb:
  
Hi,

How can I connect to qooxdoo-contrib SVN ?
When I try to add the repository,
https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/

I get an error like :


My SVN interface property is Java HL(JNI). Even if I set it to SVNKit 
(pure Java), I get the same  error.

What is the public SVN path from where I can checkout the projects ??

One more thing, the window widget in v0.8 disappears on clicking the 
minimize button.
There is a bug opened for this 
(http://bugzilla.qooxdoo.org/show_bug.cgi?id=1770) and a nabble topic 
(http://n2.nabble.com/Windows-disappear-irretrievably-on-%22minimize%22-td1658526.html#a1667164).
But the bug report has no comments or activity associated to it. Has 
this been postponed ??

regards

-- 
Amit Rana 



Amit Rana wrote:
Subject: [qooxdoo-devel] Queries - Window minimize,    setResizable() 
and DOM location
    
Hi all,

First of all wishing you all a very happy 2009. May this year bring even 
more happiness in your life and get more projects to use Qooxdoo ;-)

I am just back from my vacations, you would also like to congratulate 
Qooxdoo team for v0.8.1 release.

Currently, I am using v0.8 SDK and have a couple of issues :

1. Minimize button of a window makes the window to vanish. Seems incorrect.

2. How to prevent the window from resizing?
I have a tabview inside my window and am dynamically adding pages to it. 
I want scrollbar to appear in my tabview when it reaches the end of window.

---code snippet---
var win = new qx.ui.window.Window("abc", "xyz.png");
win.setLayout(new qx.ui.layout.VBox(20));
...
var box = new qx.ui.container.Composite;
box.setLayout(new qx.ui.layout.HBox(10));
win.add(box, {flex:1});
..
box.add(<tabview>);
---end of code -----

I tried using setResizable(false) but the window still expands if there 
is no room for a new page.
I tried setWidth() but got same results as above.
I also tried setMaxWidth(). Though it stoped the window from growing, 
but it couldn't prevent it child tabview from growing outside the window 
causing weird results.

3. How can I get the top and left co-ordinates for a DOM element? I have 
a tree node and want to get its coordinates :
-- code snippet---
var node = this.tree.getSelectedItem();
var ele = node.getContentElement();
var leftCord = qx.bom.element.Location.getLeft(ele); // gives me error 
as qx.dom.Node.getDocument(elem) is null in Location.js
---end of code-----

regards
Amit Rana

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

qx.io.remote.Request

Andy Fuchs
In reply to this post by Amit Rana
Hi folks,

I am struggling with a very basic problem:

I try to get data from a server, but all I get is a parameter error.

Communication is json-rpc
Transport-method is 'POST'.

The native call is

curl -d "{ \"method\": \"test.anymethod\", \"id\": 1 }"
http://192.168.1.1/myControl

and works fine from my Terminal.

Here's a stripped down call:

var req = new qx.io.remote.Request(vUrl, "POST", "application/json");
var requestObject =
       {
            "method"  : "test.anymethod",
            "id"      : 1
      };
req.setData(qx.util.Json.stringify(requestObject));
req.send();

All I get is a parameter error 'rpc method missing'...

I am pretty sure it must be something obvious - but I don't see it.... ;-)

Any hint appreciated.

andy




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Widgets currently missing in Qooxdoo (was Re: Connection to Qooxdoo-contrib repository on SVN)

Helder Magalhães
In reply to this post by Daniel Wagner


Daniel Wagner-10 wrote:
>
> As for the disappearing window, we briefly discussed this in the qooxdoo
> core dev team a short while ago, so it's not off our radar ;-)
> Next week we're going to talk about widgets currently missing in
> qooxdoo, I'll make sure to bring this issue up so we can get it
> prioritized for a (hopefully near) future release.
>

Did you have a look at a recent article on "30 Essential Controls" [1] for
RIA design? ;-)  Several widget libraries are analyzed, although Qooxdoo
unfortunately isn't there... :-(

Regards,
 Helder

[1] http://designingwebinterfaces.com/essential_controls
--
View this message in context: http://www.nabble.com/Queries---Window-minimize%2C-setResizable%28%29-and-DOM-location-tp21456225p21870538.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Widgets currently missing in Qooxdoo (was Re: Connection to Qooxdoo-contrib repository on SVN)

Daniel Wagner
Administrator
Yes, we did. That's why we've put the topic on our agenda ;-)

Regards,
Daniel

Helder Magalhães schrieb:

>
> Daniel Wagner-10 wrote:
>> As for the disappearing window, we briefly discussed this in the qooxdoo
>> core dev team a short while ago, so it's not off our radar ;-)
>> Next week we're going to talk about widgets currently missing in
>> qooxdoo, I'll make sure to bring this issue up so we can get it
>> prioritized for a (hopefully near) future release.
>>
>
> Did you have a look at a recent article on "30 Essential Controls" [1] for
> RIA design? ;-)  Several widget libraries are analyzed, although Qooxdoo
> unfortunately isn't there... :-(
>
> Regards,
>  Helder
>
> [1] http://designingwebinterfaces.com/essential_controls


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

florian_im-conepts
In reply to this post by Andy Fuchs
Hello Andy,

if you want to execute jscon rpcs then you should use http://demo.qooxdoo.org/current/apiviewer/index.html#qx.io.remote.Rpc. It works perfect and is much more comfortable. You can even choose between diffrent backend implementations (PHP, Perl, ...) if you need one.

Regards, Florian


2009/2/6 Andy Fuchs <[hidden email]>
Hi folks,

I am struggling with a very basic problem:

I try to get data from a server, but all I get is a parameter error.

Communication is json-rpc
Transport-method is 'POST'.

The native call is

curl -d "{ \"method\": \"test.anymethod\", \"id\": 1 }"
http://192.168.1.1/myControl

and works fine from my Terminal.

Here's a stripped down call:

var req = new qx.io.remote.Request(vUrl, "POST", "application/json");
var requestObject =
      {
           "method"  : "test.anymethod",
           "id"      : 1
     };
req.setData(qx.util.Json.stringify(requestObject));
req.send();

All I get is a parameter error 'rpc method missing'...

I am pretty sure it must be something obvious - but I don't see it.... ;-)

Any hint appreciated.

andy




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Andy Fuchs
Hi Florian,

I already tried that too, with no success.

If I do a TCPDump of the request, it turns out, that the Transport-method
changes from 'POST' to 'GET' no matter what I specify... That's why
communication fails...

What can I do to ensure 'POST'??

thx

andy




On 06.02.09 13:33, "Florian Giesen" <[hidden email]> wrote:

> Hello Andy,
>
> if you want to execute jscon rpcs then you should use
> http://demo.qooxdoo.org/current/apiviewer/index.html#qx.io.remote.Rpc. It
> works perfect and is much more comfortable. You can even choose between
> diffrent backend implementations (PHP, Perl, ...) if you need one.
>
> Regards, Florian
>
>
> 2009/2/6 Andy Fuchs <[hidden email]>
>
>> Hi folks,
>>
>> I am struggling with a very basic problem:
>>
>> I try to get data from a server, but all I get is a parameter error.
>>
>> Communication is json-rpc
>> Transport-method is 'POST'.
>>
>> The native call is
>>
>> curl -d "{ \"method\": \"test.anymethod\", \"id\": 1 }"
>> http://192.168.1.1/myControl
>>
>> and works fine from my Terminal.
>>
>> Here's a stripped down call:
>>
>> var req = new qx.io.remote.Request(vUrl, "POST", "application/json");
>> var requestObject =
>>       {
>>            "method"  : "test.anymethod",
>>            "id"      : 1
>>      };
>> req.setData(qx.util.Json.stringify(requestObject));
>> req.send();
>>
>> All I get is a parameter error 'rpc method missing'...
>>
>> I am pretty sure it must be something obvious - but I don't see it.... ;-)
>>
>> Any hint appreciated.
>>
>> andy
>>
>>
>>
>>
>>
>>
----------------------------------------------------------------------------->>
-

>> Create and Deploy Rich Internet Apps outside the browser with
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code
>> to
>> build responsive, highly engaging applications that combine the power of
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK
>> and
>> Ajax docs to start building applications today-
>> http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Jean-Baptiste BRIAUD -- Novlog
I had to leave "application/json" for "text/plain".
That's the only way I found (in the incredible hurry I am, so maybe  
there is other solutions) to ensure POST request using json string in  
it.
The only thing is that I have to do that by hand aftet the request  
succedd :

var req = new qx.io.remote.Request(url, "POST", "text/plain");

req.addListener("completed", function(e) {
        var resp = e.getContent();
        data = qx.util.Json.parseQx(resp);
[CUT]

On 6 Feb 2009, at 14:33, Andy Fuchs wrote:

> Hi Florian,
>
> I already tried that too, with no success.
>
> If I do a TCPDump of the request, it turns out, that the Transport-
> method
> changes from 'POST' to 'GET' no matter what I specify... That's why
> communication fails...
>
> What can I do to ensure 'POST'??
>
> thx
>
> andy
>
>
>
>
> On 06.02.09 13:33, "Florian Giesen" <[hidden email]>  
> wrote:
>
>> Hello Andy,
>>
>> if you want to execute jscon rpcs then you should use
>> http://demo.qooxdoo.org/current/apiviewer/ 
>> index.html#qx.io.remote.Rpc. It
>> works perfect and is much more comfortable. You can even choose  
>> between
>> diffrent backend implementations (PHP, Perl, ...) if you need one.
>>
>> Regards, Florian
>>
>>
>> 2009/2/6 Andy Fuchs <[hidden email]>
>>
>>> Hi folks,
>>>
>>> I am struggling with a very basic problem:
>>>
>>> I try to get data from a server, but all I get is a parameter error.
>>>
>>> Communication is json-rpc
>>> Transport-method is 'POST'.
>>>
>>> The native call is
>>>
>>> curl -d "{ \"method\": \"test.anymethod\", \"id\": 1 }"
>>> http://192.168.1.1/myControl
>>>
>>> and works fine from my Terminal.
>>>
>>> Here's a stripped down call:
>>>
>>> var req = new qx.io.remote.Request(vUrl, "POST", "application/
>>> json");
>>> var requestObject =
>>>      {
>>>           "method"  : "test.anymethod",
>>>           "id"      : 1
>>>     };
>>> req.setData(qx.util.Json.stringify(requestObject));
>>> req.send();
>>>
>>> All I get is a parameter error 'rpc method missing'...
>>>
>>> I am pretty sure it must be something obvious - but I don't see  
>>> it.... ;-)
>>>
>>> Any hint appreciated.
>>>
>>> andy
>>>
>>>
>>>
>>>
>>>
>>>
> ----------------------------------------------------------------------------->
> >
> -
>>> Create and Deploy Rich Internet Apps outside the browser with
>>> Adobe(R)AIR(TM)
>>> software. With Adobe AIR, Ajax developers can use existing skills  
>>> and code
>>> to
>>> build responsive, highly engaging applications that combine the  
>>> power of
>>> local
>>> resources and data with the reach of the web. Download the Adobe  
>>> AIR SDK
>>> and
>>> Ajax docs to start building applications today-
>>> http://p.sf.net/sfu/adobe-com
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with  
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills  
>> and code to
>> build responsive, highly engaging applications that combine the  
>> power of local
>> resources and data with the reach of the web. Download the Adobe  
>> AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with  
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills  
> and code to
> build responsive, highly engaging applications that combine the  
> power of local
> resources and data with the reach of the web. Download the Adobe AIR  
> SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Andy Fuchs
Sorry for the long post, but I need some help and wanted to give as much
information as possible:

1.) It seems I can't use 'POST' when trying to get data across domains
(rpc.setCrossDomain(true)). Is this a bug or is this SOP?  Is there any
other way in Qooxdoo to get data across domains using POST?  (It seems that
doesn't even work in the local network - but only on the same IP-Adress)

2.) The second thing I couldn't figure out is, how I can put additional data
into the body of the request? Instead of everything encoded in the URL. (See
the TCP-Flow results at the end of this post:
-> curl: works -> and has the test-method in the body.
-> qooxdoo: doesn't work -> and has everything in the URL

RPC - Test:
----------

var rpc = new qx.io.remote.Rpc();
    rpc.setTimeout(10000);
    rpc.setUrl("http://192.168.1.65/control");
    rpc.setServiceName("test.anymethod");
    rpc.setCrossDomain(true);

    // call a remote procedure -- takes no arguments, returns a string
    var that = this;
    this.RpcRunning = rpc.callAsync(
      function(result, ex, id)
      {
        that.RpcRunning = null;
        if (ex == null) {
            alert(result);
        } else {
            alert("Async(" + id + ") exception: " + ex);
        }
      },
      "test.anyOtherMethod");


Request-Test:
------------

var vUrl = "http://192.168.1.65/control"

var req = new qx.io.remote.Request(vUrl, "POST", "text/plain");
        req.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
        req.setCrossDomain(true);

         var requestObject =
              {
                "method"  : "test.anymethod",
                "id"      : 1
              };
       
 req.setData(qx.util.Json.stringify(requestObject));

        req.addListener("completed", function(e) {
            var remoteData = e.getContent();
            alert("Data received: " + remoteData);
        });


        var failfunc = function(e, g, f) {
            alert("request failed: " + e + " => " + f);
        }

        req.addListener("failed", failfunc, this, true, "failed");
        req.addListener("timeout", failfunc, this, true, "timeout");
        req.addListener("aborted", failfunc, this, true, "aborted");

        req.send();



TCP-Flow
----------

1. curl -d request:
-------------------

192.168.001.068.58345-192.168.001.065.00080: POST /control HTTP/1.1

User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3
OpenSSL/0.9.7l zlib/1.2.3

Host: 192.168.1.65

Accept: */*

Content-Length: 50

Content-Type: application/x-www-form-urlencoded

{ "method": "test.anymethod", "id": 1 }




2. Qooxdoo request:
-------------------

192.168.001.068.59988-192.168.001.065.00080: GET
/control?_ScriptTransport_id=14&nocache=1233936097657&cmd=tree&file=load&_Sc
riptTransport_data=%7B%22method%22%3A%22test.anymethod%22%2C%22id%22%3A1%7D
HTTP/1.1

Host: 192.168.1.65

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.0.6)
Gecko/2009011912 Firefox/3.0.6

Accept: */*

Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive


If you read until here: Thanks for listening ;-)

andy







------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Derrell Lipman
On Fri, Feb 6, 2009 at 11:19 AM, Andy Fuchs <[hidden email]> wrote:

1.) It seems I can't use 'POST' when trying to get data across domains
(rpc.setCrossDomain(true)). Is this a bug or is this SOP?  Is there any
other way in Qooxdoo to get data across domains using POST?  (It seems that
doesn't even work in the local network - but only on the same IP-Adress)
You've discovered the "same domain" requirement imposed by the browsers for security reasons.

qooxdoo provides three transports for remote requests (XmlHTTP, IFrame, and Script), and selects from among the transports based on the requirements of the request. Each transport has unique capabilities. The only transport that supports cross-domain is the Script transport, and that transport only works with GET requests. You can't do POST for cross-domain requests.

2.) The second thing I couldn't figure out is, how I can put additional data
into the body of the request? Instead of everything encoded in the URL. (See
the TCP-Flow results at the end of this post:
-> curl: works -> and has the test-method in the body.
-> qooxdoo: doesn't work -> and has everything in the URL

GET requests use URL encoding of the parameters to the request. One of the disadvantages of using a GET is that the data quantity is limited because the parameter length is limited.

Derrell


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Andy Fuchs
On 06.02.09 17:41, "Derrell Lipman" <[hidden email]>
wrote:

> You've discovered the "same domain" requirement imposed by the browsers for
> security reasons.
>
> qooxdoo provides three transports for remote requests (XmlHTTP, IFrame, and
> Script), and selects from among the transports based on the requirements of
> the request. Each transport has unique capabilities. The only transport that
> supports cross-domain is the Script transport, and that transport only works
> with GET requests. You can't do POST for cross-domain requests.

It seems I can't even do POST requests INSIDE my domain: If I do
setCrossDomain(false) and try to get data from another machine that doesn't
work either. (Machine 1: 192.168.1.10 - Machine 2: 192.168.1.11)
So that seems to be even more restrictive, because it seems to look for
<ANY> change in the URL.

>
> 2.) The second thing I couldn't figure out is, how I can put additional data
> into the body of the request? Instead of everything encoded in the URL. (See
> the TCP-Flow results at the end of this post:
> -> curl: works -> and has the test-method in the body.
> -> qooxdoo: doesn't work -> and has everything in the URL
>
> GET requests use URL encoding of the parameters to the request. One of the
> disadvantages of using a GET is that the data quantity is limited because the
> parameter length is limited.

Exactly that's the reason why I can't use GET!
Do you have any idea how to work around this problem?

tia

andy




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

Derrell Lipman
On Fri, Feb 6, 2009 at 12:23 PM, Andy Fuchs <[hidden email]> wrote:
On 06.02.09 17:41, "Derrell Lipman" <[hidden email]>
wrote:

> You've discovered the "same domain" requirement imposed by the browsers for
> security reasons.
>
> qooxdoo provides three transports for remote requests (XmlHTTP, IFrame, and
> Script), and selects from among the transports based on the requirements of
> the request. Each transport has unique capabilities. The only transport that
> supports cross-domain is the Script transport, and that transport only works
> with GET requests. You can't do POST for cross-domain requests.

It seems I can't even do POST requests INSIDE my domain: If I do
setCrossDomain(false) and try to get data from another machine that doesn't
work either. (Machine 1: 192.168.1.10 - Machine 2: 192.168.1.11)
So that seems to be even more restrictive, because it seems to look for
<ANY> change in the URL.

I think the same-domain policy works by domain name and maybe allows subdomains, but not domains at the same level. Therefore if you retrieve your page from mysite.com then *I think* that a request issued to subdomain.mysite.com will be allowed. I'm not sure of that, though.

>
> 2.) The second thing I couldn't figure out is, how I can put additional data
> into the body of the request? Instead of everything encoded in the URL. (See
> the TCP-Flow results at the end of this post:
> -> curl: works -> and has the test-method in the body.
> -> qooxdoo: doesn't work -> and has everything in the URL
>
> GET requests use URL encoding of the parameters to the request. One of the
> disadvantages of using a GET is that the data quantity is limited because the
> parameter length is limited.

Exactly that's the reason why I can't use GET!
Do you have any idea how to work around this problem?

You could set up a proxy, so you could make requests using POST to the same host from which you retrieved the initial page (host1), and that host would make requests to some other host (host2) to retrieve information that it then sent back from host1 to your browser.

There was a proposal (an RFC?) a while back, probably by David Crawford, for a JSON-RPC intrinsic similar to the XmlHTTP intrinsic, that could be made safe even cross-domain. I don't know what ever became of that, or if any browsers yet support it.

Derrell


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.io.remote.Request

thron7
In reply to this post by Andy Fuchs

> It seems I can't even do POST requests INSIDE my domain: If I do
> setCrossDomain(false) and try to get data from another machine that
> doesn't
> work either. (Machine 1: 192.168.1.10 - Machine 2: 192.168.1.11)
> So that seems to be even more restrictive, because it seems to look for
> <ANY> change in the URL.

With a little effort I'm sure you'll find plenty of resource detailing the
SOP restriction - both within and outside this mailing list. "Domain" is
taken very narrow in this context. It refers to the server FQDN + the port
(!) number. So "mydom.com" and "mydom.com:443" are considered different
domains. The same applies to IP adresses. So it's not about the URL in
general but the part between "http://" and the start of the URL path that
matters.

T.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Connection to Qooxdoo-contrib repository on SVN

Jonathan Weiß
In reply to this post by Amit Rana

Hi Amit!

I want to give you some background information about this “connection timed out” problem. When checking large amount of files from sourceforge.net's SVN timeouts frequently happen. Different Subversion clients handle this situation differently:

Tortoise just reports an error and stops the checkout process. You can just restart it and it will continue to check out the files, which are missing.

The command line client also keeps files which are already checkout out, but sometimes the “.svn” folders are not created correctly and you have to remove the parent folder of the corrupt “.svn” folders to continue the checkout.

Subclipse seems to handle a checkout like a transaction. If it does not run without an error the checkout will be reverted and all files, which are already checked out, will be deleted.

Mac clients like Versions or Cornerstone seem to retry automatically after a timeout so that the checkout might take longer, but therefore succeed in any case.

 

Kind regards

Jonathan


On 06.02.2009, at 10:46, Amit Rana wrote:
I tried using Tortoise SVN and am able to checkout the code.
Initially, it was giving error as :
OPTIONS of
'https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib':
could not connect to server (https://qooxdoo-contrib.svn.sourceforge.net)

And, I found that I had not set the proxy. Once I did that, it worked. Don't know why the same gives error in Subclipse. Anyways, problem solved.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Jonathan Weiß
Framework Engineer

Blog - LinkedIn - XING
Reply | Threaded
Open this post in threaded view
|

Re: Connection to Qooxdoo-contrib repository on SVN

Jonathan Weiß
In reply to this post by Amit Rana

Hi Amit!

I want to give you some background information about this “connection timed out” problem. When checking large amount of files from sourceforge.net's SVN timeouts frequently happen. Different Subversion clients handle this situation differently:

Tortoise just reports an error and stops the checkout process. You can just restart it and it will continue to check out the files, which are missing.

The command line client also keeps files which are already checkout out, but sometimes the “.svn” folders are not created correctly and you have to remove the parent folder of the corrupt “.svn” folders to continue the checkout.

Subclipse seems to handle a checkout like a transaction. If it does not run without an error the checkout will be reverted and all files, which are already checked out, will be deleted.

Mac clients like Versions or Cornerstone seem to retry automatically after a timeout so that the checkout might take longer, but therefore succeed in any case.

 

Kind regards

Jonathan


On 06.02.2009, at 10:46, Amit Rana wrote:
I tried using Tortoise SVN and am able to checkout the code. 
Initially, it was giving error as :
OPTIONS of 
'https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib': 
could not connect to server (https://qooxdoo-contrib.svn.sourceforge.net)

And, I found that I had not set the proxy. Once I did that, it worked. Don't know why the same gives error in Subclipse. Anyways, problem solved.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Jonathan Weiß
Framework Engineer

Blog - LinkedIn - XING