/    Sign up×
Community /Pin to ProfileBookmark

Need help (pasting code from variable)

hi guys
i wanna make a script that pastes text into the current selected box
[U]from a variable[/U]
[U]and it all has to be client side[/U]

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@chadstenAug 26.2010 — Hmm. You might be better off using Java. ?
Copy linkTweet thisAlerts:
@Ronaldo777authorAug 26.2010 — no i really need to do it in javascript
Copy linkTweet thisAlerts:
@chadstenAug 26.2010 — Double post. Read below.
Copy linkTweet thisAlerts:
@chadstenAug 26.2010 — Try setting the value of the textfield to a javascript variable, and then changing it in your logic code. I guess I assumed you meant the textfield was client side.

Check out jQuery and see if it has anything you might need. Prototype is another great js library.
Copy linkTweet thisAlerts:
@FangAug 26.2010 — If you want to paste from the clipboard then Flash is possibly the only option that works x-browser. This security loophole (using Flash) may have been closed by now.
×

Success!

Help @Ronaldo777 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...