Since I was doing an ajax request, I passed the ID of the item I wanted to
change and had lasso display it on the modal¹s js.  It¹s working great.
Thanks.


On 5/15/07 2:09 PM, "Shelane Enos" <[EMAIL PROTECTED]> wrote:

> I haven¹t tried this yet, but just wondering... The image I need to load is
> based on the results of what done in the modal and what result is returned
> from the server.  Ideally, the action I perform on the modal (when something
> clicked) would also cause the modal to close.
> 
> 
> On 5/15/07 2:01 PM, "Benjamin Sterling" <[EMAIL PROTECTED]>
> wrote:
> 
>> Maybe something like below (not tested and off the top of my head)
>> 
>> var currentObject = null;
>> 
>> $(function(){
>> $('.invited').css('cursor',
>> 'pointer').click(function(){
>> var url = 'myserverpage.lasso?task=event&event=1&volunteer=';
>> url += $(this).attr('id');
>> currentObject = this;
>> $('#invitation').jqm({
>> ajax: url,
>> onhide: function(){
>> hash.o.remove();
>> doSomething();
>> }
>> }).jqmShow(); 
>> });
>> });
>> 
>> doSomething = function(){
>> $(currentObject ).empty().append('<img/>');
>> currentObject = null;
>> }
>> 
>> 
>> That should point you in the right direction.
> 
> 
> > 
> 


Reply via email to