Category: Html

Multiple actions on one form

By , November 19, 2009 10:46 pm

By using form tag we can define a action where we can submit the data and proceed further.

Now there are multiple submit button on the form and each required different action. So how to do that?

I found one easy solution for the this.


<form action="ACTION" name="formName"  id="formName">

<input type="text">

.....

<input type="submit" value="Submit">

<input type="button" value="Next" onclick="next()">

<input type="button" value="Previous" onclick="previous()">

</form>

function next(){

document.formName.action="Next Action";

document.formName.submit();

}

function previous(){

document.formName.action="Previous Action";

document.formName.submit();

}

So this way we can define multiple actions on the same page.

Labels in IE

By , October 20, 2009 1:09 am

Recently I develop one project which created by one of the plugin.

This project having pre configured css for the pages. Application is run well on all borwsers except IE.

In IE, labels are not displayed. Labels are displayed When I highlight on that by mouse.

This is a very strange problem for me because text is displayed sometime and sometime not. Even sometime some of the labels are shown where some labels are  not on a same page.

Finally I found that all browsers have own default font size. Like firefox having 14px and IE having 16px.

I felt that there are some padding issues with font styles in IE. So I applied the below patch for IE browsers..


body {font: 13px/1.5 Arial, Verdana, sans-serif;}

Still I don’t know what means this but it works for me. Now in IE browser labels are shown consist.

Pop up window problem in IE

By , September 18, 2009 3:35 am

Recently I was having problem to open pop up window in IE browsers. Although it works properly in all other browsers.

In IE , window is open on self window rather than another window.

Finally I found the error in my code, and that was window name problem.

I defined the window name with space (window name). It must be without space (window_name).

Syntax must be

window.open(url,'window_name','height=570,width=400,scrollbars=1');

Panorama Theme by Themocracy