close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Page not refreshing where it should after sending form or validation fail

Thread began 3/27/2017 5:20 pm by danielsebas | Last modified 3/30/2017 2:56 am by Ray Borduin | 27 views | 4 replies |

danielsebas

Page not refreshing where it should after sending form or validation fail

Hi, this is the first time I am experiencing this problem. I have a contact form in my page and mail is sending ok and validation is working. The funny thing comes here:

If server validation fails the refreshing address is index.php#contact that should refresh at the beginning of the <div id="contact"> but it refreshes at the end of the contact div. The same happens when a mail is sent, I put the instruction to refresh in the contact div so a message that the mail was sent correctly will appear, but it refreshes at the end of the contact div. This only happens in Firefox.

I am attaching the page, please help I don't know what is happening, I've recreated the behaviors five times and is really a headache because every time I apply a behavior Dreamweaver destroys all the html code and puts the php tags breaking div tags and in other parts of the page and sometimes erasing another behaviors.


Thank you
Cheers,

Daniel

Attached Files
index.php
Sign in to reply to this post

Ray BorduinWebAssist

I think line 6 should be:

$WAFV_Redirect = "index.php#contacto";

Sign in to reply to this post

danielsebas

Hi Ray, thank you for your help, it still refreshes in the wrong part. This only happens in Firefox. I'm attaching a picture.

Sign in to reply to this post

Ray BorduinWebAssist

adding this to line 494 fixes the problem. Some of the other javascript you had running was interfering with the ability to load to the correct anchor.

if (window.location.hash) location.hash = (window.location.hash);

Sign in to reply to this post

danielsebas

Thank you Ray, it worked perfectly!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...