Jump to content

auto complete hint


otuatail

Recommended Posts

Hi I have a web form that has several text boxes. Each time I goto the page, if I type the first charecter again, I get a list of auto complete hints to save me the trouble.

This stopped working sometime ago and I could not find out how as I checked the latest code. I have discovered that it is IE7. Under FF Opera Netscape and Safari it works fine. Is this an option in IE7 I went to great lengths to create a session variable name on a new instance of the browser, so that it only showed me todays history. But now under IE7 It is gone?

 

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/75770-auto-complete-hint/
Share on other sites

No. I have just tried it again and it works in FF and not IE. What I do is this.

 

if($_SESSION['SQL'] == "")

    $_SESSION['SQL'] = "SQL" . $stamp;

 

AND

<td colspan="6"><input type="text" name="<?=$_SESSION['SQL']?>" size="128"></td>

 

So as long as the Browser session is in place, I will get a drop down list of previouse matches. If I close the browser down and open a new one, I get a fresh name for the text box, and efectivly a new history. quite smart as it doesn't get cluttered with thousands of old values.

 

Desmond.

Link to comment
https://forums.phpfreaks.com/topic/75770-auto-complete-hint/#findComment-383449
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.