Hi Ryan,
> Yeah, that was the first thing I tried. I put the
> line alert(searches.length); into one of my search
> files and did a search. It popped up saying
> "Undefined". alert(searches) just gives "[Object
> object]". The aliases array does the same thing.
This is the structure of each searches[] element, which is a named
array:
{fname, name, desc, link, cat, subcats, fun,
aliases[], enabled, aliasmenudisplay, local, nomenu}
Enumerate using this style (based on qsfind):
var s = "";
for (var i in searches){
if (isNaN(i)){
if (searches[i].fname.substr(0,1) != "_")
s += " " + searches[i].fname;
}
}
alert ( s );
Regards,
Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/
'// ========================================================
"In theory, there is no difference between theory and
practice; In practice, there is."
-- Chuck Reid
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
[email protected]
http://sourceforge.net/mailarchive/forum.php?forum_id=8601