语言

Menu
Sites
Language
How to "sign up" with TAU lib.

A few weeks ago I already asked here about this problem.

I got the reply "add  <access origin="*" subdomains="true"></access>", so I added. But it was not a main problem. The problem is still being.

If I annotate this code "<script src="./lib/tau/mobile/js/tau.js"></script>", the process works well. I mean if I insert datas and submit and then the datas are stored in server's DB.

Why the problem is happen ??

Thank you.

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>회원가입 폼</title>
<!-- <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js" ></script> -->
<script src="./lib/jquery.js"></script>
<script src="./lib/tau/mobile/js/tau.js"></script> <!--Without this code, sign up process is done well.-->
<script type="text/javascript" src="./js/main.js"></script>
<script type="text/javascript" src="./js/signup.js"></script>
<link rel="stylesheet"  href="./lib/tau/mobile/theme/default/tau.css">

</head>
<body>
<div id="wrap">
    <div id="container">
        <h1 class="title">회원가입</h1>
        <form name="signUp" action="http://IP address/member/memberSave.php" method="post" onsubmit="return checkSubmit()">
            <div class="line">
                <p>아이디</p>
                <div class="inputArea">
                    <input type="text" name="memberId" class="memberId" />
                </div>
                <div class="memberIdCheck">중복 확인</div>
                <div class="memberIdComment comment"></div>
            </div>
            <div class="line">
                <p>이름</p>
                <div class="inputArea">
                    <input type="text" name="memberName" class="memberName" />
                </div>
            </div>
            <div class="line">
                <p>비밀번호</p>
                <div class="inputArea">
                    <input type="password" name="memberPw" class="memberPw" />
                </div>
            </div>
            <div class="line">
                <p>비밀번호 확인</p>
                <div class="inputArea">
                    <input type="password" name="memberPw2" class="memberPw2"  />
                    <div class="memberPw2Comment comment"></div>
                </div>
            </div>
            <div class="line">
                <p>닉네임</p>
                <div class="inputArea">
                    <input type="text" name="memberNickName" class="memberNickName"  />
                    <div class="memberNickNameComment comment"></div>
                </div>
            </div>
            <div class="line">
                <p>이메일</p>
                <div class="inputArea">
                    <input type="text" name="memberEmailAddress" class="memberEmailAddress" />
                    <div class="memberEmailAddressComment comment"></div>
                </div>
            </div>
            <div class="line">
                <p>생일</p>
                <div class="inputArea">
                    <input type="text" name="memberBirthDay" class="memberBirthDay" />
                    <div class="memberBirthDayComment comment"></div>
                </div>
            </div>
            <div class="line">
                <input type="submit" value="가입하기" class="submit" />
            </div>
        </form>

        <div class="formCheck">
            <input type="hidden" name="idCheck" class="idCheck" />
            <input type="hidden" name="pw2Check" class="pwCheck2" />
            <input type="hidden" name="eMailCheck" class="eMailCheck" />
        </div>
    </div>
</div>
</body>
</html>

响应

6 回复
GEUNSOO KIM

move your script to the end of the html.

André Reus

Why don't you try to put these scripts at the last ! and put signup.js before main.js 

    ......
    </div>

    <!-- <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js" ></script> -->
    <script src="./lib/jquery.js"></script>
   <script src="./lib/tau/mobile/js/tau.js"></script> <!--Without this code, sign up process is done well.-->
   <script type="text/javascript" src="./js/signup.js"></script>
   <script type="text/javascript" src="./js/main.js"></script>
</body>
</html>

 

명훈 심

I moved these codes in front of </body> tag. But sign up action doesn't work... As I said if I annotate "<script src="./lib/tau/mobile/js/tau.js"></script>" the sing up action works well.

 

....

<script src="./lib/jquery.js"></script>
<script src="./lib/tau/mobile/js/tau.js"></script>
<script type="text/javascript" src="./js/signup.js"></script>
<script type="text/javascript" src="./js/main.js"></script>

</body>

André Reus

I think there is a conflict between your form and TAU... You may follow this form design which is made without TAU https://developer.tizen.org/community/tip-tech/form-validation-using-tizen-web

 

명훈 심

I think I have to use TAU for bluetooth connection with arduino.

How can I don't use TAU only in the signup.html??

If "sign in" is successed the tau.changePage() function change the page. So I already used TAU in index.html...

I think if seperating the html files from TAU, the "sign up" works.

André Reus

There is no relation between TAU and Tizen API .... TAU is just used to make UI nice and responsive. 
If you don't use TAU, it will not affect on bluetooth connection ...