"Bob Ippolito" <[EMAIL PROTECTED]> writes:

> On 10/19/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>>
>> I'm trying to change the text of some labels and it works perfectly if I run
>> it either locally or in an HTTP connection.  Is there some kind of 
>> restriction
>> to change labels in a secure connection?
>>
>
> There might be a restriction on JavaScript coming from a HTTP server
> when you're on a HTTPS page. Otherwise it sounds like your code just
> isn't running for some reason, probably not a valid URL for the
> script.

It was a valid URL and the code was perfectly fine.  It worked when using only
HTTP (development server) but not on HTTPS (production server).  I changed the
HTML element to an input field and the code ran perfectly.

As a solution to this problem I:

   - changed from ".innerHTML" to ".value" (because <label> has no ".value" I
     had to use ".innerHTML")

   - changed from <label> to <input type="text" disabled="1" class="borderless" 
/>
     (my input fields have a 1px border by default, so I had to override that
     with a special class)

These were the only changes to make the code work.  So, at least Firefox has a
restriction on changing labels when on a HTTPS page. 


Thanks for your answer,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>


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

Reply via email to