Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.