SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "google suggest" clone issue

    hi all

    http://www.nsftools.com/tips/ZipLookupTest.htm
    i have pretty much just copied the example+js from this site
    and modified it slightly to suit my needs, and it works ok in firefox

    my version located at
    http://dtracorp.com/tmp/qt_no_submit.php

    for firefox, the only words that will bring anything up are 'site','sports', 'personal', 'other'

    the issue in ie is that the <select> innerHTML does not change to the selected option from the suggest

    any ideas?

    thanks
    dave
    Last edited by dtra; Jul 3, 2006 at 06:00.

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,751
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try changing this line:

    xmlHttp.open("GET", lookupURL + queryString, true);

    to this:

    xmlHttp.open("GET", lookupURL + queryString + "&random=" + Math.random(), true);

  3. #3
    SitePoint Member
    Join Date
    Jun 2006
    Location
    Zagreb, Croatia
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was playing with the example on http://www.nsftools.com/tips/ZipLookupTest.htm and tried to create a "del.icio.us" style of adding tags for my CMS.

    The problem is that the Javascript on that page always send the whole string in the input field to the script that is supposed to echo "pure" data. Is there a script that would be "smart" and if I enter more then one tag (I user comma as a delimeter) just send the last tag to the server script?

    I hope you understand what I am talking about

  4. #4
    SitePoint Evangelist
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by chris_fuel
    Try changing this line:

    xmlHttp.open("GET", lookupURL + queryString, true);

    to this:

    xmlHttp.open("GET", lookupURL + queryString + "&random=" + Math.random(), true);
    hmm...
    thanks, didn't work though
    ie just doesn't want to change the innerHTML properly, well, at least not like firefox does

    [update]
    oop, found the answer
    http://www.webreference.com/programm...chap8/2/7.html
    Last edited by dtra; Jul 4, 2006 at 03:53.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •