The plugin is great, I just cant get it to work in the manner I need, ... it does not seem to stop.
I have jQuery.js latest version, and I am currently using jquery.colorize.js for one of my tables on my page. To explain I am calling an ajax.load to a div.id ("#showPanel"). Before the ajax.load, I have a php mysql query creating my table dynamically from a db. So thru jquery I load my URL into div.id("#showpanel"). And this works like a charm. jQuery finest features. But my problem is that when I colorize this dynamic table, ... it leaks into the other html markup, .. and colorize-es my entire page and not just div.id("#showpanel"), .. how can I isolate covorize or tell colorize to stop/remove/
My markup below:
//here is my function that calls the URL where my query makes the dynamic table,...
function setAjaxQuery(urlVar) {
$("#showPanel").load("http://myURL/ajaxfunc.php"+urlVar).show('fast');
};
//here a php switch to complete my url and case for the query selection,...
switch ($_GET['ajaxfunc']){
case transDBQuery :
print transDBQuery($_GET['tablerow']);
break;
//After the switch this function queries my db and creates the table with the results,...
function transDBQuery($transponder){
?>
$DBQuery="SELECT * FROM outagedb WHERE network LIKE '%$transponder%' ORDER by id DESC";
$result=mysql_query($DBQuery);
$output = "";
$output .= "StartDateStartTimeEventDevice AffectedNetworkStopDateStopTimeTest";
while ($row=mysql_fetch_array($result))
{
$output .= "$row[startDate]$row[startTime]$row[event]$row[device_aff]$row[network]$row[stopDate]$row[stopTime]$row[outID]";
}
$output .= "";
return $output;
}
colorize leak
The plugin is great, I just cant get it to work in the manner I need, ... it does not seem to stop.
I have jQuery.js latest version, and I am currently using jquery.colorize.js for one of my tables on my page. To explain I am calling an ajax.load to a div.id ("#showPanel"). Before the ajax.load, I have a php mysql query creating my table dynamically from a db. So thru jquery I load my URL into div.id("#showpanel"). And this works like a charm. jQuery finest features. But my problem is that when I colorize this dynamic table, ... it leaks into the other html markup, .. and colorize-es my entire page and not just div.id("#showpanel"), .. how can I isolate covorize or tell colorize to stop/remove/
My markup below:
//here is my function that calls the URL where my query makes the dynamic table,...
function setAjaxQuery(urlVar) {
$("#showPanel").load("http://myURL/ajaxfunc.php"+urlVar).show('fast');
};
//here a php switch to complete my url and case for the query selection,...
switch ($_GET['ajaxfunc']){
case transDBQuery :
print transDBQuery($_GET['tablerow']);
break;
//After the switch this function queries my db and creates the table with the results,...
function transDBQuery($transponder){
?>
$('table').colorize(({bgColor:'##BCCAE5', hoverColor:'white', hiliteColor:'#BADEF6'})) ;
<?php
$DBQuery="SELECT * FROM outagedb WHERE network LIKE '%$transponder%' ORDER by id DESC";
$result=mysql_query($DBQuery);
$output = "";
$output .= "StartDateStartTimeEventDevice AffectedNetworkStopDateStopTimeTest";
while ($row=mysql_fetch_array($result))
{
$output .= "$row[startDate]$row[startTime]$row[event]$row[device_aff]$row[network]$row[stopDate]$row[stopTime]$row[outID]";
}
$output .= "";
return $output;
}
OpenTable();
echo "Query Results:";
CloseTable();