visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: AJAX: RESULT SHOULD DISPLAY PART OF WINDOWS IN A SECTION


By: Peter162in India  Date: 26/02/2009 11:18:56  English  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 English  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 English  Type : Comment
force close
By: Peter162in Date: 05/04/2011 18:09:51 English  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

EContact
browser fav
page generated in 307.472940 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page