You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by "seba.wagner@gmail.com" <se...@gmail.com> on 2012/12/11 01:08:38 UTC
some slight glitches with the network testing tool
Hi German,
there are some slight glitches with the network testing tool
Currently the administrator has to edit the networktesting-config.xml and
put a valid IP/domain in the host config.
Actually by default I would like to have the "hostAddress" empty:
<hostAddress></hostAddress>
If it is empty, the application should automatically connect to the
IP/domain that it has been loading from.
That is the same behaviour like with the general config.xml
This is the code that does exactly parsing the IP/domain from the URL
var cleanUrl = _url;
var hasParams = _url.indexOf("?");
if (hasParams != -1) {
cleanUrl = _url.substr(0,hasParams-1);
}
if ($debug) Debug.write("_url ",_url,cleanUrl);
var doubleSlash = cleanUrl.indexOf("//");
var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
if ($debug) Debug.write("isNotPort80: ",isNotPort80,doubleSlash);
if (isNotPort80!=-1){
//Debug.write("isNotPort80: ",doubleSlash+2, _url.indexOf(":",
doubleSlash+2)-doubleSlash-2);
var server = cleanUrl.substr(doubleSlash+2, _url.indexOf(":",
doubleSlash+2)-doubleSlash-2);
} else {
var server = cleanUrl.substr(doubleSlash+2, _url.indexOf("/",
doubleSlash+2)-doubleSlash-2);
}
if ($debug) Debug.write("this zielnr: ",this,server);
The issue is just that this code works with SWF8, to make it working in
SWF10 there might be some slight modifications needed.
Can you take care of it or are you currently busy with other things?
Thanks!
Sebastian
--
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com
Re: some slight glitches with the network testing tool
Posted by Maxim Solodovnik <so...@gmail.com>.
ok
I'll add it to the top menu link in the wicket :)
On Tue, Dec 11, 2012 at 4:13 PM, seba.wagner@gmail.com <
seba.wagner@gmail.com> wrote:
> This top level element that you are refering to (helpAndBugs.lzx) is
> instatiated at a later moment, after the user is logged in and the
> Navigation is loaded.
>
> So there is no chance to have a single place, if you want to show it while
> not logged in you have to use another view / UI element. As there is
> actually almost no UI element initialized except the login prompt when the
> user loads the application I don't know where elsewhere to put it to have
> it visible in both modi (loggedin and logged'out).
>
> Sebastian
>
>
> 2012/12/11 Maxim Solodovnik <so...@gmail.com>
>
> > I thought maybe if it would be the top level links (like logout, but
> > available without login)
> > It will be one place in the code (instead of two) and available from
> > everywhere.
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner@gmail.com
>
--
WBR
Maxim aka solomax
Re: some slight glitches with the network testing tool
Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
This top level element that you are refering to (helpAndBugs.lzx) is
instatiated at a later moment, after the user is logged in and the
Navigation is loaded.
So there is no chance to have a single place, if you want to show it while
not logged in you have to use another view / UI element. As there is
actually almost no UI element initialized except the login prompt when the
user loads the application I don't know where elsewhere to put it to have
it visible in both modi (loggedin and logged'out).
Sebastian
2012/12/11 Maxim Solodovnik <so...@gmail.com>
> I thought maybe if it would be the top level links (like logout, but
> available without login)
> It will be one place in the code (instead of two) and available from
> everywhere.
>
>
>
> --
> WBR
> Maxim aka solomax
>
--
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com
Re: some slight glitches with the network testing tool
Posted by Maxim Solodovnik <so...@gmail.com>.
I thought maybe if it would be the top level links (like logout, but
available without login)
It will be one place in the code (instead of two) and available from
everywhere.
--
WBR
Maxim aka solomax
Re: some slight glitches with the network testing tool
Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
I just have put it into the login prompt now additionally.
I think that might be okay for now, let me know if you have another place
that suits better.
Sebastian
2012/12/11 Maxim Solodovnik <so...@gmail.com>
> done, rev. 1420027
> correct place is mainMethods.lzx:130
>
> I agree we should have this link available without authorization, but I'm
> not sure where to put it :(
> Maybe to the top level links (like logout)? and make it available without
> login?
>
>
> On Tue, Dec 11, 2012 at 2:52 PM, seba.wagner@gmail.com <
> seba.wagner@gmail.com> wrote:
>
> > The application should be also loaded using the URL:
> > http://localhost:5080/openmeetings/?swf=networktesting.swf10.swf
> >
> > That way it uses the correct embed code and for example the favicon is
> > right.
> > If you use:
> > http://localhost:5080/openmeetings/networktesting.swf10.swf?xyz=123
> > Then there is no embed code used at all. It is no really officially
> defined
> > what a browser will do with such an SWF. It might open the file using the
> > Flash player, it might happen that in any future a browser will just do
> > nothing.
> >
> > Do you know where to put this URL?
> > Eventually it might makes sense to show this link somewhere in the login
> > prompt. That way it has a somewhat more prominent place and people
> realize
> > that they could use this tool even without OpenMeetings or need to sign
> up
> > or anything.
> > What do you think?
> >
> > Sebastian
> >
> >
> > 2012/12/11 Maxim Solodovnik <so...@gmail.com>
> >
> > > done
> > > revision 1419992
> > >
> > > I modified the code to work for SFW10 (tested in Chrome IE) and make
> more
> > > compact :)
> > >
> > >
> > > On Tue, Dec 11, 2012 at 8:02 AM, Maxim Solodovnik <
> solomax666@gmail.com
> > > >wrote:
> > >
> > > > I'll try to handle it
> > > > On Dec 11, 2012 7:09 AM, "seba.wagner@gmail.com" <
> > seba.wagner@gmail.com>
> > > > wrote:
> > > >
> > > >> Hi German,
> > > >>
> > > >> there are some slight glitches with the network testing tool
> > > >> Currently the administrator has to edit the
> networktesting-config.xml
> > > and
> > > >> put a valid IP/domain in the host config.
> > > >>
> > > >> Actually by default I would like to have the "hostAddress" empty:
> > > >> <hostAddress></hostAddress>
> > > >>
> > > >> If it is empty, the application should automatically connect to the
> > > >> IP/domain that it has been loading from.
> > > >> That is the same behaviour like with the general config.xml
> > > >>
> > > >> This is the code that does exactly parsing the IP/domain from the
> URL
> > > >> var cleanUrl = _url;
> > > >>
> > > >> var hasParams = _url.indexOf("?");
> > > >> if (hasParams != -1) {
> > > >> cleanUrl = _url.substr(0,hasParams-1);
> > > >> }
> > > >>
> > > >> if ($debug) Debug.write("_url ",_url,cleanUrl);
> > > >> var doubleSlash = cleanUrl.indexOf("//");
> > > >> var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
> > > >> if ($debug) Debug.write("isNotPort80:
> > > ",isNotPort80,doubleSlash);
> > > >> if (isNotPort80!=-1){
> > > >> //Debug.write("isNotPort80: ",doubleSlash+2,
> > > _url.indexOf(":",
> > > >> doubleSlash+2)-doubleSlash-2);
> > > >> var server = cleanUrl.substr(doubleSlash+2,
> > > _url.indexOf(":",
> > > >> doubleSlash+2)-doubleSlash-2);
> > > >> } else {
> > > >> var server = cleanUrl.substr(doubleSlash+2,
> > > _url.indexOf("/",
> > > >> doubleSlash+2)-doubleSlash-2);
> > > >> }
> > > >>
> > > >> if ($debug) Debug.write("this zielnr: ",this,server);
> > > >>
> > > >> The issue is just that this code works with SWF8, to make it working
> > in
> > > >> SWF10 there might be some slight modifications needed.
> > > >>
> > > >> Can you take care of it or are you currently busy with other things?
> > > >>
> > > >> Thanks!
> > > >> Sebastian
> > > >>
> > > >> --
> > > >> Sebastian Wagner
> > > >> https://twitter.com/#!/dead_lock
> > > >> http://www.webbase-design.de
> > > >> http://www.wagner-sebastian.com
> > > >> seba.wagner@gmail.com
> > > >>
> > > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wagner@gmail.com
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>
--
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com
Re: some slight glitches with the network testing tool
Posted by Maxim Solodovnik <so...@gmail.com>.
done, rev. 1420027
correct place is mainMethods.lzx:130
I agree we should have this link available without authorization, but I'm
not sure where to put it :(
Maybe to the top level links (like logout)? and make it available without
login?
On Tue, Dec 11, 2012 at 2:52 PM, seba.wagner@gmail.com <
seba.wagner@gmail.com> wrote:
> The application should be also loaded using the URL:
> http://localhost:5080/openmeetings/?swf=networktesting.swf10.swf
>
> That way it uses the correct embed code and for example the favicon is
> right.
> If you use:
> http://localhost:5080/openmeetings/networktesting.swf10.swf?xyz=123
> Then there is no embed code used at all. It is no really officially defined
> what a browser will do with such an SWF. It might open the file using the
> Flash player, it might happen that in any future a browser will just do
> nothing.
>
> Do you know where to put this URL?
> Eventually it might makes sense to show this link somewhere in the login
> prompt. That way it has a somewhat more prominent place and people realize
> that they could use this tool even without OpenMeetings or need to sign up
> or anything.
> What do you think?
>
> Sebastian
>
>
> 2012/12/11 Maxim Solodovnik <so...@gmail.com>
>
> > done
> > revision 1419992
> >
> > I modified the code to work for SFW10 (tested in Chrome IE) and make more
> > compact :)
> >
> >
> > On Tue, Dec 11, 2012 at 8:02 AM, Maxim Solodovnik <solomax666@gmail.com
> > >wrote:
> >
> > > I'll try to handle it
> > > On Dec 11, 2012 7:09 AM, "seba.wagner@gmail.com" <
> seba.wagner@gmail.com>
> > > wrote:
> > >
> > >> Hi German,
> > >>
> > >> there are some slight glitches with the network testing tool
> > >> Currently the administrator has to edit the networktesting-config.xml
> > and
> > >> put a valid IP/domain in the host config.
> > >>
> > >> Actually by default I would like to have the "hostAddress" empty:
> > >> <hostAddress></hostAddress>
> > >>
> > >> If it is empty, the application should automatically connect to the
> > >> IP/domain that it has been loading from.
> > >> That is the same behaviour like with the general config.xml
> > >>
> > >> This is the code that does exactly parsing the IP/domain from the URL
> > >> var cleanUrl = _url;
> > >>
> > >> var hasParams = _url.indexOf("?");
> > >> if (hasParams != -1) {
> > >> cleanUrl = _url.substr(0,hasParams-1);
> > >> }
> > >>
> > >> if ($debug) Debug.write("_url ",_url,cleanUrl);
> > >> var doubleSlash = cleanUrl.indexOf("//");
> > >> var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
> > >> if ($debug) Debug.write("isNotPort80:
> > ",isNotPort80,doubleSlash);
> > >> if (isNotPort80!=-1){
> > >> //Debug.write("isNotPort80: ",doubleSlash+2,
> > _url.indexOf(":",
> > >> doubleSlash+2)-doubleSlash-2);
> > >> var server = cleanUrl.substr(doubleSlash+2,
> > _url.indexOf(":",
> > >> doubleSlash+2)-doubleSlash-2);
> > >> } else {
> > >> var server = cleanUrl.substr(doubleSlash+2,
> > _url.indexOf("/",
> > >> doubleSlash+2)-doubleSlash-2);
> > >> }
> > >>
> > >> if ($debug) Debug.write("this zielnr: ",this,server);
> > >>
> > >> The issue is just that this code works with SWF8, to make it working
> in
> > >> SWF10 there might be some slight modifications needed.
> > >>
> > >> Can you take care of it or are you currently busy with other things?
> > >>
> > >> Thanks!
> > >> Sebastian
> > >>
> > >> --
> > >> Sebastian Wagner
> > >> https://twitter.com/#!/dead_lock
> > >> http://www.webbase-design.de
> > >> http://www.wagner-sebastian.com
> > >> seba.wagner@gmail.com
> > >>
> > >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner@gmail.com
>
--
WBR
Maxim aka solomax
Re: some slight glitches with the network testing tool
Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
The application should be also loaded using the URL:
http://localhost:5080/openmeetings/?swf=networktesting.swf10.swf
That way it uses the correct embed code and for example the favicon is
right.
If you use:
http://localhost:5080/openmeetings/networktesting.swf10.swf?xyz=123
Then there is no embed code used at all. It is no really officially defined
what a browser will do with such an SWF. It might open the file using the
Flash player, it might happen that in any future a browser will just do
nothing.
Do you know where to put this URL?
Eventually it might makes sense to show this link somewhere in the login
prompt. That way it has a somewhat more prominent place and people realize
that they could use this tool even without OpenMeetings or need to sign up
or anything.
What do you think?
Sebastian
2012/12/11 Maxim Solodovnik <so...@gmail.com>
> done
> revision 1419992
>
> I modified the code to work for SFW10 (tested in Chrome IE) and make more
> compact :)
>
>
> On Tue, Dec 11, 2012 at 8:02 AM, Maxim Solodovnik <solomax666@gmail.com
> >wrote:
>
> > I'll try to handle it
> > On Dec 11, 2012 7:09 AM, "seba.wagner@gmail.com" <se...@gmail.com>
> > wrote:
> >
> >> Hi German,
> >>
> >> there are some slight glitches with the network testing tool
> >> Currently the administrator has to edit the networktesting-config.xml
> and
> >> put a valid IP/domain in the host config.
> >>
> >> Actually by default I would like to have the "hostAddress" empty:
> >> <hostAddress></hostAddress>
> >>
> >> If it is empty, the application should automatically connect to the
> >> IP/domain that it has been loading from.
> >> That is the same behaviour like with the general config.xml
> >>
> >> This is the code that does exactly parsing the IP/domain from the URL
> >> var cleanUrl = _url;
> >>
> >> var hasParams = _url.indexOf("?");
> >> if (hasParams != -1) {
> >> cleanUrl = _url.substr(0,hasParams-1);
> >> }
> >>
> >> if ($debug) Debug.write("_url ",_url,cleanUrl);
> >> var doubleSlash = cleanUrl.indexOf("//");
> >> var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
> >> if ($debug) Debug.write("isNotPort80:
> ",isNotPort80,doubleSlash);
> >> if (isNotPort80!=-1){
> >> //Debug.write("isNotPort80: ",doubleSlash+2,
> _url.indexOf(":",
> >> doubleSlash+2)-doubleSlash-2);
> >> var server = cleanUrl.substr(doubleSlash+2,
> _url.indexOf(":",
> >> doubleSlash+2)-doubleSlash-2);
> >> } else {
> >> var server = cleanUrl.substr(doubleSlash+2,
> _url.indexOf("/",
> >> doubleSlash+2)-doubleSlash-2);
> >> }
> >>
> >> if ($debug) Debug.write("this zielnr: ",this,server);
> >>
> >> The issue is just that this code works with SWF8, to make it working in
> >> SWF10 there might be some slight modifications needed.
> >>
> >> Can you take care of it or are you currently busy with other things?
> >>
> >> Thanks!
> >> Sebastian
> >>
> >> --
> >> Sebastian Wagner
> >> https://twitter.com/#!/dead_lock
> >> http://www.webbase-design.de
> >> http://www.wagner-sebastian.com
> >> seba.wagner@gmail.com
> >>
> >
>
>
> --
> WBR
> Maxim aka solomax
>
--
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com
Re: some slight glitches with the network testing tool
Posted by Maxim Solodovnik <so...@gmail.com>.
done
revision 1419992
I modified the code to work for SFW10 (tested in Chrome IE) and make more
compact :)
On Tue, Dec 11, 2012 at 8:02 AM, Maxim Solodovnik <so...@gmail.com>wrote:
> I'll try to handle it
> On Dec 11, 2012 7:09 AM, "seba.wagner@gmail.com" <se...@gmail.com>
> wrote:
>
>> Hi German,
>>
>> there are some slight glitches with the network testing tool
>> Currently the administrator has to edit the networktesting-config.xml and
>> put a valid IP/domain in the host config.
>>
>> Actually by default I would like to have the "hostAddress" empty:
>> <hostAddress></hostAddress>
>>
>> If it is empty, the application should automatically connect to the
>> IP/domain that it has been loading from.
>> That is the same behaviour like with the general config.xml
>>
>> This is the code that does exactly parsing the IP/domain from the URL
>> var cleanUrl = _url;
>>
>> var hasParams = _url.indexOf("?");
>> if (hasParams != -1) {
>> cleanUrl = _url.substr(0,hasParams-1);
>> }
>>
>> if ($debug) Debug.write("_url ",_url,cleanUrl);
>> var doubleSlash = cleanUrl.indexOf("//");
>> var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
>> if ($debug) Debug.write("isNotPort80: ",isNotPort80,doubleSlash);
>> if (isNotPort80!=-1){
>> //Debug.write("isNotPort80: ",doubleSlash+2, _url.indexOf(":",
>> doubleSlash+2)-doubleSlash-2);
>> var server = cleanUrl.substr(doubleSlash+2, _url.indexOf(":",
>> doubleSlash+2)-doubleSlash-2);
>> } else {
>> var server = cleanUrl.substr(doubleSlash+2, _url.indexOf("/",
>> doubleSlash+2)-doubleSlash-2);
>> }
>>
>> if ($debug) Debug.write("this zielnr: ",this,server);
>>
>> The issue is just that this code works with SWF8, to make it working in
>> SWF10 there might be some slight modifications needed.
>>
>> Can you take care of it or are you currently busy with other things?
>>
>> Thanks!
>> Sebastian
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wagner@gmail.com
>>
>
--
WBR
Maxim aka solomax
Re: some slight glitches with the network testing tool
Posted by Maxim Solodovnik <so...@gmail.com>.
I'll try to handle it
On Dec 11, 2012 7:09 AM, "seba.wagner@gmail.com" <se...@gmail.com>
wrote:
> Hi German,
>
> there are some slight glitches with the network testing tool
> Currently the administrator has to edit the networktesting-config.xml and
> put a valid IP/domain in the host config.
>
> Actually by default I would like to have the "hostAddress" empty:
> <hostAddress></hostAddress>
>
> If it is empty, the application should automatically connect to the
> IP/domain that it has been loading from.
> That is the same behaviour like with the general config.xml
>
> This is the code that does exactly parsing the IP/domain from the URL
> var cleanUrl = _url;
>
> var hasParams = _url.indexOf("?");
> if (hasParams != -1) {
> cleanUrl = _url.substr(0,hasParams-1);
> }
>
> if ($debug) Debug.write("_url ",_url,cleanUrl);
> var doubleSlash = cleanUrl.indexOf("//");
> var isNotPort80 = cleanUrl.indexOf(":", doubleSlash+2);
> if ($debug) Debug.write("isNotPort80: ",isNotPort80,doubleSlash);
> if (isNotPort80!=-1){
> //Debug.write("isNotPort80: ",doubleSlash+2, _url.indexOf(":",
> doubleSlash+2)-doubleSlash-2);
> var server = cleanUrl.substr(doubleSlash+2, _url.indexOf(":",
> doubleSlash+2)-doubleSlash-2);
> } else {
> var server = cleanUrl.substr(doubleSlash+2, _url.indexOf("/",
> doubleSlash+2)-doubleSlash-2);
> }
>
> if ($debug) Debug.write("this zielnr: ",this,server);
>
> The issue is just that this code works with SWF8, to make it working in
> SWF10 there might be some slight modifications needed.
>
> Can you take care of it or are you currently busy with other things?
>
> Thanks!
> Sebastian
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner@gmail.com
>