| View previous topic :: View next topic |
| Author |
Message |
silent_Walker n00b

Joined: 25 Jul 2012 Posts: 61 Location: forums.gentoo.org
|
Posted: Sun Nov 11, 2012 5:09 pm Post subject: Help with HTML5 and javascript site |
|
|
I have created this very simple site that with javascript search the current HTML target for matches. Basically I created a database with a search function. When a title appears that I like I click a link that drop downs the article. However when the page loads it defaults to showing the article. I would like that to not start. Sorry if that seems confusing.
Here is a fiddle of my site [a link] (http://jsfiddle.net/yNyW6/) Thanks for any help.
Also if I make a search that script will find it, but it will also show the " To Read" text that executes the script, for articles that were not supposed to be seen because they did not fit the search criteria. I would like the text not to show, but show only on the search that fits the criteria.
Any help to the code will be appreciated.  _________________ ^.^ |
|
| Back to top |
|
 |
Dr.Willy Apprentice

Joined: 15 Jul 2007 Posts: 287 Location: NRW, Germany
|
Posted: Sun Nov 11, 2012 6:40 pm Post subject: Re: Help with HTML5 and javascript site |
|
|
| silent_Walker wrote: | | Sorry if that seems confusing. |
Apology accepted.
… I still have no idea what you want though. |
|
| Back to top |
|
 |
silent_Walker n00b

Joined: 25 Jul 2012 Posts: 61 Location: forums.gentoo.org
|
Posted: Sun Nov 11, 2012 6:49 pm Post subject: Re: Help with HTML5 and javascript site |
|
|
| Dr.Willy wrote: | | silent_Walker wrote: | | Sorry if that seems confusing. |
Apology accepted.
… I still have no idea what you want though. |
If you look at my Fiddle, there is a lot of text below the title, I would like that to be hidden as soon as somebody visits the site. _________________ ^.^ |
|
| Back to top |
|
 |
_brian_ n00b

Joined: 02 Aug 2011 Posts: 16
|
Posted: Sun Nov 11, 2012 8:22 pm Post subject: Re: Help with HTML5 and javascript site |
|
|
| silent_Walker wrote: | | Dr.Willy wrote: | | silent_Walker wrote: | | Sorry if that seems confusing. |
Apology accepted.
… I still have no idea what you want though. |
If you look at my Fiddle, there is a lot of text below the title, I would like that to be hidden as soon as somebody visits the site. |
Your question is confusing. If you want something to be hidden you can set the css attribute 'display: none' (also jquery .hide()) or put them in <input type="hidden"> tags |
|
| Back to top |
|
 |
silent_Walker n00b

Joined: 25 Jul 2012 Posts: 61 Location: forums.gentoo.org
|
Posted: Sun Nov 11, 2012 8:56 pm Post subject: |
|
|
OMG, I fixed it by adding
$(".jfy").hide(); into the javascript "pull down" script. So now the paragraph does not show by default.
I just need to add something to the javascript "search" so it only shows the "To Read" "Or not To Read" for the specific query. _________________ ^.^ |
|
| Back to top |
|
 |
|