Jump to content

[Resolvido] site não funciona no firefox e chrome


dianaemanuel
 Share

Recommended Posts

Então o meu projecto tem uma página inicial que é constituída por duas frames.

Na frame um tenho vários controlos que são inseridos em runtime, sendo um deles um botão e no click desse botão mando executar esta função:

ScriptManager.RegisterStartupScript(imgbtn.Page, typeof(Page), "reloadframe", "Reloadonlyframe('" + idframe + "', 'conteudoslide.aspx?NomePagina=" + accao + "');", true);

function Reloadonlyframe(id, src) {
	    var target = window.parent.frames["ContentPlaceHolder1_" + id]; /*Get the name of the iframe to reload*/
	    target.frameElement.src = src; /*reload the iframe*/
	    target.frameElement.className = "slideframes";
    }


Isto no IE11 funciona mas não nos outros browsers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.