Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with HTML5 and javascript site
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
silent_Walker
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2012
Posts: 79
Location: forums.gentoo.org

PostPosted: Sun Nov 11, 2012 5:09 pm    Post subject: Help with HTML5 and javascript site Reply with quote

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. :D
_________________
^.^
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 324
Location: NRW, Germany

PostPosted: Sun Nov 11, 2012 6:40 pm    Post subject: Re: Help with HTML5 and javascript site Reply with quote

silent_Walker wrote:
Sorry if that seems confusing.

Apology accepted.

… I still have no idea what you want though.
Back to top
View user's profile Send private message
silent_Walker
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2012
Posts: 79
Location: forums.gentoo.org

PostPosted: Sun Nov 11, 2012 6:49 pm    Post subject: Re: Help with HTML5 and javascript site Reply with quote

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
View user's profile Send private message
_brian_
n00b
n00b


Joined: 02 Aug 2011
Posts: 16

PostPosted: Sun Nov 11, 2012 8:22 pm    Post subject: Re: Help with HTML5 and javascript site Reply with quote

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
View user's profile Send private message
silent_Walker
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2012
Posts: 79
Location: forums.gentoo.org

PostPosted: Sun Nov 11, 2012 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum