nospam.lzx

<canvas bgcolor="#FFFFFF" debug="false" proxied="true" dataloadtimeout="600000" title="NoSpam">
	<silverstyle name="silvercolors"/>

	<include href="nospam/datasets.lzx"/>
	<include href="nospam/methods.lzx"/>

        <splash>
                <view x="50" y="150" width="${parent.width}" height="100">
                        <text width="220" height="33" fontsize="18">Loading ...</text>
                </view>
        </splash>
        
	<view name="loading" width="${parent.width}">
                <view x="50" y="50" width="${parent.width}" height="50">
			<text width="100" height="33" fontsize="18">Loading ...</text>
                        <text x="40" multiline="true" width="100" height="24" fontsize="15" fontstyle="bold" id="loadinginfo"/>
                        <simplelayout axis="y" spacing="5"/>
                </view>
        </view>

	<script>
                Debug.write("WeePee NoSpam Version 1");
                canvas.getWeePee();
        </script>

	<view name="nospam" initstage="defer" width="300">
		<simplelayout axis="y" spacing="1"/>

		<view name="tab" width="300">
				<view name="mailingdata" visible="false" width="200">
					<view name="box" width="200">
						<text multiline="true" width="200">
							<br/>
							<b>Resultaat:</b>
							<br/>
							<br/>
						</text>
					        <text multiline="true" width="200" name="info"/>
						<text multiline="true" width="200">
							<br/>
						</text>
							<button x="30" isdefault="true">Ga Terug
								<handler name="onclick">
									nospam.tab.mailingdata.setAttribute('visible',false);
									nospam.tab.customerdata.setAttribute('visible',true);
								</handler>
							</button>
						<simplelayout axis="y" spacing="5"/>
					</view>
				</view>
				<view name="customerdata">
					<view>
						<text multiline="true" width="300">
							<br/>
							<b>Teken in op onze mailing-lijst:</b>
							<br/>
							<br/>
						</text>
						<view layout="axis:x" align="right">
							<text valign="middle">Voornaam:</text>
							<edittext id="surname" width="200"/>
						</view>             
						<view layout="axis:x" align="right">
							<text valign="middle">Achternaam:</text>
							<edittext id="lastname" width="200"/>
						</view>
						<view layout="axis:x" align="right">
							<text valign="middle">E-Mail:</text>
							<edittext id="email" width="200"/>
						</view>
						<view layout="axis:x" align="right">
							<text valign="middle"/>
						</view>
						<view layout="axis:x" align="right">
							<button isdefault="true">Schrijf in
								<handler name="onclick">
									canvas.createMailing(
									lastname.getValue(),
									surname.getValue(),
									email.getValue(),
									"in"
									);
								</handler>
							</button>
							<button isdefault="true">Schrijf uit
								<handler name="onclick">
									canvas.createMailing(
									lastname.getValue(),
									surname.getValue(),
									email.getValue(),
									"out"
									);
								</handler>
							</button>
							<simplelayout axis="x" spacing="5"/>
						</view>
						<simplelayout axis="y" spacing="5"/>
				</view>
			</view>
		</view>
	</view>
</canvas>

Cross References

Includes

Named Instances