I will take a look at it in depth... But, in the meantime, can u try using
some other id for the div instead of "document". Sometimes crazy things like
these have worked for me.

-GTG


On 8/22/07, Márcio Kabke Pinheiro <[EMAIL PROTECTED]> wrote:
>
>
> I'm very new in jQuery (in fact, only 2 days :-) ), and I'm having a
> strange error in IE7.
>
> I have a little JS function that, when a link is clicked, creates a
> div in the screen and shows a PHP page created with an parameter
> passed. Nothing too fancy, is like a pop-up window.
>
> The code is really simple:
>
> function callDoc (cod) {
>   $("<div id='document' class='document'> Loading document...</
> div>").appendTo(".maintable");
>   $.get ("document.php", {doccode: cod}, function(page){
>          $("#document").html (page);
>       });
> }
>
>
> Works like a charm in Firefox, but nothing appears is IE7. Since I
> don't have a Firebug in IE (anger...), and no error appears in the
> IE's status bar, I've inserted and alert ("Hello") in the first line
> of the function, to see if the functions was been called. It appeared.
> Then, the problem is in the jQuery commands.
>
> To make it more strange, once in a while (very few times) the div
> appeared in IE.
>
> Any hints? Rookie mistake? I have to finish this site 'till the end of
> the week.
>
> Sorry for my English, and thanks in advance
>
> Márcio
>
>

Reply via email to