Topic: Data Overload?

Hey folks, hope to get a hand here.

I have an XAJAX button, that dynamically generates a form in the active page that has another xajax call, this whole thing is dancing between JQuery and XAJAX so it's a little helter-skelter.

Anyway, my problem is that it keeps filling up the 'MaxObjectSize' variable with garbage, or what seems to be garbage, always 20 bytes over what I set MaxObjectSize to.

It looks like it's trying to take the entire bloody browser chrome into xajax! Any clues?

<xjxobj>
<e><k>accept</k><v>S</v></e>
<e><k>alt</k><v>S</v></e>
<e><k>autocomplete</k><v>S</v></e>
<e><k>autofocus</k><v>Bfalse</v></e>
<e><k>defaultChecked</k><v>Bfalse</v></e>
<e><k>checked</k><v>Bfalse</v></e>
<e><k>disabled</k><v>Bfalse</v></e>
<e><k>form</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>files</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>formAction</k><v>S</v></e>
<e><k>formEnctype</k><v>S</v></e>
<e><k>formMethod</k><v>S</v></e>
<e><k>formNoValidate</k><v>Bfalse</v></e>
<e><k>formTarget</k><v>S</v></e>
<e><k>height</k><v>N16</v></e>
<e><k>indeterminate</k><v>Bfalse</v></e>
<e><k>list</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>max</k><v>S</v></e>
<e><k>maxLength</k><v>N-1</v></e>
<e><k>min</k><v>S</v></e>
<e><k>multiple</k><v>Bfalse</v></e>
<e><k>name</k><v>SsearchCNAME</v></e>
<e><k>pattern</k><v>S</v></e>
<e><k>placeholder</k><v>S</v></e>
<e><k>readOnly</k><v>Bfalse</v></e>
<e><k>required</k><v>Bfalse</v></e>
<e><k>size</k><v>N20</v></e>
<e><k>src</k><v>S</v></e>
<e><k>step</k><v>S</v></e>
<e><k>type</k><v>Stext</v></e>
<e><k>defaultValue</k><v>S</v></e>
<e><k>value</k><v>SLittle</v></e>
<e><k>valueAsDate</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>valueAsNumber</k><v>NNaN</v></e>
<e><k>width</k><v>N200</v></e>
<e><k>willValidate</k><v>Btrue</v></e>
<e><k>validity</k><v>
<xjxobj>
<e><k>valueMissing</k><v>Bfalse</v></e>
<e><k>typeMismatch</k><v>Bfalse</v></e>
<e><k>patternMismatch</k><v>Bfalse</v></e>
<e><k>tooLong</k><v>Bfalse</v></e>
<e><k>rangeUnderflow</k><v>Bfalse</v></e>
<e><k>rangeOverflow</k><v>Bfalse</v></e>
<e><k>stepMismatch</k><v>Bfalse</v></e>
<e><k>customError</k><v>Bfalse</v></e>
<e><k>valid</k><v>Btrue</v></e>
</xjxobj>
</v></e>
<e><k>validationMessage</k><v>S</v></e>
<e><k>selectionStart</k><v>N6</v></e>
<e><k>selectionEnd</k><v>N6</v></e>
<e><k>selectionDirection</k><v>Sforward</v></e>
<e><k>align</k><v>S</v></e>
<e><k>useMap</k><v>S</v></e>
<e><k>controllers</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>textLength</k><v>N6</v></e>
<e><k>title</k><v>S</v></e>
<e><k>lang</k><v>S</v></e>
<e><k>dir</k><v>S</v></e>
<e><k>dataset</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>itemScope</k><v>Bfalse</v></e>
<e><k>itemType</k><v>
<xjxobj>
<e><k>value</k><v>S</v></e>
<e><k>length</k><v>N0</v></e>
</xjxobj>
</v></e>
<e><k>itemId</k><v>S</v></e>
<e><k>itemRef</k><v>
<xjxobj>
<e><k>value</k><v>S</v></e>
<e><k>length</k><v>N0</v></e>
</xjxobj>
</v></e>
<e><k>itemProp</k><v>
<xjxobj>
<e><k>value</k><v>S</v></e>
<e><k>length</k><v>N0</v></e>
</xjxobj>
</v></e>
<e><k>properties</k><v>
<xjxobj>
<e><k>names</k><v>
<xjxobj>
<e><k>length</k><v>N0</v></e>
</xjxobj>
</v></e>
<e><k>length</k><v>N0</v></e>
</xjxobj>
</v></e>
<e><k>itemValue</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>hidden</k><v>Bfalse</v></e>
<e><k>tabIndex</k><v>N0</v></e>
<e><k>accessKey</k><v>S</v></e>
<e><k>accessKeyLabel</k><v>S</v></e>
<e><k>draggable</k><v>Bfalse</v></e>
<e><k>contentEditable</k><v>Sinherit</v></e>
<e><k>isContentEditable</k><v>Bfalse</v></e>
<e><k>contextMenu</k><v>
<xjxobj>
</xjxobj>
</v></e>
<e><k>spellcheck</k><v>Bfalse</v></e>
<e><k>style</k><v>
<xjxobj>
<e><k>0</k><v>Swidth</v></e>
<e><k>MozAppearance</k><v>S</v></e>
<e><k>MozOutlineRadius</k><v>S</v></e>
<e><k>MozOutlineRadiusTopleft</k><v>S</v></e>
<e><k>MozOutlineRadiusTopright</k><v>S</v></e>
<e><k>MozOutlineRadiusBottomright</k><v>S</v></e>
<e><k>MozOutlineRadiusBottomleft</k><v>S</v></e>
<e><k>MozTabSize</k><v>S</v></e>
<e><k>animation</k><v>S</v></e>
<e><k>animationDelay</k><v>S</v></e>
<e><k>animationDirection</k><v>S</v></e>
<e><k>animationDuration</k><v>S</v></e>
<e><k>animationFillMode</k><v>S</v></e>
<e><k>animationIterationCount</k><v>S</v></e>
<e><k>animationName</k><v>S</v></e>
<e><k>animationPlayState</k><v>S</v></e>
<e><k>animationTimingFunction</k><v>S</v></e>
<e><k>background</k><v>S</v></e>
<e><k>backgroundAttachment</k><v>S</v></e>
<e><k>backgroundClip</k><v>S</v></e>
<e><k>backgroundColor</k><v>S</v></e>
<e><k>backgroundImage</k><v>S</v></e>
<e><k>MozBackgroundInlinePolicy</k><v>S</v></e>
<e><k>backgroundOrigin</k><v>S</v></e>
<e><k>backgroundPosition</k><v>S</v></e>
<e><k>backgroundRepeat</k><v>S</v></e>
<e><k>backgroundSize</k><v>S</v></e>
<e><k>MozBinding</k><v>S</v></e>
<e><k>border</k><v>S</v></e>
<e><k>borderBottom</k><v>S</v></e>
<e><k>borderBottomColor</k><v>S</v></e>
<e><k>MozBorderBottomColors</k><v>S</v></e>
<e><k>borderBottomStyle</k><v>S</v></e>
<e><k>borderBottomWidth</k><v>S</v></e>
<e><k>borderCollapse</k><v>S</v></e>
<e><k>borderColor</k><v>S</v></e>
<e><k>MozBorderEnd</k><v>S</v></e>
<e><k>MozBorderEndColor</k><v>S</v></e>
<e><k>MozBorderEndStyle</k><v>S</v></e>
<e><k>MozBorderEndWidth</k><v>S</v></e>
<e><k>borderImage</k><v>S</v></e>
<e><k>borderImageSource</k><v>S</v></e>
<e><k>borderImageSlice</k><v>S</v></e>
<e><k>borderImageWidth</k><v>S</v></e>
<e><k>borderImageOutset</k><v>S</v></e>
<e><k>borderImageRepeat</k><v>S</v></e>
<e><k>borderLeft</k><v>S</v></e>
<e><k>borderLeftColor</k><v>S</v></e>
<e><k>MozBorderLeftColors</k><v>S</v></e>
<e><k>borderLeftStyle</k><v>S</v></e>
<e><k>borderLeftWidth</k><v>S</v></e>
<e><k>borderRight</k><v>S</v></e>
<e><k>borderRightColor</k><v>S</v></e>
<e><k>MozBorderRightColors</k><v>S</v></e>
<e><k>borderRightStyle</k><v>S</v></e>
<e><k>borderRightWidth</k><v>S</v></e>
<e><k>borderSpacing</k><v>S</v></e>
<e><k>MozBorderStart</k><v>S</v></e>
<e><k>MozBorderStartColor</k><v>S</v></e>
<e><k>MozBorderStartStyle</k><v>S</v></e>
<e><k>MozBorderStartWidth</k><v>S</v></e>
<e><k>borderStyle</k><v>S</v></e>
<e><k>borderTop</k><v>S</v></e>
<e><k>borderTopColor</k><v>S</v></e>
<e><k>MozBorderTopColors</k><v>S</v></e>
<e><k>borderTopStyle</k><v>S</v></e>
<e><k>borderTopWidth</k><v>S</v></e>
<e><k>borderWidth</k><v>S</v></e>
<e><k>borderRadius</k><v>S</v></e>
<e><k>borderTopLeftRadius</k><v>S</v></e>
<e><k>borderTopRightRadius</k><v>S</v></e>
<e><k>borderBottomRightRadius</k><v>S</v></e>
<e><k>borderBottomLeftRadius</k><v>S</v></e>
<e><k>bottom</k><v>S</v></e>
<e><k>boxShadow</k><v>S</v></e>
<e><k>MozBoxSizing</k><v>S</v></e>
<e><k>captionSide</k><v>S</v></e>
<e><k>clear</k><v>S</v></e>
<e><k>clip</k><v>S</v></e>
<e><k>color</k><v>S</v></e>
<e><k>MozColumns</k><v>S</v></e>
<e><k>MozColumnCount</k><v>S</v></e>
<e><k>MozColumnFill</k><v>S</v></e>
<e><k>MozColumnWidth</k><v>S</v></e>
<e><k>MozColumnGap</k><v>S</v></e>
<e><k>MozColumnRule</k><v>S</v></e>
<e><k>MozColumnRuleColor</k><v>S</v></e>
<e><k>MozColumnRuleStyle</k><v>S</v></e>
<e><k>MozColumnRuleWidth</k><v>S</v></e>
<e><k>content</k><v>S</v></e>
<e><k>counterIncrement</k><v>S</v></e>
<e><k>counterReset</k><v>S</v></e>
<e><k>cursor</k><v>S</v></e>
<e><k>direction</k><v>S</v></e>
<e><k>display</k><v>S</v></e>
<e><k>emptyCells</k><v>S</v></e>
<e><k>alignItems</k><v>S</v></e>
<e><k>alignSelf</k><v>S</v></e>
<e><k>flex</k><v>S</v></e>
<e><k>flexBasis</k><v>S</v></e>
<e><k>flexDirection</k><v>S</v></e>
<e><k>flexGrow</k><v>S</v></e>
<e><k>flexShrink</k><v>S</v></e>
<e><k>order</k><v>S</v></e>
<e><k>justifyContent</k><v>S</v></e>
<e><k>cssFloat</k><v>S</v></e>
<e><k>MozFloatEdge</k><v>S</v></e>
<e><k>font</k><v>S</v></e>
<e><k>fontFamily</k><v>S</v></e>
<e><k>MozFontFeatureSettings</k><v>S</v></e>
<e><k>MozFontLanguageOverride</k><v>S</v></e>
<e><k>fontSize</k><v>S</v></e>
<e><k>fontSizeAdjust</k><v>S</v></e>
<e><k>fontStretch</k><v>S</v></e>
<e><k>fontStyle</k><v>S</v></e>
<e><k>fontVariant</k><v>S</v></e>
<e><k>fontWeight</k><v>S</v></e>
<e><k>MozForceBrokenImageIcon</k><v>S</v></e>
<e><k>height</k><v>S</v></e>
<e><k>MozImageRegion</k><v>S</v></e>
<e><k>imeMode</k><v>S</v></e>
<e><k>left</k><v>S</v></e>
<e><k>letterSpacing</k><v>S</v></e>
<e><k>lineHeight</k><v>S</v></e>
<e><k>listStyle</k><v>S</v></e>
<e><k>listStyleImage</k><v>S</v></e>
<e><k>listStylePosition</k><v>S</v></e>
<e><k>listStyleType</k><v>S</v></e>
<e><k>margin</k><v>S</v></e>
<e><k>marginBottom</k><v>S</v></e>
<e><k>MozMarginEnd</k><v>S</v></e>
<e><k>marginLeft</k><v>S</v></e>
<e><k>marginRight</k><v>S</v></e>
<e><k>MozMarginStart</k><v>S</v></e>
<e><k>marginTop</k><v>S</v></e>
<e><k>markerOffset</k><v>S</v></e>
<e><k>marks</k><v>S</v></e>
<e><k>maxHeight</k><v>S</v></e>
<e><k>maxWidth</k><v>S</v></e>
<e><k>minHeight</k><v>S</v></e>
<e><k>minWidth</k><v>S</v></e>
<e><k>opacity</k><v>S</v></e>
<e><k>MozOrient</k><v>S</v></e>
<e><k>orphans</k><v>S</v></e>
<e><k>outline</k><v>S</v></e>
<e><k>outlineColor</k><v>S</v></e>
<e><k>outlineStyle</k><v>S</v></e>
<e><k>outlineWidth</k><v>S</v></e>
<e><k>outlineOffset</k><v>S</v></e>
<e><k>overflow</k><v>S</v></e>
<e><k>overflowX</k><v>S</v></e>
<e><k>overflowY</k><v>S</v></e>
<e><k>padding</k><v>S</v></e>
<e><k>paddingBottom</k><v>S</v></e>
<e><k>MozPaddingEnd</k><v>S</v></e>
<e><k>paddingLeft</k><v>S</v></e>
<e><k>paddingRight</k><v>S</v></e>
<e><k>MozPaddingStart</k><v>S</v></e>
<e><k>paddingTop</k><v>S</v></e>
<e><k>page</k><v>S</v></e>
<e><k>pageBreakAfter</k><v>S</v></e>
<e><k>pageBreakBefore</k><v>S</v></e>
<e><k>pageBreakInside</k><v>S</v></e>
<e><k>pointerEvents</k><v>S</v></e>
<e><k>position</k><v>S</v></e>
<e><k>quotes</k><v>S</v></e>
<e><k>resize</k><v>S</v></e>
<e><k>right</k><v>S</v></e>
<e><k>size</k><v>S</v></e>
<e><k>tableLayout</k><v>S</v></e>
<e><k>textAlign</k><v>S</v></e>
<e><k>MozTextAlignLast</k><v>S</v></e>
<e><k>textDecoration</k><v>S</v></e>
<e><k>MozTextBlink</k><v>S</v></e>
<e><k>MozTextDecorationColor</k><v>S</v></e>
<e><k>MozTextDecorationLine</k><v>S</v></e>
<e><k>MozTextDecorationStyle</k><v>S</v></e>
<e><k>textIndent</k><v>S</v></e>
<e><k>textOverflow</k><v>S</v></e>
<e><k>textShadow</k><v>S</v></e>
<e><k>MozTextSizeAdjust</k><v>S</v></e>
<e><k>textTransform</k><v>S</v></e>
<e><k>transform</k><v>S</v></e>
<e><k>transformOrigin</k><v>S</v></e>
<e><k>perspectiveOrigin</k><v>S</v></e>
<e><k>perspective</k><v>S</v></e>
<e><k>transformStyle</k><v>S</v></e>
<e><k>backfaceVisibility</k><v>S</v></e>
<e><k>top</k><v>S</v></e>
<e><k>transition</k><v>S</v></e>
<e><k>transitionDelay</k><v>S</v></e>
<e><k>transitionDuration</k><v>S</v></e>
<e><k>transitionProperty</k><v>S</v></e>
<e><k>transitionTimingFunction</k><v>S</v></e>
<e><k>unicodeBidi</k><v>S</v></e>
<e><k>MozUserFocus</k><v>S</v></e>
<e><k>MozUserInput</k><v>S</v></e>
<e><k>MozUserModify</k><v>S</v></e>
<e><k>MozUserSelect</k><v>S</v></e>
<e><k>verticalAlign</k><v>S</v></e>
<e><k>visibility</k><v>S</v></e>
<e><k>whiteSpace</k><v>S</v></e>
<e><k>widows</k><v>S</v></e>
<e><k>width</k><v>S200px</v></e>
<e><k>MozWindowShadow</k><v>S</v></e>
<e><k>wordBreak</k><v>S</v></e>
<e><k>wordSpacing</k><v>S</v></e>
<e><k>wordWrap</k><v>S</v></e>
<e><k>MozHyphens</k><v>S</v></e>
<e><k>zIndex</k><v>S</v></e>
<e><k>MozBoxAlign</k><v>S</v></e>
<e><k>MozBoxDirection</k><v>S</v></e>
<e><k>MozBoxFlex</k><v>S</v></e>
<e><k>MozBoxOrient</k><v>S</v></e>
<e><k>MozBoxPack</k><v>S</v></e>
<e><k>MozBoxOrdinalGroup</k><v>S</v></e>
<e><k>MozStackSizing</k><v>S</v></e>
<e><k>clipPath</k><v>S</v></e>
<e><k>clipRule</k><v>S</v></e>
<e><k>colorInterpolation</k><v>S</v></e>
<e><k>colorInterpolationFilters</k><v>S</v></e>
<e><k>dominantBaseline</k><v>S</v></e>
<e><k>fill</k><v>S</v></e>
<e><k>fillOpacity</k><v>S</v></e>
<e><k>fillRule</k><v>S</v></e>
<e><k>filter</k><v>S</v></e>
<e><k>floodColor</k><v>S</v></e>
<e><k>floodOpacity</k><v>S</v></e>
<e><k>imageRendering</k><v>S</v></e>
<e><k>lightingColor</k><v>S</v></e>
<e><k>marker</k><v>S</v></e>
<e><k>markerEnd</k><v>S</v></e>
<e><k>markerMid</k><v>S</v></e>
<e><k>markerStart</k><v>S</v></e>
<e><k>mask</k><v>S</v></e>
<e><k>shapeRendering</k><v>S</v></e>
<e><k>stopColor</k><v>S</v></e>
<e><k>stopOpacity</k><v>S</v></e>
<e><k>stroke</k><v>S</v></e>
<e><k>strokeDasharray</k><v>S</v></e>
<e><k>strokeDashoffset</k><v>S</v></e>
<e><k>strokeLinecap</k><v>S</v></e>
<e><k>strokeLinejoin</k><v>S</v></e>
<e><k>strokeMiterlimit</k><v>S</v></e>
<e><k>strokeOpacity</k><v>S</v></e>
<e><k>strokeWidth</k><v>S</v></e>
<e><k>textAnchor</k><v>S</v></e>
<e><k>textRendering</k><v>S</v></e>
<e><k>vectorEffect</k><v>S</v></e>
<e><k>MozTransform</k><v>S</v></e>
<e><k>MozTransformOrigin</k><v>S</v></e>
<e><k>MozPerspectiveOrigin</k><v>S</v></e>
<e><k>MozPerspective</k><v>S</v></e>
<e><k>MozTransformStyle</k><v>S</v></e>
<e><k>MozBackfaceVisibility</k><v>S</v></e>
<e><k>MozBorderImage</k><v>S</v></e>
<e><k>MozTransition</k><v>S</v></e>
<e><k>MozTransitionDelay</k><v>S</v></e>
<e><k>MozTransitionDuration</k><v>S</v></e>
<e><k>MozTransitionProperty</k><v>S</v></e>
<e><k>MozTransitionTimingFunction</k><v>S</v></e>
<e><k>MozAnimation</k><v>S</v></e>
<e><k>MozAnimationDelay</k><v>S</v></e>
<e><k>MozAnimationDirection</k><v>S</v></e>
<e><k>MozAnimationDuration</k><v>S</v></e>
<e><k>MozAnimationFillMode</k><v>S</v></e>
<e><k>MozAnimationIterationCount</k><v>S</v></e>
<e><k>MozAnimationName</k><v>S</v></e>
<e><k>MozAnimationPlayState</k><v>S</v></e>
<e><k>MozAnimationTimingFunction</k><v>S</v></e>
<e><k>cssText</k><v>S<![CDATA[width: 200px;]]></v></e>
<e><k>length</k><v>N1</v></e>
<e><k>parentRule</k><v>
<xjxobj>

Re: Data Overload?

Strange...

Could you post the code?

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

Hey Ed, long time no see! Glad to see you're still kickin' around! big_smile

On to the nitty gritty:

Here's the function that generates the div, pretty simple really, pay attention to the onclick of the filterbutton search

function getCustomerLookup($insertNode, $returnNode, $salesRep = null, $company = null){
    $objResponse =& new xajaxResponse();
    $returnHTML .= "<div style='top:20px;left:10px; overflow: auto; height: 290px; width: 620px;'>\r\n";
    //$returnHTML .= "<form id='frmConsSearch' name='frmConsSearch' method='post' action='" . $_SERVER['PHP_SELF'] . "' onsubmit='searchCust()'>\r\n";
    $returnHTML .= "<table class='keys' border=0>\r\n";
    $returnHTML .= "<tr>\r\n";
    $returnHTML .= "<td style = 'color: #FF0000; font-weight: bold;'>*</td>\r\n";
    $returnHTML .= "<td>Customer Name</td>\r\n";
    $returnHTML .= "<td>";
    $returnHTML .= "<input type='text' id='searchCNAME' name='searchCNAME' style='width:200px;' />";
    //$returnHTML .= "<input type='hidden' id='referring_field' name='referring_field' value = ''/>";
    $returnHTML .= "</td>\r\n";
    $returnHTML .= '<td><button id="filterbutton" type="button" value="Search" onclick = "xajax_findName(' . "'" . $salesRep . "'" .', document.getElementById(' . "'" . 'searchCNAME' . "'" . '), ' . "'" . $company . "'" . ')">Search</button></td>' . "\r\n";
    $returnHTML .= "</tr>\r\n";
    $returnHTML .= "</table>\r\n";
    $returnHTML .= "<div name = 'customer_lookup_results' id = 'customer_lookup_results'>\r\n";
    $returnHTML .= "<table border=1 style='width:603px; margin-top: 1.5em;'>\r\n";
    $returnHTML .= "<tr>\r\n";
    $returnHTML .= "<th>Customer Name</th>\r\n";
    $returnHTML .= "<th>Sales Rep Name</th>\r\n";
    $returnHTML .= "</tr>\r\n";
    $returnHTML .= "</table>\r\n";
    $returnHTML .= "</div>";
    //$returnHTML .= "</form>\r\n";
    $returnHTML .= "</div>\r\n";
    $objResponse->assign($insertNode, "innerHTML", $returnHTML);
    //$objResponse->assign($insertNode, "style.display")
    $objResponse->script("openMask('#mask', '#" . $insertNode . "');");
    return $objResponse;
}

It comes out clean in the Dom, it was the only way to prevent a wierd bug which had &quot; spitting out from xajax.

And when it calles that function, it spits out the insane-asylum speak you saw in my prior post.

function findName ($slsrepno = 0, $custnamepartial, $cono = 0){
    session_start();

    $objResponse =& new xajaxResponse();

    //disallow caching
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");

    $returnHTML = "";
    
    $custnamepartial = '%' . strtoupper($custnamepartial) . '%';
    
    $targetArray = array($custnamepartial);

    $cusnamequery = "[Select statement here]";
    
    if(isset($cono) && $cono != '' && is_numeric($cono) && $cono > 0){
        $cusnamequery .= " [Where build here]";
        $targetArray[] = $cono;
    }
    if(isset($slsrepno) && $slsrepno != '' && is_numeric($slsrepno) && $slsrepno > 0){
        $cusnamequery .= " [Where build here]";
        $targetArray[] = $slsrepno;
    }

    $stmt_loc = [Prepare Query];

    if(!$stmt_loc){
        ob_start();
        var_dump($targetArray);
        $result = ob_get_clean();

        [generate an error and die]
    }
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    if([If the SQL statement cannot be executed]){
        [Close Database Connection];

        ob_start();
        var_dump($targetArray);
        $result = ob_get_clean();

        [generate an error and die]
    }
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
    $i = 0;
    $row = [Draw SQL data from generated array];
    do{
        $testrow[$i] = $row;
        $i++;
        //AJAX indefinite loop protection
        if($i == 10000){
            break;
        }
    }while ([There are rows in the SQL data]);
    

    if($testrow){
        $returnHTML .= "<div name = 'customer_lookup_results' id = 'customer_lookup_results'>";
        $returnHTML .= "<table border=1 style=\'width:603px; margin-top: 1.5em;\'>";
        $returnHTML .= "<tr>";
        $returnHTML .= "<th>Customer Name</th>";
        $returnHTML .= "<th>Sales Rep Name</th>";
        $returnHTML .= "</tr>";
        foreach ($testrow AS $row){
            $returnHTML .= "<tr>";
            $returnHTML .= "<td><a href = '#' onclick = 'xajax_sendAndClose(\"" . $row[0] . "\")'>" . $row[1] . "</a></td>";
            $returnHTML .= "<td>" . $row[2] . "</td>";
            $returnHTML .= "</tr>";
        }
        $returnHTML .= "</table>";
        $returnHTML .= "</div>";
    }else{
        $returnHTML .= "<div name = 'customer_lookup_results' id = 'customer_lookup_results'>";
        $returnHTML .= "<table border=1 style=\'width:603px; margin-top: 1.5em;\'>";
        $returnHTML .= "<tr>";
        $returnHTML .= "<th>Customer Name</th>";
        $returnHTML .= "<th>Sales Rep Name</th>";
        $returnHTML .= "</tr>";
        $returnHTML .= "<tr>";
        $returnHTML .= "<td colspan = 2>There are no results for your search</td>";
        $returnHTML .= "</tr>";
        $returnHTML .= "</table>";
        $returnHTML .= "</div>";
    }

    $objResponse->assign("customer_lookup_results", "innerHTML", $returnHTML);
    return $objResponse;
}

Not exactly rocket science, but one XAJAX function is building a div to call another one, though it's all exposed to the program I wonder if that has something to do with it.

Thanks for your consideration here Ed!

Re: Data Overload?

Well, it is pretty hard to follow with all of the quotes in the generated stuff...

This "$row = [Draw SQL data from generated array];" might should be inside of the do loop or using a while loop saying

while($row = [get the next row])
}
...
}

Your do loop looks like an infinite loop but maybe not.


I have never sent headers inside of an xajax function. Have you used this before?

Does any part of the html generated by findName() show up at all in the response using xajax debug?

You could save a lot quotes and make it easier to read in getCustomerLookup()  using php herdoc syntax:

http://www.php.net/manual/en/language.t … ax.heredoc

Have you tried printr() in an xajax response alert to see what $testrow looks like after it is constructed or $returnHTML after it is populated?

Hope one of these points fixes the problem...

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

Hey Ed;

I've never sent headers either, that's the screwy part, I'm not trying to send them.

If you look at the code, it's trying to send a second xajax call from the generated div (that was created using innerHTML swaps)

As for the do-while, I understand but it's one of those things I can't change, I have to use that particular syntax to access the records properly.

Effectively it's a pointer-next-pointer system, the first $row= starts the ball rolling, and the do-while continues to roll until it's all done.

The code being generated in the first function (getCustomerLookup) comes through clean (again, due to that wierd &quot; thing I had to make it harder than it needed to be) and looks to be properly formatted with the correct data to trip the next step (Find Name), the data itself that comes out has the variables it passes normally (not shown due to security reasons, sorry Ed) then that heap of nonsense.

As you can tell, the FindName function only polls the database, and is supposed to do another innerHTML swap on the freshly minted div-form that sits on top of everything.

Quite perplexing to say the least; however, I'll give some of that cleanup a shot, and as for 'if it shows up' I cranked it to 20,000 bytes and it almost re-wrote the entire page to the buffer twice before hitting 20,020 and dying. There's also break-protection to ensure no infinite loops live in the background forever.

Once I get the time to I'll fix it up, I've had to shift my attention a bit but I should be able to get back to it sooner or later.

Re: Data Overload?

This:

//disallow caching
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");

is doing headers...

What I ment is any of the generated html from findName() getting to the browser.

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

Oh, that, yeah, that's simply to tell the browser not to save this page in a way every browser can understand, it's never hurt me before, I use it in both my common file and my functions to prevent the browser from getting any funny ideas.

The answer, is not that I can tell Ed, XAJAX dies trying to call findName() (buffer overload) because along with the variables for findName() it's also passing the hideous mess above.

Re: Data Overload?

I'll have to remember the heaader thing in the future.

Still no clue as to what's going on...

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

I have tried everything I can think of to duplicate your problem. No luck.

Could you post or email me the entire php page,  just as it is, so I can see the whole picture?

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

Unfortunately Ed I can't do that, the lovely thing called security prevents me from giving 100% details, and on top of that there are several functions and sub functions and programs running outside of the direct program scope ([sarcasm]something I absolutely LOVE [/sarcasm]) so debugging this isn't exactly a kindly affair by any stretch of the imagination.

I was just hoping that there was some known problem where this would happen, but you're able to run programs that have XAJAX calls within XAJAX derived HTML code that was generated by XAJAX so that means the answer lies in how I'm generating it I presume.

Unfortunately the pressure's on a bit right now so I have precious little time to develop it this way (there's another way that calls a popup window rather than messing with innerHTML tags and nonsense like that) but I'll try to keep you posted if I find success.

Re: Data Overload?

Sorry for the long wait, project cycled back to this so I have a reason to work on it again wink

So, I set it up using HereDoc syntax and something interesting happened, no, it didn't work; however, it did cut down on the amount of drivel in the buffer so it doesn't run for five minutes before dying.

Here's the generated HTML from the first XAJAX call:

<div style="top:20px;left:10px; overflow: auto; height: 290px; width: 620px;">
        <table class="keys" style="border: none;">
            <tbody><tr>
                <td style="color: #FF0000; font-weight: bold;">*</td>
                <td>Customer Name</td>
                <td>
                    <input id="searchCNAME" name="searchCNAME" style="width:200px;" type="text">
                    <input id="referring_field" name="referring_field" value="" type="hidden">
                </td>
                <td><button id="filterbutton" type="button" value="Search" onclick="xajax_findName('9590', document.getElementById('searchCNAME'), '2')">Search</button></td>
            </tr>
        </tbody></table>
        <div name="customer_lookup_results" id="customer_lookup_results">
            <table style="width:603px; margin-top: 1.5em;" border="1">
                <tbody><tr>
                    <th>Customer Name</th>
                    <th>Sales Rep Name</th>
                </tr>
            </tbody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C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E%3C%2Fv%3E%3C%2Fe%3E&xjxargs[]=S2

Firebug only recognizes two of the args being passed, the third, is a document.getElementById that is in the middle (Where all this drivel is) to grab the field itself when the search button is selected.

Is there a better way to grab that field than GEBID?

Re: Data Overload?

Alright, I figured out the problem, it was my suspect (using GEBID), instead you need to use "xajax.getFormValues('searchCustForm')" when using xajax generated HTML

This also required me to block the enter key because this is a dynamic form element that isn't controlled in the traditional P/G method.

A point of note, the documentation on getFormValues is terrible, I tried to just get the one field (searchCNAME) and the documentation does NOT have any examples on selecting specific fields in a form that work, I finally gave up trying and used an is_array test in the next step while I was testing so that I could fork the old lookup and the new lookup temporarily.

Re: Data Overload?

So it's working now?

I tried GEBI and it works here... xajax 0.5, php 5.3. It works like this:

document.getElementById(' . "'" . 'searchCNAME' . "'" . ').value

Without the .value you are submitting an object... Perhaps that was part of the problem.

getFormValues. like the rest of xajax, is not well documented. I have gotten in the habit of looking in the code (js and php) when I  run into an issue.

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Data Overload?

.value...

GAH how can I be so blind?!?

Well I've already shifted my code and it's working, thanks for lookin' it over with me Ed!