You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by PITI <md...@piti.pf> on 2008/05/10 00:34:06 UTC
Re: javascript error in internet explorer
I had a similar problem. In wicket-ajax.js, I made the following changes, and
now it works fine :
if (Wicket.Focus && Wicket.Focus.lastFocusId) {
t.setRequestHeader("Wicket-FocusedElementId", Wicket.Focus.lastFocusId
|| "");
}
else {
// t.setRequestHeader("Wicket-FocusedElementId", "");
}
Hope this helps.
bglynn wrote:
>
> I'm also having either the same issue or one very similar.
>
> The problem I'm seeing seems to be isolated to IE. The specific build
> version of IE 7.0.5730.11. The issue only seems to have come up on one of
> 5 machines and assuming the specific IE build maybe an issue.
>
> Here's a description:
> We are using a AjaxLazyLoadPanel to load a long running panel. As soon as
> the panel is is loaded a javascript error of "invalid argument" is thrown
> and the ajax request is halted. Doing some debugging revealed that the
> exception was being thrown from
> "t.setRequestHeader("Wicket-FocusedElementId",
> Wicket.Focus.lastFocusId || "");". The Wicket.Focus.lastFocusId variable
> is to "", which doesn't seem like it would cause a problem given the OR
> operator.
>
> I'd really apperciate some assitance.
>
> Thanks,
> Brian Glynn
>
>
>
> atul singh-5 wrote:
>>
>> Hi,
>> I wanted to know about preCallHandlers in wicket-ajax.js .What are they
>> and
>> How are they related in java code.
>> Actually I am facing a problem in internet explorer. The ajax get call
>> give
>> error after "Invoking pre-call handler(s).."
>> It gives an error in the highlighted portion and then all ajax stops
>> working, because this get call did not return.
>> The error says--"invalid argument"
>> I will really appreciate any help. Also if anyone know a javascript
>> debugger/debugging technique for internet explorer, please let me know,
>> so i
>> will be able to do something about this :(..
>>
>> Thanks
>>
>>
>> doGet: function() {
>> if (this.precondition()) {
>>
>> this.transport = Wicket.Ajax.getTransport();
>>
>> var url = this.createUrl();
>> this.log("GET", url);
>>
>> Wicket.Ajax.invokePreCallHandlers();
>>
>> * var t = this.transport;**
>> if (t != null) {
>> if (Wicket.Browser.isGecko()) {
>> var href = document.location.href;
>> var lastIndexOf = href.lastIndexOf('/');
>> if (lastIndexOf > 0)
>> {
>> url = href.substring(0,lastIndexOf+1) + url;
>> }
>> }
>> t.open("GET", url, this.async);
>> t.onreadystatechange =
>> this.stateChangeCallback.bind(this);
>> // set a special flag to allow server distinguish between
>> ajax and non-ajax requests
>> t.setRequestHeader("Wicket-Ajax", "true");
>> t.setRequestHeader("Wicket-FocusedElementId",
>> Wicket.Focus.lastFocusId || "");
>> t.setRequestHeader("Accept", "text/xml");
>> t.send(null);
>> return true;*
>> } else {
>> this.failure();
>> return false;
>> }
>> } else {
>> Wicket.Log.info("Ajax GET stopped because of precondition
>> check,
>> url:" + this.url);
>> this.done();
>> return true;
>> }
>> }
>>
>>
>
>
--
View this message in context: http://www.nabble.com/javascript-error-in-internet-explorer-tp16732896p17157574.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: javascript error in internet explorer
Posted by Paul T <pt...@ifdsgroup.co.uk>.
I get this too on IE6.0.2900.2180 on xp.
I don't get this problem with Firefix, unfortunately I'm developing an
intranet app and IE6 is the standard.
The js fix below fixed it for me too.
PITI wrote:
>
> I had a similar problem. In wicket-ajax.js, I made the following changes,
> and now it works fine :
>
> if (Wicket.Focus && Wicket.Focus.lastFocusId) {
> t.setRequestHeader("Wicket-FocusedElementId", Wicket.Focus.lastFocusId
> || "");
> }
> else {
> // t.setRequestHeader("Wicket-FocusedElementId", "");
> }
>
> Hope this helps.
>
>
>
> bglynn wrote:
>>
>> I'm also having either the same issue or one very similar.
>>
>> The problem I'm seeing seems to be isolated to IE. The specific build
>> version of IE 7.0.5730.11. The issue only seems to have come up on one of
>> 5 machines and assuming the specific IE build maybe an issue.
>>
>> Here's a description:
>> We are using a AjaxLazyLoadPanel to load a long running panel. As soon as
>> the panel is is loaded a javascript error of "invalid argument" is thrown
>> and the ajax request is halted. Doing some debugging revealed that the
>> exception was being thrown from
>> "t.setRequestHeader("Wicket-FocusedElementId",
>> Wicket.Focus.lastFocusId || "");". The Wicket.Focus.lastFocusId variable
>> is to "", which doesn't seem like it would cause a problem given the OR
>> operator.
>>
>> I'd really apperciate some assitance.
>>
>> Thanks,
>> Brian Glynn
>>
>>
>>
>> atul singh-5 wrote:
>>>
>>> Hi,
>>> I wanted to know about preCallHandlers in wicket-ajax.js .What are they
>>> and
>>> How are they related in java code.
>>> Actually I am facing a problem in internet explorer. The ajax get call
>>> give
>>> error after "Invoking pre-call handler(s).."
>>> It gives an error in the highlighted portion and then all ajax stops
>>> working, because this get call did not return.
>>> The error says--"invalid argument"
>>> I will really appreciate any help. Also if anyone know a javascript
>>> debugger/debugging technique for internet explorer, please let me know,
>>> so i
>>> will be able to do something about this :(..
>>>
>>> Thanks
>>>
>>>
>>> doGet: function() {
>>> if (this.precondition()) {
>>>
>>> this.transport = Wicket.Ajax.getTransport();
>>>
>>> var url = this.createUrl();
>>> this.log("GET", url);
>>>
>>> Wicket.Ajax.invokePreCallHandlers();
>>>
>>> * var t = this.transport;**
>>> if (t != null) {
>>> if (Wicket.Browser.isGecko()) {
>>> var href = document.location.href;
>>> var lastIndexOf = href.lastIndexOf('/');
>>> if (lastIndexOf > 0)
>>> {
>>> url = href.substring(0,lastIndexOf+1) + url;
>>> }
>>> }
>>> t.open("GET", url, this.async);
>>> t.onreadystatechange =
>>> this.stateChangeCallback.bind(this);
>>> // set a special flag to allow server distinguish
>>> between
>>> ajax and non-ajax requests
>>> t.setRequestHeader("Wicket-Ajax", "true");
>>> t.setRequestHeader("Wicket-FocusedElementId",
>>> Wicket.Focus.lastFocusId || "");
>>> t.setRequestHeader("Accept", "text/xml");
>>> t.send(null);
>>> return true;*
>>> } else {
>>> this.failure();
>>> return false;
>>> }
>>> } else {
>>> Wicket.Log.info("Ajax GET stopped because of precondition
>>> check,
>>> url:" + this.url);
>>> this.done();
>>> return true;
>>> }
>>> }
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/javascript-error-in-internet-explorer-tp16732896p17183082.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: javascript error in internet explorer
Posted by Newgro <pe...@gmx.ch>.
Johan Compagner wrote:
>
> is there a jira issue for this patch?
>
Hello Johan
i added an issue for this here
https://issues.apache.org/jira/browse/WICKET-1653 WICKET-1653
I have the same error with my ie 6. Will it be fixed in an 1.3 or only in an
1.4 version?
Thanks
Per
--
View this message in context: http://www.nabble.com/javascript-error-in-internet-explorer-tp16732896p17400631.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: javascript error in internet explorer
Posted by Johan Compagner <jc...@gmail.com>.
is there a jira issue for this patch?
On Sat, May 10, 2008 at 12:34 AM, PITI <md...@piti.pf> wrote:
>
> I had a similar problem. In wicket-ajax.js, I made the following changes,
> and
> now it works fine :
>
> if (Wicket.Focus && Wicket.Focus.lastFocusId) {
> t.setRequestHeader("Wicket-FocusedElementId", Wicket.Focus.lastFocusId
> || "");
> }
> else {
> // t.setRequestHeader("Wicket-FocusedElementId", "");
> }
>
> Hope this helps.
>
>
>
> bglynn wrote:
> >
> > I'm also having either the same issue or one very similar.
> >
> > The problem I'm seeing seems to be isolated to IE. The specific build
> > version of IE 7.0.5730.11. The issue only seems to have come up on one
> of
> > 5 machines and assuming the specific IE build maybe an issue.
> >
> > Here's a description:
> > We are using a AjaxLazyLoadPanel to load a long running panel. As soon
> as
> > the panel is is loaded a javascript error of "invalid argument" is
> thrown
> > and the ajax request is halted. Doing some debugging revealed that the
> > exception was being thrown from
> > "t.setRequestHeader("Wicket-FocusedElementId",
> > Wicket.Focus.lastFocusId || "");". The Wicket.Focus.lastFocusId variable
> > is to "", which doesn't seem like it would cause a problem given the OR
> > operator.
> >
> > I'd really apperciate some assitance.
> >
> > Thanks,
> > Brian Glynn
> >
> >
> >
> > atul singh-5 wrote:
> >>
> >> Hi,
> >> I wanted to know about preCallHandlers in wicket-ajax.js .What are they
> >> and
> >> How are they related in java code.
> >> Actually I am facing a problem in internet explorer. The ajax get call
> >> give
> >> error after "Invoking pre-call handler(s).."
> >> It gives an error in the highlighted portion and then all ajax stops
> >> working, because this get call did not return.
> >> The error says--"invalid argument"
> >> I will really appreciate any help. Also if anyone know a javascript
> >> debugger/debugging technique for internet explorer, please let me know,
> >> so i
> >> will be able to do something about this :(..
> >>
> >> Thanks
> >>
> >>
> >> doGet: function() {
> >> if (this.precondition()) {
> >>
> >> this.transport = Wicket.Ajax.getTransport();
> >>
> >> var url = this.createUrl();
> >> this.log("GET", url);
> >>
> >> Wicket.Ajax.invokePreCallHandlers();
> >>
> >> * var t = this.transport;**
> >> if (t != null) {
> >> if (Wicket.Browser.isGecko()) {
> >> var href = document.location.href;
> >> var lastIndexOf = href.lastIndexOf('/');
> >> if (lastIndexOf > 0)
> >> {
> >> url = href.substring(0,lastIndexOf+1) + url;
> >> }
> >> }
> >> t.open("GET", url, this.async);
> >> t.onreadystatechange =
> >> this.stateChangeCallback.bind(this);
> >> // set a special flag to allow server distinguish
> between
> >> ajax and non-ajax requests
> >> t.setRequestHeader("Wicket-Ajax", "true");
> >> t.setRequestHeader("Wicket-FocusedElementId",
> >> Wicket.Focus.lastFocusId || "");
> >> t.setRequestHeader("Accept", "text/xml");
> >> t.send(null);
> >> return true;*
> >> } else {
> >> this.failure();
> >> return false;
> >> }
> >> } else {
> >> Wicket.Log.info("Ajax GET stopped because of precondition
> >> check,
> >> url:" + this.url);
> >> this.done();
> >> return true;
> >> }
> >> }
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/javascript-error-in-internet-explorer-tp16732896p17157574.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>