How to publish my web form using my...

User 2667323 Photo


Registered User
7 posts

Hi Guys,

I'm searching for a view day's for a solution. Let me explain. I build a site with Xara and my forms with web form builder. Compliments for the tool, but I fail to publish (manual server setup) my form onto my website. I found info on coffeecup how to do and I did what they say but it's not working. With the s-drive option everything works fine.

I copied the export files of my form to my root of my site and use the script produced by the tool.

<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"Contact%2520Form.php" + window.location.search + "\" width=\"432\" height=\"730\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"Contact%2520Form.php\" title=\"Contact%2520Form\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe width="432" height="730" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="Contact%20Form/Contact%20Form.html">
&lt;a href="Contact%20Form.php" title="Contact%20Form"&gt;Check out my
CoffeeCup Form&lt;/a&gt;
</iframe>
</noscript>

I know that I need to change the line "window.location.search" but I don't know exactly into what command.

Please can somebody help me.

In advance thanks

Dutchy
User 2147626 Photo


Ambassador
2,958 posts

L van Duijn, I use Xara all the time. Web Form Builder will work.

DO NOT change the code that WFB exports. It works right out of the box. Here's what you do...

1> Place the code that WFB creates into an HTML box. In Xara this means to create a box using the 'rectangle tool'. Then right click that box and select 'Web Properties', then 'Placeholder'. Come down to 'Replace with HTML code'. Put the HEAD and BODY codes in the proper place. Move that box in Xara to where you want your form to appear. Save your web site, then publish it.

2> You need to FTP the files that WFB created to the same directory on your server where the page is that contains your form. This is usually the root. When WFB exported, it created several files and folders. The main folder would be yourformname_exported ( where yourformname is the name of your web form ). DO NOT upload that directory. You need to upload, or FTP, the contents of that directory. Everything in that _exported directory should be uploaded just as it is, into the directory containing the HTML page with your form.

Let me know if you still have questions. You will not be able to preview your form in Xara until you upload your WFB files. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 122279 Photo


Senior Advisor
14,457 posts

I'm not familiar with Xara, but first I suggest that you get rid of the spaces in your file names. (E.g. not 'Contact Form.php' but 'ContactForm.php',
or better still 'contactform.php'.) Not saying that is all that's needed, but I would at least fix that first.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2667323 Photo


Registered User
7 posts

Hi Gunsmoke,

Thanks for your reply. I did already exactly what you said and it's not working. I get the message NOT FOUND The requested URL has no content. Is this maybe because I put the whole generated code from WFB into the BODY? Is this maybe my fault? If so what part of code must I place in the BODY and what part in the HEADER?

Thanks in advange.

Dutchy
User 2147626 Photo


Ambassador
2,958 posts

You should have code for both the HEAD and the BODY. It will be marked. The code you listed above goes in the BODY, but there will be code that needs to be in the HEAD too.

Also, follow Ingers advice and rename your form without spaces. Some servers allow them, some do not. Some browsers seem okay with them, some do not. To look the best for your users and to reduce problems, get rid of the spaces. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2667323 Photo


Registered User
7 posts

I also followup the advice of Inger (thanks) but I'm sorry I don't know what code I need to place in the BODY. WFB generates only the HEADER code.Do I missing here something?
User 2147626 Photo


Ambassador
2,958 posts

Which version of WFB are you using? Do you have a link to the site we can look at?

I was wrong about the HEAD and BODY. Seems it depends on what you have on your form. In the example below there is code for just the BODY. The first thing you want to do is create your form, then export it for Manual Server Setup. http://gunsmoke.me/cloud/tempform/form1.png

The next thing you want to do is paste the code the WFB gives you into the BODY of your placeholder in Xara. http://gunsmoke.me/cloud/tempform/form2.png

Copy the code to Clipboard, then Paste it into your Xara placeholder. http://gunsmoke.me/cloud/tempform/form4.png

The last thing you'll need to do is open the files location where you exported the form, and upload these files and directories to your server, in the same location where the web page containing your form is located. Probably the root.
http://gunsmoke.me/cloud/tempform/form3.png

Notice that you only upload the files contained within the _exported folder, and not the _exported folder itself.

Let me know if you get it working. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2667323 Photo


Registered User
7 posts

Gunsmoke, thank for your clear explanation. I did and do exactly what you advised and still I get the error message when I use the 'preview current webpage' option within Xara. I don't know anymore :(

One remark for other users, I had some problems (time delays) with uploading the WFB files to my server. After switching my firewall of, this problem was solved.

But still getting the error message NOT FOUND The requested URL has no content.

Dutchy
User 2667323 Photo


Registered User
7 posts

PS: I'm using WFB version 2.4 build 5318 and Xara Web Designer 9 Premium 9.2.7.30974 DL x64 Jan 8 2014
User 2147626 Photo


Ambassador
2,958 posts

Publish your site, don't just preview. The WFB files need to be in the directory that the web page containing the form is in. You won't be able to preview. You have to publish.

Xara uses a temp directory for preview and it's not finding your form because that's not where the files are.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.