Jump to content
Fórum Script Brasil
  • 0

Flash e AJAX


Thais TA

Question

Ola Pessoal!

Probleminha com fash e Ajax!

Fiz uma programaçao em AJAx para abrir uma div com uma animaçao em fash!

Esse é o problema, a animaçao não abre!

Fiz dentro de um Iframe e ela abriu! So que não queria desse modo, porque aparecem barras de rolagens e um bordar separando o conteudo!

alguém pode me ajudar?

Aqui esta o codigo

Ajax:

CODE

<script type="text/javascript">
        function abre(arquivo){
            var xmlHttp;
            try {
                // Firefox, Opera 8.0+, Safari
                xmlHttp=new XMLHttpRequest();
            }
            catch (e) {
                // Internet Explorer
                try {
                    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch (e){
                    try {
                        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                    } 
                    catch (e) {
                        alert("Seu navegador não suporta AJAX. Atualize-o em www.getfirefox.com");
                        return false;
                    }
                }
            }
            xmlHttp.onreadystatechange=function() {
                if(xmlHttp.readyState == 1) {
                    document.getElementById("minhadiv").innerHTML = "Carregando...";
                }
                if(xmlHttp.readyState == 4) {
                    document.getElementById("minhadiv").innerHTML = xmlHttp.responseText;
                }
            }
            xmlHttp.open("GET",arquivo,true);
            xmlHttp.send(null);
        }
        </script>


<div id="menu"><a href="java script:;" onClick="abre('link1.html');">Link 1</a></div>


<div id="minhadiv"></div>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...