form -- non editable text area

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andyb2
Forum Newbie
Posts: 7
Joined: Tue Sep 04, 2007 3:16 pm

form -- non editable text area

Post by andyb2 »

Hi,

I have a wordpress (2.6) blog with a search function embedded as a form.
I can not edit the text box in Firefox (1..5, 2, 3), Safari or Chrome but i can in IE

The code for the form is:

<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF'] ?> ">
<input type="text" id="search" name="search" size="15" value="" >
<input type="image" name="submit" src="search.gif" align="top">
</form>

But if save a page from the blog, open it in dreamweaver, then view it in firefox, the text box is editable.

Any ideas what is going on??

cheers
Andy
Edit/Delete Message
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: form -- non editable text area

Post by alex.barylski »

Comment out all javascript and CSS and see if that works in all browsers.

Then start un-commenting each line and included file step by step and testing for failure. When you found the file or code line responsible, fix it or post it here and maybe we can help you further.
andyb2
Forum Newbie
Posts: 7
Joined: Tue Sep 04, 2007 3:16 pm

Re: form -- non editable text area

Post by andyb2 »

thanks for the tip.

As i was debugging i found the problem.
i had added onmousedown="return false" onselectstart="return false" in the body tag.

All resolved now. cheers

Andy
Post Reply