Current location: Hot Scripts Forums » General Web Coding » JavaScript » please help me turn the html code to javascript


please help me turn the html code to javascript

Reply
  #1 (permalink)  
Old 12-11-04, 03:32 PM
kicon kicon is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
please help me turn the html code to javascript

hi anyone. would you please help me to convert this paypal html form code to javascript. i would really appreciate for your help


<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but10.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="mailmesdq@yahoo.ca">
<input type="hidden" name="item_name" value="speaker">
<input type="hidden" name="item_number" value="00001">
<input type="hidden" name="amount" value="20.00">
<input type="hidden" name="return" value="http://www.mysite.com/successpayment">
<input type="hidden" name="currency_code" value="USD">
</form>
Reply With Quote
  #2 (permalink)  
Old 12-11-04, 07:14 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
WTF? Do you mean so you can manipulate the values of the input boxes?

Please elaborate.
Reply With Quote
  #3 (permalink)  
Old 12-13-04, 01:40 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
You can't convert it to Javascript since it's HTML and it needs to be HTML so the browser can read it.
If you're talking about the server-code it sends the form data to, (https://www.paypal.com/cgi-bin/webscr), there's no way of even knowing what it does without the actual source code in that file, and since it's a serverside language - good luck trying to steal the code....
Reply With Quote
  #4 (permalink)  
Old 12-13-04, 03:08 AM
irfanbaba's Avatar
irfanbaba irfanbaba is offline
Newbie Coder
 
Join Date: Dec 2004
Location: Karachi, Pakistan
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Hi,

actually you did not define what you want? please mention as your need.
__________________
Web Programmer
web: http://www.netxs.com.pk
email: irfanmail@gmail.com
msn : irfanbaba@hotmail.com
Reply With Quote
  #5 (permalink)  
Old 12-13-04, 07:23 AM
kicon kicon is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
hi! i mean that i dont know how to turn this code as a action script code in the flash to work like an add to cart button with this html payal form:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but10.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="mailmesdq@yahoo.ca">
<input type="hidden" name="item_name" value="speaker">
<input type="hidden" name="item_number" value="00001">
<input type="hidden" name="amount" value="20.00">
<input type="hidden" name="return" value="http://www.mysite.com/successpayment">
<input type="hidden" name="currency_code" value="USD">
</form>
Reply With Quote
  #6 (permalink)  
Old 12-16-04, 08:54 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Again, there's no way for us to even tell what the script does unless you have and post the file https://www.paypal.com/cgi-bin/webscr here.

If you mean converting the actual form so it will work with Javascript, then it already does since it's a standard HTML form. Just make it call a Javascript function using onsubmit="your_function_here()" instead of sending the data directly to the server-script in the file I mentioned above.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 10:25 AM
Php making html source code look terrible!!! v1brazy PHP 6 08-06-04 12:52 AM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 11:19 AM
freeware code to strip HTML tags ? xgab Perl 5 04-19-04 07:31 PM
Embedding asp code in html ultimatewatermassage ASP 5 03-04-04 03:52 PM


All times are GMT -5. The time now is 10:37 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.