SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This problem is occuring on one of the site's using my new open source links database script, ssLinks. The script includes a rating facility which allows users to select a value from 1-10 in a select box - the moment they select a value a piece of javascript submits the form and reloads the page. Unfortunately one of the site's using my script has a problem where when the page reloads all of the images show up as broken links. Refreshing the page again by hitting F5 makes the images re-appear (this is with MSIE 5).

    Here's my javascript:
    Code:
    <form action=links.php method=post name=rate1>
    <input type=hidden name=action value=rate>
    <input type=hidden name=id value=1>
    <select name=score size=1 class=small onchange="document.rate1.submit()">
    <option>-<option>1<option>2<option>3<option>4<option>5<option>6<option>7<option>8<option>9<option>10
    </select>
    </form>
    Unfortunately the site in question is an Adult Webmaster's resource site so I can't post the link on this forum. If you want to see the problem for yourself go to the ssLinks demo site and click on the link to "PornoItalia" on the "Site's using ssLinks" page.

    If anyone has any ideas as to why this is happening I'd love to hear them.

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The page worked fine for me (IE 5)...but you're probably right that it's one of the meta tags that's causing the problem.

    As a side note, I'd take out the name for the form and just make it be "this.form.submit()" so that there's no chance of a name conflict.

  4. #4
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the this.form tip I'll definitely use that in the next version of the script.


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
  •