Try ysing a relative path for your URL:
url: '/index.php?somevar=thisvalue'
On Nov 4, 11:58 am, Fábio M. Costa <
[hidden email]> wrote:
> it the onFailure event is firing its because there has been an error on your
> request, which means you didnt get a code 200 response.
>
> This can happen if the url you are using doesnt exist (error 404) or if
> theres an error on your server side code (error 500) or any other code that
> means error.
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interface
>
> On Wed, Nov 4, 2009 at 5:35 PM, farid silva aboid <
[hidden email]>wrote:
>
>
>
> > Hi, I'm newbie to mootools and trying to make an interactive form
> > which load sections according previous selection by the user.
>
> > under mootools 1.2.3 I'm using Request in this way:
>
> > function loadPage(url,container,loadInfoText) {
> > var myRequest = new Request(
> > {
> > url: url,
> > method: 'get',
> > onRequest: function()
> > {... },
> > onFailure: function()
> > {... },
> > onSuccess: function(response)
> > {
> > $(container).set('html',response);
> > $('divCierre').setStyle('visibility', 'visible');
> > }
> > }).send();
> > }
>
> > This function works fine where there's no more than de involved divs
> > in the page, but when I try to use it in the "production" page, I get
> > always the error predefined in onFailure method.
>
> > The pages are XHTML 1.0 transitional valids, same as css files
>
> > Any idea?
>
> > Thanks in advance