2014-11-06 4 views
0

나는 내가 두 개의 입력 상자를 넣어 follows-인텔 XDK 직접 HTML 파일 사용

여기

function myFunction() { 
 
    window.location.href = “sms:+getElementById("number")?body=getElementById("content")”;
<html> 
 
\t <head> 
 
\t \t <link type="text/css" rel="stylesheet" href="stylesheet.css"/> 
 
\t \t <script type="text/javascript" src="script.js"></script> 
 
\t </head> 
 
\t <body> 
 
\t \t <input type=text id=number placeholder="Enter Mobile Number"></input><br><br> 
 
\t \t <input type=text id=content placeholder="Enter Body of SMS"></input><br><br> 
 
\t \t <button type="button" id='send' onclick='myFunction()'>Send SMS</button><br><br> 
 
\t \t 
 
\t \t This app is in Beta 
 
\t </body> 
 
\t </html>

같은 일부 자바 스크립트 경우 SMS를 보내기위한 간단한 HTML 파일을 내가 데스크탑 반면에 무엇을 얻을 만든 브라우저에서 미리보기 - https://drive.google.com/file/d/0B_DG5jTH_sYDUlVaZDZtMkxuTFk/view?usp=sharing

그러나 XDK에서 미리보기하는 것은이있는 동안 내가 무엇을 얻을 - https://drive.google.com/open?id=0B_DG5jTH_sYDNFJPU0JjNWtLQ3c&authuser=0

왜 이런 현상이 발생합니까?

어떻게 해결할 수 있습니까?

도움을 주시면 감사하겠습니다. 당신이 XDK 에뮬레이터보기에서보고있는 무엇

감사합니다, 애쉬 윈

답변

0

는 비어있는 새 응용 프로그램을 만들 때 얻을 XDK에서 표준 빈 응용 프로그램 템플릿입니다.

빈 앱에서 index.html을 수정 하시겠습니까? www/ 디렉토리에 있습니다.

또한 변경 한 후에 왼쪽 상단에있는 "Reload App"버튼을 눌러 에뮬레이터를 다시로드해야 새 코드를받을 수 있습니다.

관련 문제