Graphic Submit Button does not display?

I create a graphic, and in the inspector palette tick the “submit” check box and publish, and the graphic item disappears?

I’ve check the graphic and FW has actually published a barely perceivable 1x1px gif

Checked in FW3, FW4, FW5 and its the same.

Have I missed something here?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Heres the code

<div id="PageDiv">
<form action="">
<div id="item1" style="position:absolute; left:299px; top:176px; width:51px; height:36px; z-index:1">
	<input type=image src="Resources/untitl1b.gif" name="buy now" value="item1">
</div>
</form>

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Is this button a simple flat color rectangle graphic that you drew in
Freeway? If so, then what’s happening is this:

Freeway is properly publishing the image submit button without any
dimensions.

Freeway is doing what it usually does in order to make the most
efficient site possible – drawing a one-pixel-square splotch of your
color and then resizing it to the dimensions called for in your layout.

These two things are correct, in isolation, but when taken together
spell doom for your image submit button trick.

Try one of the following:

Put a bit of graphic text in the color box – same color as the
background if you want the box to be entirely unlabeled. This will
force Freeway to generate a graphic the entire size of the box you drew.

Export your button graphic as a GIF, then import it as a pass-through
before you use it as your submit button.

Walter

On Mar 29, 2008, at 7:33 AM, WebWorker wrote:

Heres the code

<div id="PageDiv">
  <form action="">

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes it was a flat colour test, when the graphic contain something, yes to works OK


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK button solved, but now it look like so values are being sent with the form (i.e. the hidden fields)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

nope its OK. does help if the field data was not blank :-


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not sure what you mean by this. Hidden fields are always submitted
along with a form – that’s what they’re for. Now if you have
disabled a form field (disabled=“disabled”), it’s not supposed to be
submitted, but some broken (IE, some versions) browsers will submit
it anyway.

On Mar 29, 2008, at 9:45 AM, WebWorker wrote:

OK button solved, but now it look like so values are being sent
with the form (i.e. the hidden fields)

When you submit from an image button, you will get two values in your
form that you won’t have bargained for: the x/y coordinates of the
point on the button where the click happened.

If you name your submit button “pushme”, then you will see the
following values in your POST input:

$_POST['pushme_x'] (some positive integer)
$_POST['pushme_y'] (some positive integer)

This is somewhat useful for a few cases, for example if you had a map
of a country and wanted to figure out which city was clicked on, you
could do so using these inputs.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Slightly off track, how do you style an “individual” form field background colour?

(just one field (or maybe two) need to be hi-lighted with some gathered data I’m sending data from this button to pre-populate an other form page using PHP)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not if I leave them empty with no data (forgot to complete them). doh!!

On 29 Mar. 2008, 1:51 pm, waltd wrote:

Not sure what you mean by this. Hidden fields are always submitted


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Click on the input, choose Item > Extended from the main menu. Make
sure the segment is selected, then press New. In the Name
field, enter ‘style’ (without the quotes). In the Value field, enter
‘background-color:#ffc’. Okay the stack of dialogs, and preview. You
should see a pale yellow background on that one field.

Walter

On Mar 29, 2008, at 9:52 AM, WebWorker wrote:

Slightly off track, how do you style an “individual” form field
background colour?

(just one field (or maybe two) need to be hi-lighted with some
gathered data I’m sending data from this button to pre-populate an
other form page using PHP)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Cool, Thanks, I can now use PHP to only create a highlight colour when, pre-completed data is present/sent to the form.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you are going to end up with more than one of these on the page,
then do this:

Make a new style with input.highlight as the Tag and force the Name
field to be empty. Make sure this is a permanent style, so it will
publish to the page whether it gets used or not.

Now, in your PHP code, simply apply the class=“highlight” property to
your pre-filled fields as you fill them. You won’t need a bunch of
inline style mucking up the page.

Walter

On Mar 29, 2008, at 10:14 AM, WebWorker wrote:

Cool, Thanks, I can now use PHP to only create a highlight colour
when, pre-completed data is present/sent to the form.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks work a treat.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options