/    Sign up×
Community /Pin to ProfileBookmark

text in iFrame as var to php script

Hi,

Unsure if this would be the right area of the forums to post, but i think the answer to my question lies in javascript, so posted here.

I’m trying to create a rich text editor, where the text gets loaded in from a mysql database, and should, after editting in this editor, be loaded back to the database.

Loading the text in and the functions of this editor work fine, the problem lies in the sending it back to the mysql database. The “textarea” of the editor is an iFrame, which loads in a .php file. The idea is, to retrieve the text from the iFrame, and send it to another php file, to update the database.

However, whatever i try, i cant get to the data in the iFrame. Hoping i’ve explained my problem well enough, is there anyone who has an idea how to get the data in the iFrame, to a php file, to update the db with?

All help is much appreciated!

thanks!

peace

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @PeaceFrog 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.24,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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