|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Looking at this again, I realize that I only fixed one of the two problems.
Try this. (Yes, I think all of those backslashes are necessary.) Code:
document.write('<input type="button" name="create" size="20" value="Build"
onclick="document.myform.thebody.value=document.myform.thename.value' + '\+\'\\n\'\+' +
'document.myform.email.value"><hr color=#002F56><br>');
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. Check out my blog. |
|
#17
|
|||
|
|||
|
GENIUS!! OMG.. thank you a lot.....
huh.. now if u don't mind, could u try to explain me what's with all those backslashes around, when u have time? ![]() |
|
#18
|
||||
|
||||
|
You're welcome
![]() Backslashes are used to escape special characters. You need all of those backslashes because the code is going to be interpreted twice. This is what the document.write() statement from my last reply is outputting: Code:
<input type="button" name="create" size="20" value="Build" onclick="document.myform.thebody.value=document.myform.thename.value+'\n'+document.myform.email.value" ><hr color=#002F56><br> |
|
#19
|
|||
|
|||
|
whoa.. 10x again... i guess someone here knows java
![]() |
|
#20
|
||||
|
||||
|
No, we know JavaScript.
![]()
__________________
Support requests via PM will be ignored! |
|
#21
|
||||
|
||||
|
Quote:
Good point. |
|
#22
|
||||
|
||||
|
You're welcome
![]() Yes, I know quite a bit about JavaScript. I do not know Java. Does anyone actually bother to read my signature? Quote:
Why the 1337ism anyway? |
|
#23
|
||||
|
||||
|
Quote:
Heh? Wha's that? |
|
#24
|
||||
|
||||
|
|
|
#25
|
||||
|
||||
|
like as "r41man", and the "u"s... and "d00d", and "n00b" that you see among the forums...
|
|
#26
|
||||
|
||||
|
Right. Some people, including myself, find it annoying.
|
|
#27
|
||||
|
||||
|
Come on lads, this is a forum for geeks.
There is a difference between a bit of 'geek-speak' [like 'd00d', 'pr0n' and 'n00bie'] and l337 5p33k. ![]() Quit yer whinging. |
|
#28
|
||||
|
||||
|
I wouldn't call it 'geek-speak', I'd call it 'pre-1337-speak'.
I don't mind things like d00d or thanx, it's things like 10x instead of thanks that annoys me. |
|
#29
|
||||
|
||||
|
Heh, you'd have loved these guys then!
![]() Some of their best work: http://forums.devshed.com/t256933/s.html http://forums.devshed.com/t252988/s.html |
|
#30
|
||||
|
||||
|
I remember seeing some of guide1981's posts before.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > newbie needing help with pathetic script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|