How can i slide a form in another page using ajax

Blooming Developer 276 Reputation points
2021-08-24T09:58:13.133+00:00
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yiyi You - MSFT 521 Reputation points
    2021-08-25T03:01:37.34+00:00

    Hi,@Blooming Developer ,

    you can try to use $('.user-info').show('slide', { direction: 'right' }, 1000); with jquery ui,here is a demo:
    View:

    <div class="user-info">  
        <div class="user-info-in">  
            <div class="cc">Close</div>  
            Comments  
            <ul class="list-group">  
                <li class="list-group-item">  
                    <b>User 1</b>  
                    <p>This is for testing</p>  
                </li>  
                <li class="list-group-item">  
                    <b>User 2</b>  
                    <p>This is for testing</p>  
                </li>  
                <li class="list-group-item">  
                    <b>User 2</b>  
                    <p>This is for testing</p>  
                </li>  
                <li class="list-group-item">  
                    <b>User 2</b>  
                    <p>This is for testing</p>  
                </li>  
                <li class="list-group-item">  
                    <b>User 2</b>  
                    <p>This is for testing</p>  
                </li>  
            </ul>  
            <form>  
                <textarea>Please Enter Your Comments</textarea>  
                <input type="submit" />  
            </form>  
        </div>  
    </div>  
    <style>  
       .user-info {  
             
            display: none;  
        }  
    </style>  
    

    script:

     $('#RequestFormChatBox').click(function () {  
      
                if ($('.user-info').is(':hidden')) {  
      
                    $('.user-info').show('slide', { direction: 'right' }, 1000);  
                } else {  
      
                    $('.user-info').hide('slide', { direction: 'right' }, 1000);  
                }  
            });  
    

    And you need to add the following js
    126157-image.png
    to your view.

    result:
    126195-8-25-1.gif

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    YiyiYou

    0 comments No comments