2013-08-01 37 views
0

我想要點擊drupal頁面中的鏈接我打開一個窗口,其中包含一個窗體。但窗口應該是一個新窗口。Drupal使用JQuery/JavaScript在drupal中在新窗口中加載頁面

我該怎麼做。

我想使用普通

window.open(theURL, windowName, features); 

,但我怎麼

1) Create a drupal page without the default themes. 

2) Load this page from JS into a new window. This page is going to be a form. 

我應該創建只是一個TPL頁面,並通過_theme功能加載它?我很困惑...

回答

0

這不是Drupal的方式......但回答你的問題:

1)你沒有創建一個沒有主題的Drupal頁面。您可以創建一個HTML表單,而無需Drupal在網站/ all/forms/

2)$('#element').attr('target', '_blank');