Jump to content

aliasneo86

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aliasneo86's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, i have used the header code to get a php report as a power point file. I have one little help that I need that is to make a new power point slide. here is my code below if some one can help me thank you in advance. <?php header("Content-Type: application/vnd.ms-powerpoint"); print '<table border="1"><tr><td><b>field1</b></td><td><b>field2</b></td></tr>'; print '<tr><td>value1 </td><td bgcolor="#137799">'."$x".'</td></tr></table>'; ?> alias...
  2. <HTML> <HEAD> <TITLE>OnClick alert message</TITLE> </SCRIPT> </HEAD> <BODY> <CENTER> <A HREF="" onclick="javascript: alert('Here is where you write what you want it to say');">Click Here!</A> </CENTER> </BODY> </HTML>
  3. is there a way to turn off the url from printing when printing a web page in IE? I know the way to do it from page set up is there a script I can use to automate this ??? focus on IE Thanks in advance
  4. Hi all, I have 2 php pages with same elements but they are organized in different ways I want to check one item in the first page and submit the form and the same element of the second page must be checked on page load. I can pass the value from php to java script so far what I have done is this <script type="text/javascript"> <!-- var ch1 = "<?php echo $ch1; ?>"; var ch2 = "<?php echo $ch2; ?>"; var ch3 = "<?php echo $ch3; ?>"; var ch4 = "<?php echo $ch4; ?>"; var ch5 = "<?php echo $ch5; ?>"; if(ch1 == 1){ document.form1.ch1.checked = true; }else{ document.form1.ch1.checked = false; } this is not working can any one help me with this issue? THANK YOU IN ADVANCE
  5. nope guys i got the css and JS combined and did it one things missing i cant make the printer page to be landscape by default.. Thnx for your help if u have any thing on the landscape issue plz tell me cheers
  6. i got a new way i can get unwonted things out now and get what i need prnted just need to get it fit to page <STYLE type="text/css"> @media print { .noprint { display: none ; } .page { size: 8.5in 11in; page: 8.5in 11in; size:portrait; } } </STYLE> from this .. any suggetions???
  7. I dont get it can you show me an example thnx for the reply
  8. I have a form with charts and i wana print the charts that is selected by the check box how can I do it ?? so far I have nothing. I can get charts in divs how can I print the div that is selected by the check box ??? i have attached the pic of the page thanks in advance [attachment deleted by admin]
  9. the html is attached [attachment deleted by admin]
  10. works on the normal html but when i implement it on my page its not working shall i attach my web html? can you assist me in this thanx for all the help u gave me so far
  11. the error msg pic code ==================== function calculate_total(className, div){ var elements = document.getElementsByClassName(className); var total = 0; for(var i = 0; i < elements.length; ++i){ total += parseInt(elements.value); } alert ("test"); document.getElementById(div).innerHTML = "Total: " + total; } text box <input style="WIDTH: 88px; HEIGHT: 22px; TEXT-ALIGN: right" maxlength="20" size="12" value="{amount}" name="{amount_Name}" id="{amount_Name} class="addition_textbox""> ====================== [attachment deleted by admin]
  12. is that the only change? because even so its not working plz help
  13. can you see what wrong in this that i used ur own code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript"> function calculate_total(className, div){ var elements = document.getElementsByClassName(addition_textbox); var total = 0; for(var i = 0; i < elements.length; ++i){ total += parseInt(elements.value); } document.getElementById(div).innerHTML = "Total: " + total; } </script> </head> <body> <form name="form1" method="get"> <input type="text" name="box1" id="box1" class="addition_textbox" value="4" /><br /> <input type="text" name="box2" id="box2" class="addition_textbox" value="1" /><br /> <input type="text" name="box3" id="box3" class="addition_textbox" value="14" /><br /> <input type="text" name="box4" id="box4" class="addition_textbox" value="214" /><br /> <input type="text" name="box5" id="box5" class="addition_textbox" value="2" /><br /> <input type="text" name="box6" id="box6" class="addition_textbox" value="8" /><br /> <input type="text" name="box7" id="box7" class="addition_textbox" value="3" /><br /> <input type="text" name="box8" id="box8" class="addition_textbox" value="16" /><br /><br /> <input type="submit" name="calculate" id="calculate" value="Calculate Total" onclick="calculate_total('addition_textbox', 'total_text')" /><br /> <div id="total_text"></div> </form> </html>
×
×
  • 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.