Jump to content

DJ Zen Masta K

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DJ Zen Masta K's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. forgive my ignorance, but would that just change the content for the current div? how do i specify which div i want the content changed in?
  2. i was thinking along the lines of creating a file for each story and then including that particular page. for example: click on story1, it would tell the content div to clear out and include story1.php click on story2, it would tell the content div to clear out and include story2.php, etc...
  3. i thought this would be pretty simple, but i guess not. i have a very simple page that simply has the header, footer, a side column, and the main content area. in the side column, i want to have a menu that lists the names of some short stories, and when you click on one of them the main content div would change to include that particular story. i'm not really concerned with the entire page refreshing when you do this since the page is very simple and small to begin with, although if i can achieve this easily without having the entire page refresh it would be great. is there a way to do this easily in php?
  4. i should have listened to you to begin with. the jquery code works perfect. thanks!!!!!
  5. i added the onload to the body tag,and now something is happening. in both ie7 and firefox3 when i open the page the memory usage of it shoots way up and keeps going. within less than a minute it was from about 83,000 to almost 300,000. first time it froze up my computer before i realized it was happening, second time i had performance monitor running to check.
  6. thank you. replaced my old one with the new one you posted, still not working.
  7. i removed the html, head, and body tags from the includes, still not working. grrrr. maybe i should just stick to html
  8. okay. that is due to using the php include function to include other pages formated in html. i guess i should strip them of the html tags. something i never thought of. i'm learning as i go! good news, i have put in what you have told me to, and i'm not getting an error now. my ajax script is now: <script language="JavaScript" type="text/javascript"> function Ajax () { var xmlhttp=false; try { xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } alert(xmlhttp); xmlhttp.open("GET", "songinfo.php", true); xmlhttp.onreadystatechange = function ( ) { if ( xmlhttp.readyState == 4 ) { if (xmlhttp.status!=200) { alert('the request failed'); } document.getElementById('songinfo').innerHTML = xmlhttp.responseText; } else { document.getElementById('songinfo').innerHTML += '<br>ready state:' + xmlhttp.readyState; } }; return; } setInterval("Ajax()",10000); } </script> i greatyly appreciate you helping me on this.
  9. apologies for not clearly communicating. yes, i did add the code, that led to me getting the error. i will add the new code you suggested. thank you.
  10. firefox gives me: feel free to view the entire source code at http://totalxr.com/index3.php just ignore my messy css.
  11. okay, you're onto something. i get an [object] error every 10 seconds. should i replace "songinfo.php" with the full path? EDIT: nevermind, that doesn't work.
  12. also tried if ( xmlhttp.readyState == 4 ) { no dice ??? btw, i appreciate your help.
  13. okay, changing to if ( this.readyState == 4 ) { still not working.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.