Jump to content


Photo

Jquery To Print Content On Hyperlink


  • Please log in to reply
2 replies to this topic

#1 yandoo

yandoo

    Advanced Member

  • Members
  • PipPipPip
  • 470 posts

Posted 04 December 2012 - 09:29 AM

Hiya,

Hi there I was hoping for a little guidance if possible..

On my website I have a small area that shows "Most Popular" and underneath I have 4 hyperlinks: Blogs, Tips, News, Videos. i want it so that if the user clicks the hyperlink it prints the appropriate content below. the actual content would rarely need to be updated so can be hard coded.

I'm new to jquery so if someone could help me that would be super.

Thank You :)

#2 Pikachu2000

Pikachu2000

    I hate everything.

  • Staff Alumni
  • 11,378 posts
  • LocationFuture Independent Republic of Texas
  • Age:106

Posted 04 December 2012 - 09:37 AM

Contrary to what you were told in the other thread, I would not use this approach for something this simple*, that remains essentially static. There's no reason you can't do this with php.

*unless your goal is to do it without a page refresh.
"Java" is to "Javascript" about the same as "fun" is to "funeral".

Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *

Random Quote: "

#3 yandoo

yandoo

    Advanced Member

  • Members
  • PipPipPip
  • 470 posts

Posted 04 December 2012 - 10:01 AM

Thank you fo your reply, I think i'd like to do it witgh a jquery after all as the page wont reload each time. i've bloomin done it too with help of this tutorial (incase any other newbies out there wanting to acheive similar results).

http://travisdazell.hubpages.com/hub/javascript-examples

Big thanks to you all, this forum has helped me learn so much over the years! :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com