HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 ASP Free Forums Sponsor:
  #1  
Old September 13th, 2003, 10:49 PM
rush rush is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 rush User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
autofill text by a push button

hi
i am new to this stuff and i basically used frontpage 2002 extensions to make my form but i want to insert a push button that will automatically insert text in a blank text area on a different web page. the webpage's name is prod01.htm
is there a way i kind do this?
plz reply soon

or email at URL

Reply With Quote
  #2  
Old September 23rd, 2003, 11:48 AM
icy_polecat icy_polecat is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Jersey (the original version)
Posts: 5 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hmmm,

well, you could do it using a serverside scripting language like ASP. Or you could do it using Javascript and cookies. Have you had any experience with either of these?

Reply With Quote
  #3  
Old September 23rd, 2003, 04:37 PM
rush rush is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 rush User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have experience with javascript, but i need a good code which i can't figure out

Reply With Quote
  #4  
Old September 23rd, 2003, 06:43 PM
rush rush is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 rush User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have this script but this only works with the forms being on the same page how do i do it for two different pages?

<SCRIPT LANGUAGE=JAVASCRIPT>
function useBillInfo(form)
{
var idx;



{
form.ShipTo_Name_First.value= form.BillTo_Name_First.value;
form.ShipTo_Name_Last.value = form.BillTo_Name_Last.value;
form.ShipTo_Address.value = form.BillTo_Address.value;
form.ShipTo_City.value = form.BillTo_City.value;

}
}

</SCRIPT>


where there are two forms on same page and the different values are copied from one text box to another. the names of the textboxes are given in the code. any ways i dont want the text box though but a pushc button that fills only "one" text area
how can i change this script so i can use it on two different pages and use a push button instead of two blank text areas
any idea

Reply With Quote
  #5  
Old September 24th, 2003, 05:28 AM
icy_polecat icy_polecat is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Jersey (the original version)
Posts: 5 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sounds like you need to use cookies.

You can set the var of the text box on page one to a cookie wehen the button is clicked. Then

in page 2 use the onload event handler to read the cookie and set the value of textbox 2!

for a good tutorial on Javascript and cookies try this link

Reply With Quote
  #6  
Old September 24th, 2003, 05:53 PM
rush rush is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 4 rush User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i am sorry but i think i wasn't clear, you instead of these text boxes i've written below i don't want them, i wanted one button with one value that would fill in a text when clicked. i am also sorry but i don't know how to use an onload event handler. could you give me the code for the onload event handler and help me change this var into what i need? please... and is a cookie something that gives the command to start the var function or something lin onClick etc. i don't understand what a cookie is but maybe i'll figure that out somehow anyways it'll a lot of help if you could give the java code... pretty please!
form.ShipTo_Name_First.value
form.ShipTo_Name_Last.value form.ShipTo_Address.value form.ShipTo_City.value

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > autofill text by a push button


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 4 hosted by Hostway
Stay green...Green IT