弹出页面插入地址薄

主要想实现的效果是:

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

主页面需要写的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]

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

  1. I intended to create you a bit of word to be able to say thanks a lot over again with your gorgeous pointers you have documented on this site. This has been certainly incredibly generous with people like you in giving publicly exactly what a few people could possibly have advertised for an ebook to help make some bucks for themselves, and in particular now that you could have done it if you ever decided. The things also acted like a good way to recognize that the rest have similar eagerness the same as my very own to learn a good deal more when considering this issue. I believe there are thousands of more enjoyable instances in the future for many who view your website.

  2. I have to point out my affection for your kindness in support of those individuals that really need assistance with the matter. Your real dedication to passing the message across appears to be remarkably significant and has always permitted associates just like me to attain their desired goals. Your amazing useful guidelines means a whole lot to me and even further to my office colleagues. With thanks; from all of us.

  3. I precisely wanted to thank you very much yet again. I am not sure the things that I would have achieved without the actual advice contributed by you about this topic. Certainly was the daunting setting in my circumstances, however , finding out the very skilled mode you dealt with the issue took me to jump with happiness. I am happy for the advice and in addition have high hopes you recognize what a powerful job you’re accomplishing training the rest using a web site. I’m certain you haven’t met all of us.

  4. I am only writing to let you be aware of what a terrific discovery my friend’s daughter undergone viewing the blog. She came to understand lots of details, which included what it’s like to possess an excellent giving heart to have many others very easily know a number of specialized subject matter. You undoubtedly exceeded our desires. Thanks for offering those great, safe, explanatory as well as cool guidance on the topic to Gloria.

  5. My husband and i got very more than happy when Raymond could complete his web research from the ideas he was given out of your blog. It’s not at all simplistic just to possibly be freely giving guidance which often most people might have been making money from. And now we know we now have the website owner to be grateful to because of that. Most of the explanations you have made, the easy blog menu, the relationships you give support to instill – it is mostly wonderful, and it’s assisting our son and the family do think this content is interesting, and that’s incredibly serious. Thank you for all!

  6. I precisely had to thank you so much again. I’m not certain what I could possibly have implemented without the actual opinions discussed by you directly on this problem. It seemed to be an absolute difficult matter in my view, but being able to view a well-written style you treated the issue made me to cry over contentment. Now i’m grateful for the help and even believe you are aware of a powerful job that you’re accomplishing training the rest via your web blog. Probably you have never encountered any of us.

  7. I wanted to type a small comment so as to say thanks to you for these wonderful pointers you are giving on this site. My rather long internet investigation has at the end of the day been rewarded with incredibly good knowledge to write about with my guests. I would claim that we visitors are rather blessed to exist in a fabulous community with so many awesome individuals with insightful tricks. I feel quite privileged to have used your webpages and look forward to really more exciting moments reading here. Thanks again for all the details.

  8. I just wanted to construct a simple remark in order to appreciate you for the pleasant items you are giving on this site. My time consuming internet search has at the end been honored with brilliant insight to talk about with my partners. I would express that we visitors actually are truly endowed to be in a notable community with so many marvellous people with valuable hints. I feel very much blessed to have encountered your weblog and look forward to tons of more enjoyable minutes reading here. Thanks a lot again for all the details.

  9. Needed to compose you that bit of observation to finally thank you very much the moment again with the exceptional ideas you’ve shown at this time. This has been certainly wonderfully open-handed of people like you to give extensively just what a few people would’ve advertised as an e book to generate some money for themselves, most importantly considering the fact that you might have done it if you ever decided. These tricks in addition served to provide a easy way to know that most people have the identical fervor much like my very own to know the truth very much more in regard to this problem. I believe there are thousands of more pleasurable moments in the future for folks who check out your blog post.

  10. I want to express my thanks to you just for rescuing me from this particular matter. Just after looking out throughout the search engines and seeing thoughts that were not beneficial, I believed my life was done. Being alive devoid of the solutions to the problems you have sorted out as a result of your write-up is a critical case, as well as those that could have badly affected my entire career if I hadn’t noticed your site. That expertise and kindness in dealing with every part was very helpful. I am not sure what I would have done if I had not discovered such a step like this. I can now relish my future. Thank you very much for the reliable and effective help. I won’t think twice to propose your web page to anybody who should get assistance on this subject.

  11. I simply had to appreciate you all over again. I do not know the things that I could possibly have gone through without these techniques revealed by you concerning this subject. It had become a frightful crisis in my circumstances, but viewing the very skilled manner you solved it made me to leap with happiness. Now i’m grateful for this support and thus have high hopes you realize what an amazing job you have been providing instructing most people through the use of your blog. I am sure you’ve never met all of us.

  12. I must point out my appreciation for your kind-heartedness supporting persons that absolutely need help on this important area of interest. Your real dedication to passing the solution all over turned out to be incredibly significant and has frequently made many people much like me to realize their ambitions. Your personal informative key points implies this much a person like me and substantially more to my colleagues. Best wishes; from all of us.

  13. Thank you so much for giving everyone a very marvellous chance to read in detail from this website. It’s usually very cool and also full of a great time for me personally and my office co-workers to search your web site more than thrice every week to study the latest guides you have. And of course, I’m just at all times motivated with the terrific information you serve. Selected 4 facts in this article are really the most efficient I’ve had.

  14. I wish to convey my appreciation for your kind-heartedness supporting those people who should have help with this important study. Your special dedication to passing the solution throughout ended up being quite good and have constantly empowered employees just like me to reach their objectives. Your new invaluable hints and tips denotes so much to me and substantially more to my office colleagues. Best wishes; from all of us.

  15. I needed to send you that very little remark so as to say thanks once again for your personal unique things you’ve documented on this page. It’s simply seriously generous with you to convey publicly precisely what many people might have supplied as an electronic book in order to make some bucks for their own end, most notably considering that you could have tried it if you wanted. Those tricks also worked to provide a good way to fully grasp someone else have the same dream the same as my personal own to understand more and more related to this issue. I am sure there are lots of more fun sessions up front for individuals who looked over your site.

  16. I in addition to my buddies were actually viewing the excellent helpful hints from the blog while at once I got a horrible feeling I never thanked the web site owner for those tips. Most of the people happened to be for this reason excited to read through them and now have extremely been enjoying those things. We appreciate you truly being well kind as well as for figuring out this sort of notable guides millions of individuals are really wanting to learn about. My very own sincere apologies for not expressing gratitude to earlier.

  17. My wife and i ended up being quite more than happy that Michael managed to complete his web research with the precious recommendations he gained from your blog. It is now and again perplexing to simply possibly be giving out ideas which usually many people could have been making money from. And we all recognize we have got the website owner to be grateful to for this. The main explanations you made, the easy blog navigation, the relationships you can help to instill – it is everything sensational, and it is leading our son in addition to our family recognize that the concept is exciting, and that’s pretty pressing. Many thanks for everything!

  18. My spouse and i were thankful that Ervin could deal with his researching with the precious recommendations he got when using the web page. It is now and again perplexing to simply happen to be releasing concepts which the others have been selling. So we acknowledge we’ve got you to appreciate for that. The illustrations you have made, the easy web site navigation, the relationships you make it possible to instill – it is many fantastic, and it’s really letting our son in addition to our family understand that theme is enjoyable, which is certainly seriously serious. Thanks for all the pieces!

  19. I happen to be writing to make you know what a cool discovery my cousin’s girl found browsing the blog. She mastered so many details, most notably how it is like to have a wonderful helping style to have certain people completely understand several very confusing subject matter. You truly surpassed visitors’ desires. Many thanks for rendering these warm and helpful, safe, educational not to mention cool guidance on this topic to Jane.

  20. I wish to convey my appreciation for your generosity for those who require assistance with this particular subject. Your real dedication to passing the solution all-around has been remarkably effective and have in most cases empowered men and women like me to achieve their endeavors. Your amazing informative publication denotes a lot to me and especially to my office workers. Many thanks; from everyone of us.

  21. Thanks for all your labor on this website. My aunt take interest in getting into internet research and it is easy to see why. My spouse and i hear all concerning the dynamic mode you provide helpful tricks through the web blog and in addition encourage response from some others about this subject matter then my girl is really discovering a lot of things. Enjoy the rest of the new year. You’re the one carrying out a brilliant job.

  22. I want to express my thanks to this writer just for bailing me out of such a challenge. Just after looking through the world wide web and getting techniques that were not beneficial, I assumed my entire life was well over. Living devoid of the answers to the difficulties you’ve fixed by means of your main article content is a critical case, as well as the ones that would have in a negative way affected my career if I had not encountered your web site. That capability and kindness in handling a lot of stuff was useful. I’m not sure what I would have done if I had not come across such a step like this. I can also at this point look forward to my future. Thanks a lot very much for your specialized and amazing help. I will not hesitate to propose your web page to any individual who will need assistance on this area.

  23. Thanks for all your valuable work on this blog. My mom enjoys doing research and it is obvious why. I hear all concerning the powerful mode you give useful solutions via this web blog and boost participation from other people about this idea then our own princess is really starting to learn a lot. Enjoy the remaining portion of the new year. You are doing a really good job.

  24. I as well as my pals came looking through the nice techniques from your site and then instantly developed a horrible suspicion I never expressed respect to the blog owner for those tips. All of the boys came so joyful to study all of them and now have unquestionably been using them. We appreciate you indeed being indeed helpful as well as for pick out variety of important subject matter millions of individuals are really desperate to be aware of. Our sincere regret for not expressing gratitude to you sooner.

  25. My husband and i got very happy Michael could deal with his homework from your precious recommendations he had out of your blog. It is now and again perplexing to just continually be releasing concepts which many people could have been selling. So we remember we need the blog owner to give thanks to for this. These illustrations you made, the straightforward site menu, the relationships your site make it easier to foster – it’s got mostly overwhelming, and it’s really letting our son in addition to our family believe that that topic is pleasurable, which is incredibly pressing. Thank you for all!

  26. I not to mention my guys ended up analyzing the nice items on your website and then quickly came up with an awful suspicion I never thanked the web site owner for those tips. All of the boys are already happy to study them and now have very much been loving those things. We appreciate you genuinely very considerate and then for going for some remarkable issues millions of individuals are really desperate to be informed on. Our honest apologies for not expressing gratitude to earlier.

  27. I and also my pals appeared to be analyzing the excellent ideas on the website and so all of a sudden developed a horrible suspicion I had not thanked the site owner for those tips. Most of the men happened to be as a result stimulated to learn them and have in effect actually been making the most of those things. Appreciate your really being simply helpful and also for deciding upon this sort of impressive tips millions of individuals are really needing to understand about. My sincere apologies for not expressing gratitude to sooner.

发表评论

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