如何取回目标 [英] how to get back the target

查看:69
本文介绍了如何取回目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我一直在设置当前页面的目标。比如说,以下

函数叫做


函数Call_OnClick(index,nValue,PageID,TargetFrameID)

{

document.InputForm.PAGEID.value = PageID;

if(TargetFrameID!= null)

document.InputForm.target =''_ new'';

document.InputForm.submit();

}


打开另一个broswer。在此之后,父GUI没有显示所有元素,只有少数的底部消失了。没有夸大上面的

功能,一切都很好。我认为这是目标设置问题(所有

页面都由本项目中的控制器管理)。


任何人都能说出这个问题吗? br />

-

谢谢

John

多伦多

Hi

I''m stuck on setting a target for current page. say, the following
function is called

function Call_OnClick(index, nValue, PageID, TargetFrameID)
{
document.InputForm.PAGEID.value = PageID;
if ( TargetFrameID != null )
document.InputForm.target = ''_new'';
document.InputForm.submit();
}

to open another broswer. after this, the parent GUI doesn''t display all
the component, few of bottons are gone. without exacuting the above
function, all are fine. I think it''s the target setting problem (all
pages are governed by controller in this project).

Can anyone tell about this issue?

--
Thanks
John
Toronto

推荐答案

john woo写道:
john woo wrote:


我一直在设置当前页面的目标。比如,以下
函数叫做函数Call_OnClick(index,nValue,PageID,TargetFrameID)
{
document.InputForm.PAGEID.value = PageID;
if(TargetFrameID!= null)
document.InputForm.target =''_ new'';
document.InputForm.submit();
}
打开另一个broswer。在此之后,父GUI没有显示所有组件,很少有底部消失。没有激发上述功能,一切都很好。我认为这是目标设置问题(所有
页面都由本项目中的控制器管理)。

任何人都能说出这个问题吗?

- -
谢谢
John
多伦多
Hi

I''m stuck on setting a target for current page. say, the following
function is called

function Call_OnClick(index, nValue, PageID, TargetFrameID)
{
document.InputForm.PAGEID.value = PageID;
if ( TargetFrameID != null )
document.InputForm.target = ''_new'';
document.InputForm.submit();
}

to open another broswer. after this, the parent GUI doesn''t display all
the component, few of bottons are gone. without exacuting the above
function, all are fine. I think it''s the target setting problem (all
pages are governed by controller in this project).

Can anyone tell about this issue?

--
Thanks
John
Toronto




父GUI如何?正在展示?是否正在使用框架集?

我没有给出足够的信息来确定为什么你的父母

GUI没有出现在新页面中(我认为这就是你所期待的b $ b,但如果不是,那是因为你提供的任何网址都没有返回你所期望的(b)b。如果您的页面是生成服务器端的
,或者您希望运行的任何代码

生成您的父GUI。在这个新页面上没有被执行。


你的意思是使用_blank而不是_new? AFAIK,_ new并不是
有任何特殊含义,只会打开一个名为

" _new"的新窗口,除非名称为_new的窗口。已经存在,其中

的情况下它将被用作表格目标。

http://msdn.microsoft.com/library/de...ies/target。 asp



How is the "parent GUI" being displayed? Is a frameset being used?
There''s not enough information given for me determine why your parent
GUI isn''t showing up in the new page (I think that is what you are
expecting), but if it isn''t, it is because whatever URL you are
submitting to isn''t returning what you expect (if your page is
generated server-side), or whatever code you are expecting to run to
generate your "parent GUI" isn''t being executed on this new page.

Do you mean to use "_blank" instead of "_new"? AFAIK, "_new" doesn''t
have any special meaning, and will simply open up a new window named
"_new", unless a window with a name of "_new" already exists, in which
case it will be used as the form target.

http://msdn.microsoft.com/library/de...ies/target.asp


Jc写道:
Jc wrote:
你的意思是使用_blank吗?而不是_new? AFAIK,_ new不具有任何特殊含义
Do you mean to use "_blank" instead of "_new"? AFAIK, "_new" doesn''t
have any special meaning




_new不允许作为目标名称并导致浏览器执行错误

恢复。有些人可能会将其视为_blank,有些人可能将其视为没有

特殊功能的名称。


-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

首页是〜/ .bashrc的位置



_new isn''t allowed as a target name and causes browsers to perform error
recovery. Some may treat it as _blank, some may treat it as a name with no
special features.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


它是'嵌入JSP中。控制器处理所有URL。父母

GUI内置一个基本模板,它提供了一个按钮栏。以上

函数


document.InputForm.target =''_ new'';

document.InputForm.submit() ;


让控制器知道请求的新页面和

控制器(服务器端,servlet服务器引擎)弹出另一个JSP

(DHTML,带有java代码,HTML和javascript)。


弹出后,似乎控制器丢失了一些关于

的信息父GUI,没有发回栏上的按钮。


没有执行上述功能,一切都很好

It''s embeded inside a JSP. a controller handles all the URL. the parent
GUI built in a basic template, which provides a buttons bar. the above
function

document.InputForm.target = ''_new'';
document.InputForm.submit();

let the controler knows a new page requested and the
controler(server-side,servlet server engine) pops up another JSP
(DHTML, with java-code,HTML and javascript).

after this pop up, it seemed the controler lose some info about the
parent GUI, didn''t sent back the buttons on the bar.

without executing the above function, all are fine


这篇关于如何取回目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆