By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,569 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,569 IT Pros & Developers. It's quick & easy.

you need JavaScript enabled to view it

P: 4
Hi All,

I'm using a Pay Pal form script, but locally tested in Dreamweaver with a browser it will do exactly what I'm aspect it to do. Only when I'm uploaded the file on the server it will give this ERROR. By th way, I'm using a Joomla 1.5.3 site.

The URL: http://www.dutchmarshalls.com/index....-product-list-

The ERROR CODE:
---------------------------------------------------------------------------------
[HTML]<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy34217 = 'sales' + '@'; addy34217 = addy34217 + 'dutchmarshalls' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + ':' + addy34217 + '\'>' ); document.write( addy34217 ); document.write( '<\/a>' ); //-->\n </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots, you need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>[/HTML]
--------------------------------------------------------------------------------
Return to Merchant
We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.



My Question?
Is there some one ho can help me with this ERROR?

Thanks in advance,
Aug 3 '08 #1
Share this Question
Share on Google+
10 Replies


acoder
Expert Mod 15k+
P: 16,027
Your script is all on one line with comments in between. Either remove the comment characters or split the code into more than one line to avoid code being commented out.
Aug 3 '08 #2

P: 4
Hi All,

The ERROR CODE:
---------------------------------------------------------------------------------
[HTML]<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy34217 = 'sales' + '@'; addy34217 = addy34217 + 'dutchmarshalls' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + ':' + addy34217 + '\'>' ); document.write( addy34217 ); document.write( '<\/a>' ); //-->\n </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots, you need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>[/HTML]
--------------------------------------------------------------------------------

This is not the code I'm using. This code is the ERROR code I'm receiving.

I'm using a form feet on the page that will direct me to Pay Pal.

This is the form I received from Pay pal to use on my article.

[HTML]

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<font face="Arial Unicode MS">
<span style="font-size: 9pt">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value=sales@dutchmarshalls.com>
<input type="hidden" name="item_name" value="Gold Supplier 1year membership">
<input type="hidden" name="item_number" value="G24046712">
<input type="hidden" name="amount" value="1089.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="weight" value="1">
<input type="hidden" name="weight_unit" value="1">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
</span></font>
<p>
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">


</p>
</form>
[/HTML]



My Question?
Is there some one ho can help me with this ERROR?

Thanks in advance,
Aug 3 '08 #3

P: 4
Your script is all on one line with comments in between. Either remove the comment characters or split the code into more than one line to avoid code being commented out.


How do I do This?

and where can I find the scipt you are referring to?
Aug 3 '08 #4

acoder
Expert Mod 15k+
P: 16,027
The script is in your code.

I noticed that you're setting a hidden input field value using code in script tags. It doesn't work that way. This is probably why you're getting this as the error code.

To set the email address using JavaScript for a hidden field, use document.write to write the whole input field to the document, or set it using JavaScript, e.g.
Expand|Select|Wrap|Line Numbers
  1. hiddenField.value = addy34217;
where hiddenField is a ref. to the hidden input field.
Aug 3 '08 #5

P: 4
The script is in your code.

I noticed that you're setting a hidden input field value using code in script tags. It doesn't work that way. This is probably why you're getting this as the error code.

To set the email address using JavaScript for a hidden field, use document.write to write the whole input field to the document, or set it using JavaScript, e.g.
Expand|Select|Wrap|Line Numbers
  1. hiddenField.value = addy34217;
where hiddenField is a ref. to the hidden input field.

Thanks, but the code seems to come from Paypal where I do not have access to.

Strange, because placing the file in my root it seems to work very well

http://www.dutchmarshalls.com/priceandproductlist.php

and when I put this file on my site it doesn't.
Aug 3 '08 #6

acoder
Expert Mod 15k+
P: 16,027
View the source in both to see the difference. In the first one (that doesn't work), you have some script as the value of the "business"-named hidden field whereas in the second link you don't.
Aug 3 '08 #7

P: 2
I have same problem with my joomla site. Please help me. i have not much knowledge of programming.
Nov 11 '08 #8

acoder
Expert Mod 15k+
P: 16,027
Is it exactly the same problem or a similar problem? If it's different, I'll split your post off into its own thread. Can you give more details about the problem?
Nov 11 '08 #9

P: 2
If you are using Joomla, you can solve this problem by disable the Plugin Content - Email Cloaking in the Plugin Manager.

Thanks!
Farhan
[removed link]
Nov 12 '08 #10

acoder
Expert Mod 15k+
P: 16,027
Thanks for posting your solution.
Nov 12 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.