Hi,

My page structure looks like this:

home
   - <div id="menu1">menu 1</div>
      - <div id="submenu1_1">submenu 1.1 (RSS content)</div>
      - submenu 1.2
      - submenu 1.3
   - menu 2

and so on. I am trying to load RSS content in submenu 1.1 page when
menu 1 is clicked.

So my javascript looks like this:

addEventListener("load", function(e) {
   var menu1 = document.getElementById("menu1");
   menu1.addEventListener("click", showRSS, false);

   function showRSS(e) {
      var rss_container = document.getElementById("submenu1_1");
      RSS_Load_Function();
   }
}, true);

The problem I got is the "rss_container". It is null so that I cannot
load RSS feed inside the submenu1_1 container.

How can I solve this?

Thanks,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to