Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6036339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:54:35+00:00 2026-05-23T05:54:35+00:00

I ask for some help/advise. I have a jquery form dialog to collect usr/pwd

  • 0

I ask for some help/advise.

I have a jquery form dialog to collect usr/pwd in order to do a ftp login.

I have the form working and the dialog is showing me the correct values for the fields but the dialog I have is not working (I am newbie with jquery) nothing happens. My guess is the .ajax but I cannot be sure.

Here is the code I have:

$(function(){
  $('#ftp').dialog({
    autoOpen: false,
    show: 'highlight',
    hide: 'scale',
    modal: true,
    buttons: {
        'send': function() {
            var name = $('#usr').val(), password = $('#pwd').val();
            var myftp = $(this);

            if (name != '' && password != '') { // alert('name=' + name + '&pass=' + password);
                $.ajax({
                  type: 'POST',
                  url: 'ftp.php',
                  data: 'name='+name+'&pass='+password,
                  success: function(msg){
                    alert(msg);
                    $(myftp).dialog('close');
                  }
                });
            }
        },
        'close': function() { $(this).dialog('close'); }
    },
    resizable: false,
    width: '500px'
});

http://ftp.php is a simple header ('location: ... ) to call the ftp with the proper parameters.

#ftp is the form id containing usr/pwd.

I don’t know if jquery has the equivalent functionality. I am more familiar with php

I really appreciate your help with this.

Regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:54:35+00:00Added an answer on May 23, 2026 at 5:54 am

    I solved. Finally I replace ajax and the result is:

    if (name != '' && password != '') {                  //alert('usr='+name+'&pwd='+password);
        window.parent.location="http://domain.com/ftp.php?" + 'name='+name+'&password='+password;
    }
    

    I’ll try later with $(“#myForm”).submit() instead to avoid the password travel in the open. But this works as per my own request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

need ask you about some help. I have web app running in Net 2.0.
Good morning! I would like to ask some help from you guys on how
I'm still fairly new to mysql and would like to ask for some help.
I'm new here. I thought I could ask for some help here on my
I have some table: table ASK with idask table PREFERENCES with idpref , fk_idask
I would like to ask some logic question here. Let say I have a
i would like to ask some help from you guys. i am making a
I would like to ask for some help to understand an error report. I
Hi can i ask some help?is there formula for infix to postfix?...I don't know
I have to humble myself and ask for some guidance on a topic I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.