ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 11th, 2003, 06:19 AM
Pablino Pablino is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: UK
Posts: 1 Pablino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Inserting Multiple NAmes (Like Hotmail Address book)

Hi...

Does anybody know if its possible in dreamweaver ultradev4 to create a pop-up box where i can select multiple names which can then be added to another field on a sepearte page. This popup page needs to be dynamic as new users are added to the database daily. Basically its the way that hotmail handles the address book. The user clicks a button to view the address book, they select the people they want to send it to, then click ok & all of those names appear in the 'to' box.


Thanks

Pablino

Reply With Quote
  #2  
Old September 11th, 2003, 08:17 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I don't know if DW has "wizards" to help with part of it, but the necessary steps are relatively simple taken one at a time, if you do things patiently:
  • You need to call a pop up window (using Javascript) which calls an ASP page;
    The ASP page loads a Select with the Multiple parameter form Control (simple HTML stuff) and populates the various <option>s from the DB query;
    The submit button of the Form in the PopUp inserts the value into the correct Form TextArea of the original calling page using Javascript again.
Once it is broken down in pieces, each should be easier to handle.

Reply With Quote
  #3  
Old September 11th, 2003, 08:22 PM
icepricessa's Avatar
icepricessa icepricessa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 199 icepricessa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 10 m 38 sec
Reputation Power: 5
u can use asp and javascript together
for example in form1 u call a pop up window

<SCRIPT LANGUAGE="JavaScript">
<!--
function popUp() {
window.open('CCList.asp','WinC','width=350,height=300,toolbar=no,menubar=no,scrollbars=no,resizable= no, addressbar=no');
window.refresh();
}
</script>

then in your pop up just add this script(you'll have to modify it)

<script language="JavaScript" type="text/JavaScript">
function setParentValue(){
var allvalues="";
var obj=document.all.listboxname
for(i=0;i<obj.options.length;i++)
if(obj.options[i].selected)
allvalues+=obj.options[i].value+","
allvalues = allvalues.slice(0,allvalues.length-2);
allvalues = allvalues.replace(/\s/g, "");
window.opener.addform.myTextBox.value =allvalues
window.close();
}
</script>

hope it helps

Reply With Quote
  #4  
Old September 17th, 2003, 10:28 PM
abones abones is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 75 abones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Quote:
Originally posted by icepricessa
[
<script language="JavaScript" type="text/JavaScript">
function setParentValue(){
var allvalues="";
var obj=document.all.listboxname
for(i=0;i<obj.options.length;i++)
if(obj.options[i].selected)
allvalues+=obj.options[i].value+","
allvalues = allvalues.slice(0,allvalues.length-2);
allvalues = allvalues.replace(/\s/g, "");
window.opener.addform.myTextBox.value =allvalues
window.close();
}
</script>



window.opener.addform.myTextBox.value

The line above does it refer to textbox in the mainpage or the popout window?

Reply With Quote
  #5  
Old September 18th, 2003, 12:16 AM
icepricessa's Avatar
icepricessa icepricessa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 199 icepricessa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 10 m 38 sec
Reputation Power: 5
testbox in the mainpage

Reply With Quote
  #6  
Old September 18th, 2003, 12:16 AM
icepricessa's Avatar
icepricessa icepricessa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 199 icepricessa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 10 m 38 sec
Reputation Power: 5
oops.. keke i meant the *textbox*

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Inserting Multiple NAmes (Like Hotmail Address book)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway