English 中文(简体)
如何在“X”二字后调用舱位
原标题:How to make a jquery function call after "X" seconds

我有支离破碎的职能,我需要在网站开放后打电话。

I am trying to open a weblink in an Iframe and after opening it I need to call the below function. So how do I do that?

我的职能是:

<script type="text/javascript">
       $(document).ready(function(){
           $("#<%=Button1.ClientID%>").click(function (event) {

            $( #<%=TextBox1.ClientID%> ).change(function () {
                $( #various3 ).attr( href , $(this).val());
            });
            $("#<%=Button2.ClientID%>").click();
        });
      })
    function showStickySuccessToast() {
        $().toastmessage( showToast , {
            text:  Finished Processing! ,
            sticky: false,
            position:  middle-center ,
            type:  success ,
            closeText:   ,
            close: function () {

            }
        });
    }

    </script>

这是我ton子在“综合框架”中打开链接:

<a id="various3" href="#"><asp:Button ID="Button1" 
runat="server" Text="Button" OnClientClick="Button2_Click"/></a>

实际上,这是一页的简单内容:

“entergraph

And this is the message enter image description here

最佳回答

你可以公正使用正常的一套办法。 贾瓦语预断方法。

iii

setTimeout( function(){ 
    // Do something after 1 second 
  }  , 1000 );

举例来说,您不妨直接使用<条码>。

问题回答

如果你能够显示实际的页数,我们或许可以帮助你。

If you want to trigger the button only after the iframe is loaded, you might want to check if it has been loaded or use the iframe.onload:

<iframe .... onload= buttonWhatever();  ></iframe>


<script type="text/javascript">

    function buttonWhatever() {
        $("#<%=Button1.ClientID%>").click(function (event) {
            $( #<%=TextBox1.ClientID%> ).change(function () {
                $( #various3 ).attr( href , $(this).val());
            });
            $("#<%=Button2.ClientID%>").click();
        });

        function showStickySuccessToast() {
            $().toastmessage( showToast , {
                text:  Finished Processing! ,
                sticky: false,
                position:  middle-center ,
                type:  success ,
                closeText:   ,
                close: function () { }
            });
        }
    }

</script>

<try The

setTimeout( function(){ 
    // call after 5 second 
  }  , 5000 );

如果你想在N of seconds之后再说几句,则采用以下方式。

setTimeout( function(){ 
    alert("welcome");
    }  , 2000 );

并且你可以这样说:

 setTimeout(showMessage, 2000 );
    
    function showMessage(){
      alert("welcome");
    }

如果你要为二分之一指定一个职能。 使用这一方法:

setInterval( function(){ 
    // execute me each 2 seconds 
  }  , 2000 );




相关问题
how do you suppress a direct call to a managed method?

I want to know if this is inherently possible: Think of a cloud scenario. I allow users to upload their .net code onto my server. However to manage things on my server I can t allow users to write ...

F# Riddle: how to call an overload of a method?

First part: call F# from F# Let s say we have the following type defined in F#: type MyClass = static member Overload1 (x, y) = "Pim" static member Overload1 (x : System.Tuple<_, ...

Django: Passing a request directly (inline) to a second view

I m trying to call a view directly from another (if this is at all possible). I have a view: def product_add(request, order_id=None): # Works. Handles a normal POST check and form submission and ...

IPhone Web App reurn to app after call

I have created a web app that produces a list of items to buy, It also gives a link to call the shop using a Tel: link to its phone number. I want to stay on the app page during the call so the user ...

jqgrid add / delete / modify button call a html page

i work with jqgrid for listings only also i don t use jqgrid forms i need to call external forms (example: update.cgi?id=123) to make modifications on the database. how can i make that ? thanks a lot

热门标签