PDA

View Full Version : Cut & paste html


Triana
07-25-2007, 09:48 PM
I've run into this problem repeatedly, and I just can't figure it out.

I'm using Dreamweaver 4.0. Every time I try to add a script of any kind to a web page, instead of adding the script, it adds the html codes. I've tried adding it directly to the page, and also through the Code Inspector.

For instance, I just tried adding a paypal button. Paypal gives you the exact code, you copy it, paste it into your web page, and the button should appear once its uploaded to your server. What I get is the pasted code.

Can anyone tell me what I'm doing wrong?

davidj
07-25-2007, 09:56 PM
your pasting in design view. switch to code view

or

you are not inserting the code between script tags. You have to tell the browser that the code its about to encounter is Javascript

Triana
07-25-2007, 11:52 PM
Am I missing something here?

I added it to "Code View" and got the exact same thing as when I added it to "Code Inspector", and both use the <> symbols in blue for the icon, so it appears to be the same thing.

This is the code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- (info deleted here) -----END PKCS7-----
">
</form>!

Are those not the proper codes?

davidj
07-25-2007, 11:57 PM
oh right. its a form.

And you see the code not the form when you cut and paste?

and your sure your pasting into your code view

Triana
07-26-2007, 12:12 AM
Yes to both. I thought maybe it was because I wasn't viewing it from the actual website, but when I checked there, it was still just the code I was viewing.

Mark_W
07-26-2007, 12:17 AM
Could you post up all the code between the <html> </html tags, including the html tags.

Triana
07-26-2007, 01:27 AM
Not sure what good this will do, as the only part I left out was encoded.


<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="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VBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZ UBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0 BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNzA3M jUyMTM0NDRaMCMGCSqGSIb3DQEJBDEWBBTeUhvZRc/VCOLz+9is8/SxeQN3HzANBgkqhkiG9w0BAQEFAASBgKNTGSTR4mxllR8+QVz8 zvxyBirA21V1EZB8v5iq/wZKi1VRZj/hQ2ODdCyFkJ5Y3eDk2lTQYU7CGzYWmdh/nBY6bu0uKlHr0KxPavY2LdfCA1ibWfW224XeIwXe6Ll3xLx5BJ ig+CyLhyzEoJPxoQ8q0w9eV92+Rx4a3/zLC/3j-----END PKCS7-----
">
</form>

Triana
07-26-2007, 01:32 AM
And, as I said, its not just this form. This happens with almost every script. Its been a while now since I've tried adding a script, so I don't remember what I tried adding, but I remember trying in both design and code views, with the same results.

I think maybe the few times its worked right was when I tried adding my own form or script through Dreamweaver itself. Unfortunately, I'm not very good at that, so those would be only very basic forms or scripts.

davidj
07-26-2007, 05:39 AM
what have you named the page including the extension

Triana
07-26-2007, 07:47 AM
Its named donate.htm

davidj
07-26-2007, 08:49 AM
never heard anything like this before

could your dreamweaver be corrupt

just guessing as this is really strange

Mark_W
07-26-2007, 12:16 PM
Not sure what good this will do, as the only part I left out was encoded.



<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" alt="" border="0" width="1px" height="1px">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBAD CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQ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yMTM0NDRaMCMGCSqGSIb3DQEJBDEWBBTeUhvZRc/VCOLz+9is8/SxeQN3HzANBgkqhkiG9w0BAQEFAASBgKNTGSTR4mxllR8+QVz8 zvxyBirA21V1EZB8v5iq/wZKi1VRZj/hQ2ODdCyFkJ5Y3eDk2lTQYU7CGzYWmdh/nBY6bu0uKlHr0KxPavY2LdfCA1ibWfW224XeIwXe6Ll3xLx5BJ ig+CyLhyzEoJPxoQ8q0w9eV92+Rx4a3/zLC/3j-----END PKCS7-----
">
</form>



I did actually mean the HTML tags on your dreamweaver page. But its ok.

You could just reinstall dreamweaver if as you say, it happens with almost every script you use. I had to reinstall dreamweaver cs3 only a few days ago because it kept saying some of their scripts which run parts of the software weren't there, even though I didn't delete them.

davidj
07-26-2007, 01:00 PM
i think i can see it

you have 2 src attributes in your <img tag

probably innocent but just maybe

Triana
07-28-2007, 12:52 AM
Regarding the extra source tag... while that might cause some type of problem, this code was generated by paypal, and its the same problem I've had with all other copy/pasted code.

Regarding the possibility that Dreamweaver is corrupt. I'll check into it.

Here is the web page if that will help... http://www.kapowwie.com/RonPaul/donate.htm

davidj
07-28-2007, 12:56 AM
if thats everything then its not complete so it would error

regarding...

and its the same problem I've had with all other copy/pasted code.


there is a message in there which is screaming to get out

mondolaya
09-10-2009, 05:04 PM
Hi there,

I'm having a strange Dreamweaver issue around Paypal buttons and I thought you might have some insight. I'm simple copying and pasting the html code from Paypal's site into my Code View. Unfortunately, once I've pasted the code , all of my images and assets are no longer visible in the regular Design view in Dreamweaver. I can switch to "Live View" and see that the new button is showing up fine and all of my images are there.

Actually, I just noticed that it seems that all of my images have been pushed off the bottom of the page in Dreamweaver. I can't understand why this is happening. Any suggestions?

Thanks,
Glenn

martinjbull
09-24-2009, 04:16 PM
Oops sorry I've just realised after posting that I have somehow managed to jump threads-this is the wrong place. Sorry. Can anyone point me to a better location?
Thanks