2010-04-03 54 views
0

我从一个按钮,点击呼叫在我的控制器功能.... 我想要的功能,在新窗口中打开我们如何可以得到如何在新窗口或新选项卡中打开某个功能?

例如: 现在我的网址是

http://localhost/codeigniter_cup_myth/index.php/adminController/adminDegree

一个按钮点击我打电话的功能degreechk在我adminController

我想要的网址

http://localhost/codeigniter_cup_myth/index.php/adminController/degreechk

在新窗口 打开我怎样才能获得新的URL在新窗口中

回答

1

你必须处理它仅当您提交表格的查看页面。在您的表单标记中添加属性target =“_ blank”。例如: -

<form id="search" action="/search" method="get" target="_blank"> 
    <input name="q" class="textbox" tabindex="1" onfocus="if (this.value=='search') this.value = ''" type="text" maxlength="80" size="28" value="search"> 
    <input id="submit-button" type="submit" value="Post Your Answer" tabindex="110"> 

</form> 
+0

@Salil伟大的工作yaaar它工作? – udaya 2010-04-03 10:37:13

相关问题