window.location 링크시 target 문제.. 정보
window.location 링크시 target 문제..본문
function GoPage(code, url) {
if ( !code ) {window.location = "index.php"; }
else if ( code == "main" ) {window.location = "main.php"; } //메인
else if ( code == "sub01" ){window.parent.main.location = "sub1_1.php" ; }
else if ( code == "sub01_2" ){window.location = "sub1_2.php"; }
<a href=" javascript:GoPage('sub01')">
이렇게 스크립트로 링크를 걸고 있습니다
여기에 타켓을 지정해 줄려고하는데..
나름 여기저기 찾아보고 소스를 적용해볼라고 했으나 잘안되네요..
1. window.parent.main(프레임명).location = "/sub1_1.php?bo_table=sub1_1" ; //안됨 (스크립트오류남)
2. else if ( code == "shop_cafe" ) {window.location.href = "#"; window.open("main.php", "main" );} // 안됨 새창으로 뜸.
타켓은 페이지안의 아이프레임으로 걸고 싶은데..ㅠ 잘안되네요
if ( !code ) {window.location = "index.php"; }
else if ( code == "main" ) {window.location = "main.php"; } //메인
else if ( code == "sub01" ){window.parent.main.location = "sub1_1.php" ; }
else if ( code == "sub01_2" ){window.location = "sub1_2.php"; }
<a href=" javascript:GoPage('sub01')">
이렇게 스크립트로 링크를 걸고 있습니다
여기에 타켓을 지정해 줄려고하는데..
나름 여기저기 찾아보고 소스를 적용해볼라고 했으나 잘안되네요..
1. window.parent.main(프레임명).location = "/sub1_1.php?bo_table=sub1_1" ; //안됨 (스크립트오류남)
2. else if ( code == "shop_cafe" ) {window.location.href = "#"; window.open("main.php", "main" );} // 안됨 새창으로 뜸.
타켓은 페이지안의 아이프레임으로 걸고 싶은데..ㅠ 잘안되네요
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '169972' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php