Languages :: PHP :: AJAX: RESULT SHOULD DISPLAY PART OF WINDOWS IN A SECTION |
|||
| By: Peter162in |
Date: 26/02/2009 11:18:56 |
Points: 20 | Status: Answered Quality : Excellent |
|
<?php $list[]='0-9'; for ($ch=ord('A');$ch<=ord('Z');$ch++) { $list[]=chr($ch); } define('num_per_row','6'); $num_rows=count($list); define ("TB_COLOR_LIGHT","#EEF7FA"); define ("TB_COLOR_DARK","#DBE9EF"); $width=(100/num_per_row).'%'; echo '<table bgcolor="'.TB_COLOR_DARK.'" width="100%">'; for ($i=0;$i<$num_rows;$i++) { if (0==$i%num_per_row) { echo '<tr align="center" valign="middle">'; // open the row } echo '<td bgcolor="'.TB_COLOR_LIGHT.'" height="40" width="'.$width.'" nowrap>'; echo " <a HREF='high4.PHP?symbol1=$list[$i]'>"; echo $list[$i]; echo '</td>'; if ((num_per_row-1)==$i%num_per_row) // close the row { echo '</tr>'; } } ?> <style> .csslogin { border:solid 2px BLUE; width:1000px; height:1000px; } </style> <div class="indent indent_right topspacing bottomspacing"> <table class="documentBody"> </table> </div> <!-- Links --> <div class="sectionHeader">Links</div> <div class="indent indent_right topspacing bottomspacing"> <updatepanel id="myUpdate" class ="csslogin"> //my result should appears here </content> </updatepanel></div> <div class="bottomspacing"> <ul> </ul> </div> </body> </html> RESULT OF ## echo " <a HREF='high4.PHP?symbol1=$list[$i]'>"; echo $list[$i]; ## SHOULD DISPLAY IN BLOW THE RESULT PAGE THANKS IN ADVANCE PETER |
|||
| By: VGR | Date: 26/02/2009 20:08:51 | Type : Answer |
|
| valign and wrap don't exist in HTML echo " <a HREF='high4.PHP?symbol1=$list[$i]'>"; should be written: echo " <a href='high4.PHP?symbol1={$list[$i]}'>"; I don't see your AJAX part (the xmlhttprequets object and such) so you'd probably a good time reading my AJAX article at http://www.edainworks.com ;-)) |
|||
| By: OpConsole | Date: 03/04/2011 19:06:37 | Type : Comment |
|
| force close | |||
| By: Peter162in | Date: 05/04/2011 18:09:51 | Type : Comment |
|
| Sir, Thank you for replying... I used ajaxtabs and solved the problem.. I couldn't post it here.. Thank you I read your article really helpful.. Peter |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








