English 中文(简体)
POST 上父端发送数据的弹出窗口
原标题:Pop-up window where parent sent data by POST

here s my question: I have a table with some info in it. I want to create a pop-up window when i click on one of the cell value (ex: foo). This pop-up will generate informations from a SQL request where the value foo will be necessary.

简而言之,是否有一个弹出式窗口功能, 我可以从父窗口发送信息到该窗口?

只是想提一下 我试过一些 但我只能把静态信息放进去

谢谢

最佳回答

首先您会通过 ajax 发布数据。 然后根据响应, 您可以用所需的 URL 弹出新窗口 。

问题回答

最简单的是用一个需要的参数(直接发送到服务器)的 URL 简单打开弹出式 : < a href="http://www.javastant-coder.com/window-popup/javastant-window-open.phtml" rel=“nofollow” >http://www.javascript-coder.com/window-popup/javastant-window-open.phtml

如果您真的需要将参数发送到 POST 中, 您可以从孩子那里访问父窗口中的 javascript 变量, 使用 < code> window. opener (在弹出后以恒定的 URL 打开) 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签