Not logged in. · Lost password · Register
Forum: General discussion RSS
Need Help Trying To Understand Search Options
Aaron #1
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
I'm trying to figure out how to get what use to work on my skin to work again...
in the past I used a text box, submit button, and check boxes to set the search options. This no longer works.

Here's my code:

         <form action="plist.html" method="get" name="search_form" target="iframe_list" class="standard" id="search_form">
          <input name="search_string" type="text" id="search_string" value="<#search_files_string>" size="20">
          <input type="submit" name="search_button" value="  search  "><br>
          <!--  <input name="search_for_directories" type="checkbox" id="search_for_directories" value="true" checked>folders  -->
          <input name="search_files_string" type="checkbox" id="search_files_string" value="<#search_files_string>">files
            <input name="search_playlist_string" type="checkbox" id="search_playlist_string" value="<#search_playlist_string>" checked>
            <!--  <input name="search_in_subdirs" type="checkbox" id="search_in_subdirs" value="true" checked>  -->
          playlist       
        </form>

help is highly appreciated!
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Aaron #2
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Anyone... help ???
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #3
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Here is the code I use:
<form action="" method="get" name="searchform" target="_self" class="standard" id="searchform">
    <p>search:
      <input name="search_files_string" type="text" id="search_files_string" value="<#search_files_string>">
       
      <input type="submit" name="button" value="  search  ">
      <br>
      search for:
      <input name="search_for_directories" type="checkbox" id="search_for_directories" value="true" checked>
      directories
      <input name="search_for_files" type="checkbox" id="search_for_files" value="true" checked>
      files <br>
      <input name="search_in_subdirs" type="checkbox" id="search_in_subdirs" value="true" checked>
      include subdirs </p>
    </form>
Hope this helps.
Aaron #4
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Hi Henry,
thanks for the code. I still cannot get it to work. If I replacet search_files_string with search_playlist_string it works perfectly.
Below is my code, please let me know if you can see anything that would be causing "nothing" to happen when I click the search button.

      • playlist.html ***

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<#Charset>">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <link rel="stylesheet" type="text/css" href="/style.css" />
    <title>Music Center PlayList Editor</title>
  </head>
 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<div align="center" class="main" style="width: 600; height: 482">
  <center>
<table class="iframe_trans" width="590" border="0" cellspacing="0" id="Table_main" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="414">
<td>

  <table class="iframe_trans"  width="389" align="center" border="0" style="border-collapse: collapse" border="1" cellspacing="1" id="Table_top">
    <tr>
      <td width="556" align="center">
  <iframe allowTransparency="true" scrolling="no" background-color="transparent" color="transparent" border="0" frameborder="0"name="iframe_title" src="/pltitle.html" width="486" height="36">
        Your browser does not support inline frames or is currently configured not to display inline frames.</iframe><br>
  <img src="gfx/black.gif" width="550" height="1"></td>
    </tr>
    <tr></tr><tr></tr><tr></tr>
  </table>
   <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="AutoNumber6">
      <tr>
        <td width="36%" align="center"><font face="Arial"><b>
        <a href="index.html">BACK to Main</a></b></font></td>
        <td width="11%" align="center"> </td>
      <form action="plist.html" method="get" name="searchform" target="iframe_list" class="standard" id="searchform">
        <td width="53%" align="center">
      <input name="search_files_string" type="text" id="search_files_string" value=" " size="20">
       <input type="submit" name="button" value="  search  ">
     </td>
      </tr>
      <tr>
        <td width="36%" align="center"><font face="Arial"><a href="browser.html?home" target="iframe_list">browse view root</a></font></td>
        <td width="11%" align="center"> </td>
        <td width="53%" align="center">
     <font size="2" face="Arial">
     <input name="search_for_directories" type="checkbox" id="search_for_directories" value="true" checked> folders
     <input name="search_for_files" type="checkbox" id="search_for_files" value="true" checked> files
     <input name="search_in_subdirs" type="checkbox" id="search_in_subdirs" value="true" checked> include subdirs
     </font>
    </form>
      </tr>
</td>
      </tr>
      <tr>
        <td width="36%" align="center"><font face="Arial"><a href="browser.html?home" target="iframe_list">browse view root</a></font></td>
        <td width="11%" align="center"> </td>
        <td width="53%" align="center">
      </td>
      </tr>
      <tr>
        <td width="36%" align="center"><font face="Arial"><a target="iframe_list" href="plist.html#currentsong">jump to current song</a></font></td>
        <td width="11%" align="center"> </td>
        <td width="53%" align="center">
     </td>
      </tr>
      <tr>
        <td width="36%" align="center"><font face="Arial">Playlist: <a target="iframe_list" href="plist.html?refresh">refresh</a>
          / <a target="iframe_list" href="plist.html?clear">clear</a></font></td>
        <td width="11%" align="center"> </td>
        <td width="53%" align="center">
        <form action="playlist.html" method="get" name="save_form" target="_self" class="standard" id="save_form">
    <input type="text" name="saveplaylist" size="20" value="">
       <input type="submit" name="save_playlist" value="  save  ">
     </form>
     </td>
      </tr>
    </table>
    </center>
  </div>
     <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="AutoNumber6">
      <tr>
        <td width="36%" align="center"><font face="Arial" style="font-size: 9pt"><b>Current
       Folder</b></font></td>
        <td width="11%" align="center">
            <iframe allowTransparency="true" background-color="transparent" color="transparent" name="I1" src="/currentdir.html" width="259" height="21" scrolling="no" border="0" frameborder="0">
            Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
        </td>
        <td width="53%" align="center">
    <font face="Verdana" size="2"><b>
       View: 
      <a target="iframe_list" href="browser.html">Browser</a> /
    <a target="iframe_list" href="plist.html">List</a></b></font></td>
      </tr>
      </table>
    </center>
  </div>
      <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="List">
      <tr>
        <td width="100%" align="center"><img src="gfx/black.gif" width="550" height="1">
    <iframe allowTransparency="true" background-color="transparent" color="transparent" class="playlist" name="iframe_list" src="plist.html" width="550" height="220" border="0" vspace="0" hspace="0" frameborder="0" marginwidth="1" marginheight="1"></iframe>
        </td>
      </tr>
      </table>
    </center>
  </div>
  </body>
</html>
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #5
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You should take a look at you HTML code. Some tags are not closed and/or are convoluted in a very strange way... :wacko:
There is no problem with the search options.

ps: would be great if you attach the source code in a file next time instead of posting so much code.
Aaron #6
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
the problem is that the EXACT SAME form & page works perfectly for ' search_playlist_string ' but does not work at all for ' search_files_string '

I have attached my entire skin. The problem file "playlist.html" has a comment pointing out the only line difference. PLEASE run the code on your PC and let me know what your results are.
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
The author has attached one file to this post:
mc.zip 145.2 kBytes
You have no permission to open this file.
Avatar
Henry (Administrator) #7
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ok, here is the corrected version...

        <td width="53%" align="center">
      <form action="browser.html" method="get" name="searchform" target="iframe_list" class="standard" id="searchform">
<!--- SEARCH FORM --->
<!--       <input name="search_playlist_string" type="text" id="search_playlist_string" value=" " size="20">  -->
        <input name="search_files_string" type="text" id="search_files_string" value="" size="20">
<!----------------->
       <input type="submit" name="button" value="  search  "> <br>
     <font size="2" face="Arial">
     <input name="search_for_directories" type="checkbox" id="search_for_directories" value="true" checked> folders
     <input name="search_for_files" type="checkbox" id="search_for_files" value="true" checked> files
     <input name="search_in_subdirs" type="checkbox" id="search_in_subdirs" value="true" checked> include subdirs</font>
  </form>
  </td>

See the difference?
Aaron #8
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
I see you changed the action= from "plist.html" to "browser.html"

Now all that displays for me is a blank page... do you get an output?
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #9
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yeah, works great!
Maybe I have changed some other things (closed tags etc...) so I attached the whole file for you.
The author has attached one file to this post:
playlist.html 5.6 kBytes
You have no permission to open this file.
Aaron #10
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
ahh.... I found the problem.
If the "browser" is in a directory that there is no songs/dirs then the search comes up blank.
I thought the search stared from the root that you set in Browseamp... it does not. ;-)

thanks for all the help!
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 232.3 ms (139.3 ms) · 83 database queries in 96.9 ms
Current time: 2018-02-24, 23:41:04 (UTC +00:00)