OK, so as a workaround for IE, I assigned the click event to the img.

My lasso code looks something like this:

<taconite>[if:client_browser >> 'MSIE']
<replaceContent select="#mystatus">
    <img src="/images/icons/check.gif" width="16" height="16" border="0"
id="mystatusimg" style="cursor:pointer;" />
</replaceContent>
<eval>
    $j('#mystatusimg').click(function(){
        setStatus('mystatus', 'statusID', 'update status to this value');
    });
</eval>[else]
<replaceContent select="#mystatus">
    <a href="#" onClick=" setStatus('mystatus', 'statusID', 'update status
to this value');"><img src="/images/icons/check.gif" width="16" height="16"
border="0" /></a>
</replaceContent>[/if]
<replaceContent select="#mystatusDate">
    dynamic date status created
</replaceContent>
</taconite>


On 4/20/07 7:47 PM, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote:

> 
> Shelane,
> 
>> I'm having a strange issue on IE (isn't it almost always the culprit
>> of issues).
>> 
>> I'm returning this:
>> 
>> <taconite>
>> <replaceContent select="#mystatus">
>> <a href="#" onClick="setStatus('mystatus', 'statusID', 'update
> status
>> to this value');"><img src="/images/icons/check.gif" width="16"
>> height="16" border="0" /></a>
>> </replaceContent>
>> <replaceContent select="#mystatusDate">
>> dynamic date status created
>> </replaceContent>
>> </taconite>
>> 
>> it's hard to see exactly what's coming in on IE without firebug but
>> the items are getting updated.  The problem comes when I try to click
>> on the "checkbox" image the second time (after it was first called and
>> the data is returned).  However, that second time does nothing.  The
>> function setStatus is not being called (determined by putting an alert
>> at the top of the function just to tell me it's being called).
>> 
>> I would just use a bind click event, but the problem is that I have a
>> dynamic number of "statuses" that have to pass specific values to the
>> server in order to be processed.  Since it was all working everywhere
>> else, I thought I was good, until I tried in in IE.
>> 
>> Any suggestions?
> 
> It sounds like you're running into this problem:
> http://groups.google.com/group/jquery-en/browse_frm/thread/3535a8ba195d0a37/
> 9d05b60155ed547e?lnk=gst&q=ext+click&rnum=2#9d05b60155ed547e
> 
> If it is, then hopefully the problem will be resolved soon. Heck, it might
> already be fixed in the SVN--I haven't looked.
> 
> -Dan
> 
> 
> 

Reply via email to