Jump to content

tushar707

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tushar707's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have solved both problems just today for my website. I will help you out. Okay as far as the loading content into iframe. here it is. <iframe src="thing.html" name="content"></iframe> The name is the important part. now in the link do this: <a href="homepage.html" target="content"> the target and name should be the same. to auto adjust the height. go here: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm (Id and name are two different commands for iframe) I used this to solve the auto adjust the height, and it works great with almost every browser. IE, Firefox have given me no problems.
  2. please close the topic as I have solved it.
  3. Hello, I have an iframe that changes its content according to the menu. How do I have the iFrame adjust its height according to content? Also how do I have the content area where the iframe is located to adjust its height according to the iframe? -tushar
  4. Hello, I have made a website at my-prana.com/test which has a menu on the left. When someone clicks on a link, I want only content to load on the right. I dont want the whole page to load again. the content will be on php pages, which will be called by the link to load when it is clicked. I posted this on the javascript topic, but they told me to come here. I have never used ajax, so please let me know what I need to do to make this possible. Here is the code for my menu.php: <dl id="menu"> <dt onclick="javascript:montre('smenu1');"><a href="index.php">Home</a></dt> <dt onclick="javascript:montre('smenu2');"><a href="#">Our Programs</a></dt> <dd id="smenu2"> <ul> <li><a href="#">Sous-Menu 2.1</a></li> <li><a href="#">Sous-Menu 2.2</a></li> <li><a href="#">Sous-Menu 2.3</a></li> </ul> </dd> <dt onclick="javascript:montre('smenu3');"><a href="#">Resources</a></dt> <dd id="smenu3"> <ul> <li><a href="#">Newsletters</a></li> <li><a href="#">My Articles </a></li> <li><a href="#">Useful Links </a></li> </ul> </dd> <dt onclick="javascript:montre('smenu4');"><a href="#">Upcoming Events</a></dt> <dd id="smenu4"> <ul> <li><a href="#">Sous-Menu 4.1</a></li> <li><a href="#">Sous-Menu 4.2</a></li> </ul> </dd> <dt onclick="javascript:montre('smenu5');"><a href="#">Testimonials</a></dt> <dt onclick="javascript:montre('smenu6);"><a href="#">About Me</a></dt> <dt onclick="javascript:montre('smenu7');"><a href="#">Contact Us</a></dt> </dl>
  5. I am a little confused. if you check out my-prana.com/test you will see that there is a menu on the left and space for content on the right. the content will be on different pages, but when someone click on the menu, on the content should be loaded again. I am little confused how to use what you told me mainewoods. Can you tell me exactly what to do on my menu.php file which I have included below. The php include command i want to use for the content is: <?php include("content.php"); ?> if this is the link <dt onclick="javascript:montre('smenu1');"><a href="#">Home</a></dt> What do I need to do to it exactly. i am new to this, so all the help is appreciated.
  6. okay. I dont think that innerHTML is going to work anymore, Because my menu is a little different. innerHTML is not working anymore. Is there a doOnClick thing for javascript that I can use to change the content. There is an example of this at my-prana.com. I really hope you can help me out with that. Also, using javascript, can I put phpinclude within it? Here is my menu.php <dl id="menu"> <dt onclick="javascript:montre('smenu1');"><a href="#">Home</a></dt> <dt onclick="javascript:montre('smenu2');"><a href="#">Our Programs</a></dt> <dd id="smenu2"> <ul> <li><a href="#">Sous-Menu 2.1</a></li> <li><a href="#">Sous-Menu 2.2</a></li> <li><a href="#">Sous-Menu 2.3</a></li> </ul> </dd> <dt onclick="javascript:montre('smenu3');"><a href="#">Resources</a></dt> <dd id="smenu3"> <ul> <li><a href="#">Sous-Menu 3.1</a></li> <li><a href="#">Sous-Menu 3.1</a></li> <li><a href="#">Sous-Menu 3.1</a></li> <li><a href="#">Sous-Menu 3.1</a></li> <li><a href="#">Sous-Menu 3.1</a></li> <li><a href="#">Sous-Menu 3.1</a></li> </ul> </dd> <dt onclick="javascript:montre('smenu4');"><a href="#">Upcoming Events</a></dt> <dd id="smenu4"> <ul> <li><a href="#">Sous-Menu 4.1</a></li> <li><a href="#">Sous-Menu 4.1</a></li> </ul> </dd> <dt onclick="javascript:montre('smenu5');"><a href="#">Testimonials</a></dt> <dt onclick="javascript:montre('smenu6);"><a href="#">About Me</a></dt> <dt onclick="javascript:montre('smenu7');"><a href="#">Contact Us</a></dt> </dl>
  7. is there any way I can do a php include command within innerhtml, because I am sort of new to this include command and am not sure what you mean by urlencode() or htmlentities()
  8. okay. That works fine. However, can I attached php include within? Also, I am having another problem. I cannot attach a style within it. What should I do. I am looking for total flexibility. If innerHTML cannot give me that, do you have any other recommendations?
  9. If I just type in text, and nothing else it works perfectly the way I want to. However, whenever I have html imbeded in the innerhtml command nothing works. Am I using the quotations right? For example this works: <li><a href="#" onclick="document.getElementById('content').innerHTML = 'This is a test';">Home</a> </li>[ But this does NOT: <li><a href="#" onclick="document.getElementById('content').innerHTML = '<strong><em>This is a test</em></strong>';">Home</a> </li>[
  10. Hello, I decided to start a new post because it was not related to the other topic. I am having trouble using innerHTML. How do I use php include command within innerHTML? How do i use HTML within innerHTML? Whenever I just copy and paste the html, it doesn't work! Any help will be appreciated. Like can I do this <li><a href="#" onclick="document.getElementById('content').innerHTML = '<?php include("test.php"); ?>';">Home</a> </li> Or this? <li><a href="#" onclick="document.getElementById('content').innerHTML = '<strong><em>This is a test</em></strong>';">Home</a> </li>[ Because when I do it doesn't work.
  11. is there a substitute to "innerHTML" because include doesn't slow the website
  12. can you post how you use html within includes, because I dont seem to be able to do it. Like can you post your include command with the sample content?
  13. anybody else who can help me?
  14. thats not fixing the problem.
  15. sorry to post so many things but also my css menu works fine in firefox but looks terrible in IE. whats up with that! any help will be appreciated.
×
×
  • 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.