로그인페이지로 안가요

· 2012-09-10 (월) 14:56:58 · 817 · 3
그누보드는 아니지만..
 
함 봐주세요
 
<SCRIPT LANGUAGE="JavaScript">
< !--
var conFlag = true;
function entryEvent(){
var doc = document.surveyForm;
if(!<?=$printJsCheckDate?>){
alert("이벤트 응모날짜가 아닙니다. 해당응모 날짜에 응모해 주시길 바랍니다.");
return;
}
if( "<?=$cookie_id?>" == "" ){
alert('로그인 후 이벤트에 응모해 주시길 바랍니다.');
window.location=='http://www.naver.com';
return;
}
if(doc.contents.value == '' || conFlag == true){
alert('신청사유를 꼭 작성해주세요.');
document.surveyForm.contents.value="";
conFlag = false;
return;
}
doc.mode.value = "add";
doc.target = "hiddenIfm";
doc.action = "event_action.php";
doc.submit();
}
function hiddenContents(){
if(conFlag == true){
document.surveyForm.contents.value="";
conFlag = false;
}
}
//-->
< /SCRIPT>
<form name="surveyForm">
< input type="text" name="contents" class="itext3" title="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" value="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" onClick="javascript_:hiddenContents();"/><input type="image" src="../event/20120911_cookingclass/btn_request.gif" class="btn_ok" value="" title="응모하기"onClick="javascript_:entryEvent();" />
</form>
왜 로그인안했을때 경고창은 뜨는데 이동을 안하져?
뭐가 잘못된건가영?
|

댓글 3개

2012-09-10 (월) 16:31:18
window.location <---

document.location.href =
2012-09-10 (월) 16:40:45
그래도 안되네여 ;; 뭐가 문제인건지 답답하네영 돌삐님 감사합니다
window.parent.location.href=
댓글을 작성하시려면 로그인이 필요합니다.

토크

3,606건

오픈소스 관련 다양한 이야기를 자유롭게 나눠요

+
제목 글쓴이 날짜 조회
12-09-12 조회 1,797
12-09-12 조회 1,035
12-09-12 조회 890
12-09-12 조회 2,060
12-09-12 조회 1,374
12-09-12 조회 1,056
12-09-12 조회 935
12-09-12 조회 1,543
12-09-12 조회 1,296
12-09-12 조회 894
12-09-11 조회 1,874
12-09-11 조회 1,130
12-09-11 조회 1,565
12-09-11 조회 1,335
12-09-11 조회 1,563
12-09-10 조회 1,786
12-09-10 조회 916
12-09-10 조회 1,505
12-09-10 조회 1,169
12-09-10 조회 962
12-09-10 조회 897
12-09-10 조회 865
12-09-10 조회 1,118
12-09-10 조회 1,206
12-09-10 조회 818
12-09-10 조회 1,319
12-09-10 조회 1,037
12-09-10 조회 1,152
12-09-10 조회 1,265
12-09-10 조회 1,234