replacing text in a div

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
160
I am making a bio page for my website. A person's thumbnail is clicked, and then information about them is displayed in a div next to the picture. I am using "innerHTML" to make this happen.

1. what is the difference between innerHTML and Write ?

2. Can I call the bio text from an external document so that I can make it easy to include these paragraphs without having to clutter my javascript?

3. how can I make sure it is formatted?

PHP:
function fbClick(face)
{
  document.getElementById('fbExpand').src = team_images[face];
  fbShowContent(face);
}
function fbShowContent(content)
{
	var str = "meow moew moew moew meow";
	document.getElementById('companyArticle').innerHTML=str;
}

That is how I am doing it currently.


should i just use an external javascript page to load global string vars and call them?
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
160
and then I found Jquery and AJAX....

my problems went away. :)

Wish more people read this forum though >.<
 

UndeadDragon

Super Moderator
Reaction score
448
Wish more people read this forum though >.<

I don't know how I missed this one o_O

I try and reply to all of the questions here, so sorry I missed this... I have no idea why I did :p
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
160
No problamo! I'm trying not to burden the forums with useless questions as much as possible. I simply do not have as much time as I would like to research everything my own. I'm getting there though... :) site is taking on some functionality.
 

UndeadDragon

Super Moderator
Reaction score
448
No problamo! I'm trying not to burden the forums with useless questions as much as possible. I simply do not have as much time as I would like to research everything my own. I'm getting there though... :) site is taking on some functionality.

Useless questions are good, they allow me to feel useful! :p

I understand wanting to learn on your own though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top