弹出页面插入地址薄

主要想实现的效果是:

主页面需要点击“地址薄”,弹出地址薄选择页面,然后选择完地址,又回到主页面并插入了所选的地址。

主页面需要写的javascript类似于:
[javascript]
<script language=”javascript”>
function AddressWindow()
{
try {
var url= “/pages/addressbook/selectaddressbook.faces”;
var AWnd=window.open(url,”地址簿”,”width=620,height=600,top=100,left=100, location=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes”);
if ((document.forms[0].window != null) && (!AWnd.opener)) AWnd.opener = document.forms[0].window;
AWnd.focus();
} catch(e) {
show_exception(e);
}
}
</script>
[/javascript]
地址薄选择页面需要写的javascript类似于:
[javascript]
<script language=”javascript”>
var openerid = “addressbookForm”;
var addresss = window.opener.document.getElementById(openerid+”:addresslist”).value;
function selectAll(formid,inode) {
var tableNode = document.getElementById(formid+”:addressbookClassItem”);
var tableNode2 = document.getElementById(formid+”:addressbookItem”);
var il = tableNode.getElementsByTagName(“input”);
var il2 = tableNode2.getElementsByTagName(“input”);
if(inode.checked) {
for(var i=0;i<il.length;i++) {
if(il[i].type == ‘checkbox’) {
il[i].checked = true;
}
}
for(var i=0;i<il2.length;i++) {
if(il2[i].type == ‘checkbox’) {
il2[i].checked = true;
}
}
}else {
for(var i=0;i<il.length;i++) {
if(il[i].type == ‘checkbox’) {
il[i].checked = false;
}
}
for(var i=0;i<il2.length;i++) {
if(il2[i].type == ‘checkbox’) {
il2[i].checked = false;
}
}
}
}
function selectClass(formid,inode) {
var classid = inode.parentNode.getElementsByTagName(“input”)[1].value;
var tableNode = document.getElementById(formid+”:addressbookItem”);
var il = tableNode.getElementsByTagName(“input”);
if(inode.checked) {
for(var i=0;i<il.length;i+=3) {
if(il[i+2].value == classid) {
il[i].checked = true;
}
}
}else {
for(var i=0;i<il.length;i+=3) {
if(il[i+2].value == classid) {
il[i].checked = false;
}
}
}
}
function fill_address(formid)
{
var tableNode = document.getElementById(formid+”:addressbookItem”);
var il = tableNode.getElementsByTagName(“input”);
for(var i=0;i<il.length;i++) {
if(il[i].checked) {
var email = il[i].parentNode.getElementsByTagName(“input”)[1].value;
addresss = addresss + email + “,”;
}
}
window.opener.document.getElementById(openerid+”:addresslist”).value = addresss;
window.close();
}
</script>
[/javascript]

2,081人评论了“弹出页面插入地址薄”

  1. I must point out my appreciation for your kind-heartedness supporting people who actually need assistance with that situation. Your very own commitment to passing the solution all around appears to be wonderfully useful and have surely empowered workers much like me to reach their ambitions. Your amazing invaluable guidelines entails a whole lot a person like me and still more to my peers. Best wishes; from all of us.

  2. I definitely wanted to write a word to be able to say thanks to you for all the fabulous advice you are posting on this site. My extensive internet lookup has finally been recognized with reasonable facts and techniques to talk about with my friends and family. I would assume that we site visitors are very much endowed to live in a perfect website with very many lovely professionals with great pointers. I feel really privileged to have seen your entire web site and look forward to tons of more awesome minutes reading here. Thanks once more for a lot of things.

  3. I want to express my appreciation to the writer just for rescuing me from this particular instance. As a result of looking out throughout the world-wide-web and seeing concepts which are not productive, I thought my entire life was done. Living without the presence of answers to the issues you’ve solved as a result of the report is a serious case, and the ones which could have badly affected my career if I had not come across your web page. Your actual understanding and kindness in dealing with the whole thing was useful. I’m not sure what I would’ve done if I hadn’t come across such a solution like this. I can at this moment relish my future. Thanks very much for your skilled and result oriented guide. I won’t think twice to recommend your web site to any individual who should receive counselling on this subject.

  4. I precisely desired to thank you so much once more. I’m not certain the things I would’ve taken care of in the absence of the entire hints provided by you regarding such problem. Completely was a fearsome crisis in my position, however , viewing the professional avenue you handled it forced me to leap over fulfillment. I will be happy for your service and believe you are aware of a powerful job you are always providing instructing the rest via your webblog. I am sure you haven’t come across all of us.

  5. I was curious if you ever thought of changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or 2 images. Maybe you could space it out better?|

  6. I simply had to say thanks all over again. I do not know the things that I would’ve achieved without the tips and hints provided by you regarding that topic. It seemed to be the challenging crisis for me personally, nevertheless discovering this specialised manner you treated it forced me to cry with gladness. I am just grateful for the advice and in addition expect you know what a great job you have been providing teaching people using your site. I am certain you’ve never got to know any of us.

  7. I would like to show appreciation to the writer for rescuing me from this particular scenario. Just after looking out through the world wide web and meeting views that were not productive, I was thinking my entire life was done. Living minus the answers to the problems you’ve resolved by means of your entire review is a critical case, and those which might have in a negative way affected my career if I hadn’t encountered your web site. Your actual mastery and kindness in dealing with all the things was very useful. I am not sure what I would’ve done if I hadn’t discovered such a solution like this. I’m able to now relish my future. Thanks so much for your professional and amazing help. I will not be reluctant to recommend your blog post to any person who would need support on this subject matter.

  8. I have to show my admiration for your generosity for folks that need guidance on this one theme. Your personal dedication to getting the message along came to be wonderfully beneficial and have really enabled others much like me to get to their pursuits. This invaluable hints and tips signifies a great deal to me and still more to my office workers. Best wishes; from all of us.

  9. I have to express my gratitude for your generosity supporting men and women that absolutely need help on this particular subject matter. Your personal dedication to getting the solution up and down turned out to be exceedingly productive and have continually encouraged women like me to arrive at their objectives. Your insightful hints and tips indicates this much to me and much more to my mates. Thank you; from all of us.

  10. Thank you so much for giving everyone an extremely breathtaking chance to read articles and blog posts from this site. It is usually very terrific plus stuffed with a great time for me personally and my office friends to visit your site at least 3 times in one week to study the new secrets you will have. And indeed, I’m also usually impressed with all the powerful suggestions you serve. Selected 2 facts in this post are definitely the most efficient I’ve had.

  11. Does viagra for women generic viagra canada suffer the consequences because sildenafil. Does Medicare swaddle sildenafil. 100% of Medicare Ingredient D and Medicare Profit plans cover this opiate generic viagra do you take viagra with water.

  12. I am also writing to make you be aware of what a magnificent encounter our girl had checking your site. She discovered a wide variety of things, most notably how it is like to possess a very effective helping mood to have other folks without problems understand various tricky issues. You really exceeded her desires. I appreciate you for presenting those priceless, trustworthy, edifying and in addition fun thoughts on the topic to Evelyn.

  13. I must show some thanks to this writer just for rescuing me from this crisis. Just after exploring through the the net and getting suggestions which are not productive, I believed my life was well over. Existing devoid of the answers to the issues you have solved by way of your good guideline is a crucial case, as well as those which might have in a wrong way affected my career if I hadn’t discovered your web site. Your own training and kindness in touching almost everything was vital. I don’t know what I would have done if I hadn’t come upon such a solution like this. I’m able to at this point look forward to my future. Thanks very much for the high quality and result oriented help. I won’t hesitate to refer the blog to any person who wants and needs counselling about this issue.

  14. Needed to write you a very little note to thank you very much over again on your unique secrets you’ve provided here. It is extremely generous with you to grant without restraint precisely what most of us could possibly have marketed as an e-book in making some cash on their own, primarily now that you might well have done it in the event you considered necessary. Those points likewise served to become good way to comprehend some people have the same eagerness the same as mine to figure out somewhat more pertaining to this problem. I am certain there are some more pleasant moments up front for those who start reading your blog.

  15. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog? My blog site is in the very same niche as yours and my users would definitely benefit from some of the information you present here. Please let me know if this alright with you. Thank you!|

  16. My spouse and i ended up being now ecstatic when Peter could conclude his studies with the ideas he made from your very own web site. It is now and again perplexing to simply find yourself giving away tips and hints that many some others may have been making money from. And now we discover we have the website owner to be grateful to for that. The main illustrations you’ve made, the simple blog menu, the friendships you can make it possible to foster – it is most powerful, and it’s aiding our son in addition to us understand that issue is pleasurable, and that’s extremely essential. Many thanks for everything!

  17. I wish to express some thanks to you for bailing me out of this situation. Because of researching through the the web and finding ideas which are not pleasant, I believed my life was done. Living devoid of the answers to the difficulties you have sorted out through your main posting is a crucial case, and the ones that could have adversely affected my entire career if I hadn’t discovered your blog post. That ability and kindness in touching all the details was very useful. I don’t know what I would’ve done if I had not discovered such a point like this. I can also at this point look forward to my future. Thanks for your time very much for this specialized and amazing help. I won’t think twice to propose your site to anyone who ought to have guidance about this issue.

  18. I actually wanted to send a simple message in order to appreciate you for all the splendid advice you are giving out at this site. My extended internet lookup has finally been rewarded with reliable insight to exchange with my friends and family. I would assert that we website visitors actually are undoubtedly endowed to dwell in a fabulous site with very many lovely individuals with valuable tricks. I feel very fortunate to have seen your entire webpages and look forward to some more cool moments reading here. Thanks once more for everything.

  19. I definitely wanted to compose a word in order to say thanks to you for all the wonderful ways you are writing on this site. My extended internet research has now been compensated with wonderful content to write about with my good friends. I would suppose that most of us readers actually are very lucky to exist in a really good community with very many outstanding people with beneficial opinions. I feel rather grateful to have used your entire webpages and look forward to really more thrilling minutes reading here. Thanks once more for everything.

  20. My husband and i were happy when Ervin could conclude his survey through the ideas he came across out of your web page. It’s not at all simplistic just to choose to be giving for free methods the others could have been trying to sell. We take into account we’ve got the website owner to be grateful to for this. The type of explanations you’ve made, the straightforward site menu, the relationships you will make it possible to engender – it is mostly powerful, and it is aiding our son in addition to our family imagine that that subject is amusing, and that’s tremendously vital. Thanks for all!

  21. Thank you a lot for providing individuals with remarkably superb opportunity to read from this blog. It is always so pleasurable and packed with fun for me and my office acquaintances to visit your web site a minimum of 3 times in a week to read through the latest items you have. And lastly, I am also usually fulfilled considering the superb methods served by you. Selected two points in this posting are indeed the very best we have all had.

  22. I intended to send you a very small note to be able to thank you so much as before regarding the wonderful opinions you have featured in this case. It is so generous of you to allow extensively all most people could have advertised as an e-book in order to make some dough for their own end, and in particular seeing that you might well have tried it in the event you desired. The strategies likewise served as the easy way to be aware that someone else have similar zeal like my very own to see many more in terms of this issue. I believe there are millions of more pleasurable moments in the future for many who look over your website.

  23. Thanks so much for providing individuals with an extraordinarily remarkable possiblity to read in detail from this web site. It’s usually very kind plus stuffed with a good time for me personally and my office colleagues to search your site at a minimum three times weekly to read through the newest items you have. And lastly, I’m just certainly fascinated for the exceptional creative concepts you give. Some 4 points in this article are in truth the very best we’ve ever had.

  24. naturally like your web-site however you have to test the spelling on quite a few of your posts. Several of them are rife with spelling issues and I in finding it very troublesome to inform the reality however I will certainly come again again.|

  25. I must express my appreciation to you for rescuing me from such a circumstance. Right after researching through the world wide web and seeing thoughts which were not helpful, I figured my life was gone. Being alive without the approaches to the issues you’ve fixed by way of your main site is a critical case, and the kind which may have badly affected my entire career if I had not noticed your web site. Your good mastery and kindness in controlling a lot of stuff was excellent. I am not sure what I would have done if I had not encountered such a step like this. It’s possible to at this time relish my future. Thanks a lot very much for the impressive and amazing guide. I won’t think twice to propose your web site to anyone who will need assistance on this situation.

  26. I am only commenting to make you be aware of what a awesome encounter my wife’s princess went through checking the blog. She came to understand a lot of things, which include how it is like to possess a great helping spirit to make the rest really easily grasp certain tortuous subject areas. You actually did more than my expected results. I appreciate you for rendering such powerful, healthy, informative as well as cool thoughts on your topic to Janet.

发表评论

邮箱地址不会被公开。 必填项已用*标注