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 5968829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:08:41+00:00 2026-05-22T20:08:41+00:00

I am having a small issue, I am trying to run a $(form#picform).submit after

  • 0

I am having a small issue, I am trying to run a $("form#picform").submit

after this function

$('select[name="phototype"]').live('change',function(){

if (this.value) {
            $(this).closest('form').submit();
    }
});

I need that to run this function

$("form#pendingpic").submit(function(){
    alert($('#picid').val());
    return false;
});

here is my full js file.

    var session = null;
var sessionparts = null;





$(document).ready(function(){


    window.scrollTo(0, 1);


    $('select[name="phototype"]').live('change',function(){
    var $el = $(this);

    if ($el.val()) {
        $el.closest('form').submit();
    }   

      $("form#pendingpic").trigger('submit');
    });

    if ($.cookies.get('_Squirtnow_AdminSession') != null) {
           session = $.cookies.get('_Squirtnow_AdminSession');
           successlogin();
        }


    $('ul#mainmenu a li').live('click', function(event){
            //alert(this.id);

            $("li#"+lastpageid).removeClass();
            fetchpage(this.id);


            var text = '';
            $('a li#'+this.id+'').contents().each(function(){
            if(this.nodeType === 3){
             text += this.wholeText;
            }
            });

            $("#largemenutop").html(text);

            $("li#"+this.id).addClass("active");
            lastpageid = this.id;
    });



    });

//form code
$(function() {   

    $("form#pendingpic").submit(function(){
        //alert($('#picid').val());

        $.ajax({
            type: "POST",
            url: "goog.php",
            data: "process=1&username="+ username +"&password="+ password,
            success: function(data){
            if((data) == 1)
            {
                $('#notify').fadeOut(10);
                session = $.cookies.get('_Squirtnow_AdminSession');
                successlogin();
            }
            else
            {
                $('#notify').show();
                $('#notifytext').html(data);
                setTimeout(function() {
                $('#notify').fadeOut(1000);
                }, 4000);
                }
            }

        });

        return false;
    });

    $("form#login").submit(function() {

        var username    = $('#username').attr('value');
        var password    = SHA1($('#password').attr('value'));


        $('#notify').show();
                $('#notifytext').html("Please wait...<br/>We are processing your login form.");

        $.ajax({
            type: "POST",
            url: "sys/classes/userlogin.php",
            data: "process=1&username="+ username +"&password="+ password,
            success: function(data){
            if((data) == 1)
            {
                $('#notify').fadeOut(10);
                session = $.cookies.get('_Squirtnow_AdminSession');
                successlogin();
            }
            else
            {
                $('#notify').show();
                $('#notifytext').html(data);
                setTimeout(function() {
                $('#notify').fadeOut(1000);
                }, 4000);
                }
            }

        });
    return false;





    });

    //end of code
});


function successlogin(){
    sessionparts = session.split('|');
    changelayout();
    fetchmenus();
//  basicinfomenu();
//  checkuserprofile();
    fetchpage("home");
}



function fetchmenus(){

    $("<a href='#/page/home'><li id='home'><img src='theme/images/space.png' id='menu' class='home'/><br/>Home</li></a>").appendTo("ul#left");
    $("<a href='#/page/pendingusers'><li id='pendingusers'><img src='theme/images/space.png' id='menu' class='pendingusers'/><br/>Pending Users</li></a>").appendTo("ul#left");
    $("<a href='#/page/pendingpictures'><li id='pendingpictures'><img src='theme/images/space.png' id='menu' class='pendingpictures'/><br/>Pending Pictures</li></a>").appendTo("ul#left");

    $("<a href='#/page/sendmail'><li id='sendmail'><img src='theme/images/space.png' id='menu' class='sendmail'/><br/>Send Mail</li></a>").appendTo("ul#right");
    $("<a href='#/page/users'><li id='users'><img src='theme/images/space.png' id='menu' class='users'/><br/>Users</li></a>").appendTo("ul#right");
    $("<a href='#/page/stats'><li id='stats'><img src='theme/images/space.png' id='menu' class='stats'/><br/>Stats</li></a>").appendTo("ul#right");


}



function changelayout(){
    $("#successloginfull").html("<ul id='left'></ul>   <ul id='right'></ul>   <div id='mainarea'><div id='mainmenuheader'></div><div id='htmlarea'></div></div>");  

$("#onehundredpercent").hide();
$("#successloginfull").show();
}





function fetchpage(e){

        if(e == "home")
        {
            $("<div id='pendpicarea' class='threeten'></div><div id='trackingarea' class='threeten'></div><div id='sysmessagearea' class='threeten'></div>").appendTo("#htmlarea");

            homependingpics();
            hometrackusers();

        }

}


function homependingpics(){
    $.getJSON('sys/classes/fetch.php?fetch=pendingpic',function(fetchpendingpics){
                            // get line status

        $.each(fetchpendingpics, function(i,item){
            $("<div id='box'><img src='../sys/classes/fetchpicture.php?pic="+item.id+":917715617567156645'><form method='post' id='pendingpic' name='pendingpic'><input name='picid' type='hidden' id='picid' value='"+item.id+"'/><select name='phototype' id='phototype'><option value='' disabled>Rate Pic</option><option value='1'>G Rated</option><option value='2'>X Rated</option></select></form></div>").appendTo("#pendpicarea");    
        })

    })  
}

function hometrackusers(){
    setTimeout(function(){
        $.getJSON('sys/classes/fetch.php?fetch=trackusers',function(fetchpendingpics){
                            // get line status

            $.each(fetchpendingpics, function(i,item){
                $("").appendTo("#trackingarea");
            })

        })
    },1000);
}
  • 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-22T20:08:42+00:00Added an answer on May 22, 2026 at 8:08 pm
    $('select[name="phototype"]').live('change',function(){
      var $el = $(this);
    
      if ($el.val()) {
        $el.closest('form').submit();
      }
    
      $("form#pendingpic").trigger('submit');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having a small issue today.. I am trying to create an aui as
I am having a small issue with the mysqli_stmt prepare function. Here is my
im having a problem with a small issue within this query $update = mysql_query(UPDATE
We're having a small issue and could use some help - we have the
I'm having an issue trying to divide two decimals and then display the result.
EDIT: After fixing a few issues, the bigger issue that I am having is
I am having a small issue. I am creating a SPGridView on the fly
I am still having a issue getting over a small issue when it comes
I am having a small issue using the classic WebLogin snippet (Not WebLoginPE) in
I am having a small issue with setSelect and I cannot figure it out.

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.