NewART Development Web development tutorials, SEO articles and PHP script resources

12Mar/100

getParam() in Zend Framework

How do you use the getParam() Front Controller Parameter ?

usually in php your link should be somthing like:

user.php?action=aboutuser&username=coolname&gender=male

and You call it


$_GET["username"];

$_GET["gender"];

But in Zend Framework the url looks more like this:

hostname/user/aboutuser/username/wiwit/gender/man

And we can interpret it like this:

23Aug/090

Submit using an input image type: fix for IE

Well if you try login with an input image type you will have a small problem in IE:  it wont work.

HTML :

<input name="submit" src="path/to/image.gif" type="image" value="Submit"

PHP

// start processing on submit or submit_x
if (isset($_POST['submit']) || isset($_POST['submit_x'])) {
// run code here
}

This should fix the problem in IE. Just add isset($_POST['submit_x'] in the conditional

20Aug/090

Flex applications with transparent background

Maybe you need a transparent background for your application BUT where is the button???

Well is pretty simple all you have to do are 2 simple things :

1)

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0.0">

As you may see i added backgroundAlpha equal to zero.

2)

AC_FL_RunContent(
...,
"wmode", "transparent"
);

just add "wmode", "transparent" in html file generated by Flex Builder under AC_FL_RunContent

Filed under: Flex No Comments
28Oct/080

Include in jsp?

How to include jsp scripts in your page ?

Well we can do it in 2 different ways :

<%@ include file="included.html" %>
or
<jsp:include page="included.html" flush="true" />

Tag Cloud

My Websites

Categories

Archives