Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Maaaarrrrvelous!

Enthusiast ,
Oct 28, 2007 Oct 28, 2007

Copy link to clipboard

Copied

ASP, VBScript.

I have have spent days and days and days trying to implement a WYSIWYG html editor into my site, and I have just got it to work so I am now a happy bunny... My wife just doesn't understand how important this has become to me!

Anyway, I now need to do this:

The editor requires that you click save so that it submits its contents to a hidden text field in order to submit to the database. So what I want to do is ensure that the Submit button for the entire form isn't visible or clickable until the save button for the html editor has been clicked.

How can I deactivate or hide the form's submit button until the user has clicked the save WYSIWYG content button? Obviously, what I don't want is something that when clicked refreshes the page thus wiping out the entered form data.

I bet it's Javascript - I'm rubbish at Javascript!

Thanks.

Mat
TOPICS
Server side applications

Views

522
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 28, 2007 Oct 28, 2007

Copy link to clipboard

Copied

> ASP, VBScript.
>
> I have have spent days and days and days trying to implement a WYSIWYG
> html
> editor into my site, and I have just got it to work so I am now a happy
> bunny... My wife just doesn't understand how important this has become to
> me!
>
> Anyway, I now need to do this:
>
> The editor requires that you click save so that it submits its contents to
> a
> hidden text field in order to submit to the database. So what I want to do
> is
> ensure that the Submit button for the entire form isn't visible or
> clickable
> until the save button for the html editor has been clicked.
>
> How can I deactivate or hide the form's submit button until the user has
> clicked the save WYSIWYG content button? Obviously, what I don't want is
> something that when clicked refreshes the page thus wiping out the entered
> form
> data.
>
> I bet it's Javascript - I'm rubbish at Javascript!



What editor do you have? URL?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied

>>My wife just doesn't understand how important this has become to me!

They never do 🙂 Now if it was shopping...............


"matthew stuart" <webforumsuser@macromedia.com> wrote in message
news:fg3eti$eb8$1@forums.macromedia.com...
> ASP, VBScript.
>
> I have have spent days and days and days trying to implement a WYSIWYG
> html
> editor into my site, and I have just got it to work so I am now a happy
> bunny... My wife just doesn't understand how important this has become to
> me!
>
> Anyway, I now need to do this:
>
> The editor requires that you click save so that it submits its contents to
> a
> hidden text field in order to submit to the database. So what I want to do
> is
> ensure that the Submit button for the entire form isn't visible or
> clickable
> until the save button for the html editor has been clicked.
>
> How can I deactivate or hide the form's submit button until the user has
> clicked the save WYSIWYG content button? Obviously, what I don't want is
> something that when clicked refreshes the page thus wiping out the entered
> form
> data.
>
> I bet it's Javascript - I'm rubbish at Javascript!
>
> Thanks.
>
> Mat
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied

Let's not even go into shopping, a wife and two daughters says it all.
I am DOOMED! ;-)

Rob

"Pat Shaw" <pat@nomail.com> wrote in message
news:fg44gn$bkc$1@forums.macromedia.com...
>>>My wife just doesn't understand how important this has become to me!
>
> They never do 🙂 Now if it was shopping...............

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied

It's PD html editor that I have used - an extention from the dreamweaver exchange. The save button has this javascript:

onclick="OnFormSubmit()";

The save button sends the contents of the editor pane to the hidden text field. This then only gets submitted with the rest of the other fields when the submit form button is clicked. So there are two clicks that need to be made; a save click and a submit form click. The trouble is if the user doesn't click save first, then the hidden text field doesn't have content to submit to the db, thus undoing all of their hard work in the editor pane. So, I would like some method of being able to prevent users from loosing their editor content.

I did try to use the onclick="OnFormSubmit()"; to send the whole form, but nothing happened!

Here's a url:
http//:www.ipra.org/gwa_entryform3.asp

It's a bit messy at the mo' but you get the idea.

Cheers

Mat

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied

> It's PD html editor that I have used - an extention from the dreamweaver
> exchange. The save button has this javascript:
>
> onclick="OnFormSubmit()";
>
> The save button sends the contents of the editor pane to the hidden text
> field. This then only gets submitted with the rest of the other fields
> when the
> submit form button is clicked. So there are two clicks that need to be
> made; a
> save click and a submit form click. The trouble is if the user doesn't
> click
> save first, then the hidden text field doesn't have content to submit to
> the
> db, thus undoing all of their hard work in the editor pane. So, I would
> like
> some method of being able to prevent users from loosing their editor
> content.
>
> I did try to use the onclick="OnFormSubmit()"; to send the whole form, but
> nothing happened!
>
> Here's a url:
> http//:www.ipra.org/gwa_entryform3.asp


I used to use a free editor from
http://www.dmxzone.com/ShowDetail.asp?NewsId=3548, and it seems like it was
working fine with DW4 (yeah, it's been a while, sorry). Right now, I'm on
CS3 and using this one:
http://www.dwzone-it.com/Extension/HtmlEditor/default.asp

I know I haven't answered your question, but these options might be a better
solution to your needs.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied



"matthew stuart" <webforumsuser@macromedia.com> wrote in message
news:fg4e61$ned$1@forums.macromedia.com...
> It's PD html editor that I have used - an extention from the dreamweaver
> exchange. The save button has this javascript:
>
> onclick="OnFormSubmit()";
>
> The save button sends the contents of the editor pane to the hidden text
> field. This then only gets submitted with the rest of the other fields
> when the
> submit form button is clicked. So there are two clicks that need to be
> made; a
> save click and a submit form click. The trouble is if the user doesn't
> click
> save first, then the hidden text field doesn't have content to submit to
> the
> db, thus undoing all of their hard work in the editor pane. So, I would
> like
> some method of being able to prevent users from loosing their editor
> content.
>
> I did try to use the onclick="OnFormSubmit()"; to send the whole form, but
> nothing happened!
>
> Here's a url:
> http//:www.ipra.org/gwa_entryform3.asp
>
> It's a bit messy at the mo' but you get the idea.
>
> Cheers
>
> Mat

It's been a while since I used PD Editor, if memory serves me right you had
to put "copyValue()" in the form's onSubmit attribute to automatically copy
the PD-editor's content to a hidden text-field when the form is submitted.

Joris






Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2007 Oct 29, 2007

Copy link to clipboard

Copied

LATEST
> How can I deactivate or hide the form's submit button until the user has
> clicked the save WYSIWYG content button? Obviously, what I don't want is
> something that when clicked refreshes the page thus wiping out the entered
> form
> data.
>
> I bet it's Javascript - I'm rubbish at Javascript!

Normally, you send the text from the editor to the hidden field WHEN the
SUBMIT button is pressed. So you'd tie the javascript that you want to put
in the 'SAVE' button directly to your SUBMIT button instead.

-Darrel


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines