[mochikit] Re: help with httprequest

2007-11-01 Thread machineghost

What if you did something like:
.nodisplay{display:none}


and then in your callback added something like
"removeElementClass('body', 'nodisplay');" at the end?

Jeremy

On Nov 1, 4:25 am, Felipe Alcacibar B <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I am using jsCalendar as a calendar widget, but before write the
> calendar
> i need get the holidays vía xhr.
>
> The Deferred Object calls asynchronusly, and then loads the calendar
> before
> i fetch and parse the request.
>
> I need a method to get with xhr, but blocking the loading of the page
> while is
> loading. are some method to do this?? or maybe i need play with
> another
> things?
>
> Cheers!!
>
> Felipe


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: Javascript error in IE - Object required

2007-11-01 Thread machineghost

I'm not familiar with TurboGears (more of Django fan myself), but glad
I could help :-)

Jeremy

On Nov 1, 8:07 am, shday <[EMAIL PROTECTED]> wrote:
> On Oct 26, 12:00 pm, machineghost <[EMAIL PROTECTED]> wrote:
>
> > Is the error occurring when the page loads, because of this:
> >   conn(window, 'onload', model_id_changed);
>
> Yes, the error occurs here (when the page loads).
>
> I think I've solve the problem by changing:
>
> var model_id = event.target().value;
>
> to:
>
> var model_id = $('form_model_id').value;
>
> In this function:
>
>  function model_id_changed(event) {
> var model_id = event.target().value;
> var def = doSimpleXMLHttpRequest("/model/" + model_id + "/
> get_lab");
> def.addCallback(replace_lab);
>  };
>
> The javascript on the page was mostly taken from < docs.turbogears.org/1.0/RoughDocs/dynamicform>>, so I'm actually a
> little over my head here. Now I have a function, model_id_changed,
> that isn't using it's argument!
>
> Thanks for your help,
>
> Steve


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: Javascript error in IE - Object required

2007-11-01 Thread shday

On Oct 26, 12:00 pm, machineghost <[EMAIL PROTECTED]> wrote:
> Is the error occurring when the page loads, because of this:
>   conn(window, 'onload', model_id_changed);

Yes, the error occurs here (when the page loads).

I think I've solve the problem by changing:

var model_id = event.target().value;

to:

var model_id = $('form_model_id').value;

In this function:

 function model_id_changed(event) {
var model_id = event.target().value;
var def = doSimpleXMLHttpRequest("/model/" + model_id + "/
get_lab");
def.addCallback(replace_lab);
 };

The javascript on the page was mostly taken from <>, so I'm actually a
little over my head here. Now I have a function, model_id_changed,
that isn't using it's argument!

Thanks for your help,

Steve




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] help with httprequest

2007-11-01 Thread Felipe Alcacibar B

Hi.

I am using jsCalendar as a calendar widget, but before write the
calendar
i need get the holidays vía xhr.

The Deferred Object calls asynchronusly, and then loads the calendar
before
i fetch and parse the request.

I need a method to get with xhr, but blocking the loading of the page
while is
loading. are some method to do this?? or maybe i need play with
another
things?

Cheers!!

Felipe


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---