Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 95
Search took 0.37 seconds.
Search: Posts Made By: earni23
Forum: HTML & CSS 09-12-2011, 07:33 PM
Replies: 3
Views: 555
Posted By earni23
Is it possible to center an elment without css when using strict-doctype

Hi
Is it possible to center an elment without css when using strict-doctype?
Forum: Java and JSP 08-30-2011, 08:28 PM
Replies: 1
Views: 1,522
Posted By earni23
Wait for asynctask to finish

Hi
I´m currently using AsyncTask to show a progressdialog while performing a background operation in android.

When AsyncTask is finished, I want to use the result and then call a...
Forum: ASP.NET 05-14-2011, 09:46 PM
Replies: 0
Views: 693
Posted By earni23
How to prevent validation on textbox control

Hi
I have this:

<asp:TextBox ID="QueryTxt" runat="server" asp:TextBox> <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Error 2"...
Forum: Apache configuration 04-14-2011, 11:33 AM
Replies: 0
Views: 759
Posted By earni23
How to create rewrite rule for subdomain

Hi
I have a rewrite rule in .htaccess for www.test.com/program/ like this:


RewriteRule ^program/?$ /index.php?page=program


How shall I write the rule for the subdomain...
Forum: HTML & CSS 04-14-2011, 11:25 AM
Replies: 1
Views: 544
Posted By earni23
Solved it!

Solved it!
Forum: HTML & CSS 04-12-2011, 09:05 PM
Replies: 1
Views: 544
Posted By earni23
How to make text larger in mobile-based webpages

Hi
I´m doing a mobile-based webpage, but when I´m looking the webpage in the browser in the phone the text becomes too small to read. Is there any better way of enlarging the the text rather than...
Forum: ASP.NET 03-24-2011, 03:36 PM
Replies: 0
Views: 1,045
Posted By earni23
How to get page source in iso-8859-1 and convert characters to utf8

Hi
I´m getting the page source with the following code, but its in "iso-8859-1" and I want to convert it to utf-8.


HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www....");...
Forum: HTML & CSS 03-13-2011, 04:15 PM
Replies: 1
Views: 366
Posted By earni23
Set width of text in contact form

Hi
I have the following code:

CSS:

#ContactForm label
{
display: block;
}
Forum: PHP 03-12-2011, 04:24 PM
Replies: 1
Views: 595
Posted By earni23
How to prevent mail-header-injections by not accepting "\r\n"

Hi
How do I write safe code in order to prevent mail-header-injections. I have heard that if you find "new line characters" in e-mail-variable its probably a injection attempt, so I´m looking for...
Forum: Apache configuration 03-11-2011, 04:21 PM
Replies: 0
Views: 1,227
Posted By earni23
Help to create a rewrite rule in htaccess for broken link

Hi
Previously I had this page link - www.test.com/?page=start - to open home page. Now the link is changed and therefore broken in google. What would the correct rule be in .htaccess using...
Forum: PHP 03-04-2011, 10:37 AM
Replies: 1
Views: 321
Posted By earni23
How to write mail(...) which uses utf-8

Hi
I´m using the following code to write a mail-function that supports utf-8:


$headers .= "From: $name <$from>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type:...
Forum: MySQL 03-03-2011, 12:00 AM
Replies: 2
Views: 1,891
Posted By earni23
solved with: SELECT * FROM Areas WHERE...

solved with:
SELECT * FROM Areas WHERE country_id = (SELECT country_id FROM Countries WHERE name = '$country')
Forum: MySQL 03-02-2011, 11:15 PM
Replies: 2
Views: 1,891
Posted By earni23
How to write two selects in one query

Hi
How do I send the result from one select-statement to another select in one query.

I´m trying the following, but it doesn´t work.

"SELECT country_id AS result FROM Countries WHERE name =...
Forum: Java and JSP 01-17-2011, 11:26 PM
Replies: 0
Views: 2,013
Posted By earni23
Getting "PI must not start with xml"-error

Hi
I have the following code:

List<NameValuePair> list = new ArrayList<NameValuePair>();
list.add(new BasicNameValuePair("a", "Get"));

MyHandler handler = new MyHandler();
...
Forum: ASP.NET 01-13-2011, 05:23 PM
Replies: 4
Views: 1,170
Posted By earni23
Never mind the ouput, it works. There is no...

Never mind the ouput, it works. There is no problem with that. The problem is that vs gives me a warning: Element 'html' occurs to few times. How do I fix this warning?
...
Forum: ASP.NET 01-13-2011, 08:57 AM
Replies: 4
Views: 1,170
Posted By earni23
My Xml.Output() looks like this: public...

My Xml.Output() looks like this:


public void Output()
{
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.NewLineOnAttributes...
Forum: ASP.NET 01-12-2011, 07:32 PM
Replies: 4
Views: 1,170
Posted By earni23
How to write correct aspx-page with xml

Hi
On my default.aspx-page I have the following code to output xml:

<%@ Page Language="C#" %>
<script runat="server" type="text/C#">
protected void Page_Load(object sender, EventArgs e)
...
Forum: Java and JSP 12-09-2010, 07:41 PM
Replies: 1
Views: 1,811
Posted By earni23
How to limit the input to 8 chars in a lwuit-textfield

Hi
Is there a way to directly limit the input to 8 chars in a lwuit-textfield?
Forum: Java and JSP 11-25-2010, 06:55 PM
Replies: 1
Views: 3,173
Posted By earni23
Solved it with: ...

Solved it with:
UIManager.getInstance().getLookAndFeel().setMenuRenderer(new ItemRenderer());
Forum: Java and JSP 11-25-2010, 03:02 PM
Replies: 1
Views: 3,173
Posted By earni23
How to change the style of a selected item in menu (lwuit)

Hi
How do I change the style of a selected item in command menu (lwuit)? I want to change the background color of the selected item to gray. How do I do this using a hashtable?
Forum: Java and JSP 11-16-2010, 01:47 PM
Replies: 0
Views: 2,771
Posted By earni23
How to change the commandtext "Cancel" and "Select" of a lwuit-combobox

Hi
How do you change the commandtext "Cancel" and "Select" of a lwuit-combobox? Is this possible? I can only find the method that disables the commands...
Forum: Java and JSP 11-16-2010, 01:03 PM
Replies: 1
Views: 1,561
Posted By earni23
solved it with the following x-value:...

solved it with the following x-value: dimension.getWidth() / 2 - font.stringWidth(text)
Forum: Java and JSP 11-15-2010, 11:43 AM
Replies: 1
Views: 1,561
Posted By earni23
How to center text in lwuit-graphics with drawString

Hi
How do you center text in lwuit-graphics with drawString(...) ? In "javax.microedition.lcdui.Graphics" you use Graphics.HCENTER, but how do you this in lwuit.graphics?
Forum: Java and JSP 11-14-2010, 01:09 PM
Replies: 1
Views: 1,642
Posted By earni23
Solved it with hasFocus()

Solved it with hasFocus()
Forum: Java and JSP 11-14-2010, 12:19 PM
Replies: 1
Views: 1,642
Posted By earni23
How to get which combobox I´m currently using in midlet

Hi
I have 3 lwuit-comboboxes (year, month, day). My problem is that I want to get which combobox I´m currently using (selecting in). I thought there was a isFocused-method for the combobox, but I...
Showing results 1 to 25 of 95

 
Forum Jump

All times are GMT +1. The time now is 07:15 PM.