| | |
spry script error
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 1
Reputation:
Solved Threads: 0
I am new to spry and am creating a webpage with multiple spry tables on it. I got the first table in and it works fine, but when I went to add the second table I receive this error: I included the portion of the script file that it says is causing the error and have italicized the line where it says the error is occuring.
while executing onClick in InsertSpryDataTable.htm, the following JavaScript error(s) occurred:
At line 1445 of the file "C:\Program Files\Adobe\Adobe Dreamweaver CS3\Configuration\Common\Scripts\spry_ajax_utils.j s": offsetstoNode: Argument number 1 is invalid.
Thanks in advance for your help.
while executing onClick in InsertSpryDataTable.htm, the following JavaScript error(s) occurred:
At line 1445 of the file "C:\Program Files\Adobe\Adobe Dreamweaver CS3\Configuration\Common\Scripts\spry_ajax_utils.j s": offsetstoNode: Argument number 1 is invalid.
function ajaxUtils_promptForSpryRegion(codeOffsets)
{
var bAddSpryRegion = false;
var bIsInsideSpryRegion = false;
var aDOM = dw.getDocumentDOM();
if (aDOM)
{
var origStartOffset = -1;
var origEndOffset = -1;
if (codeOffsets)
{
origStartOffset = codeOffsets.startoffset;
origEndOffset = codeOffsets.endoffset;
}
else
{
var selection = aDOM.getSelection();
origStartOffset = selection[0];
origEndOffset = selection[1];
}
var currNode = aDOM.offsetsToNode(origStartOffset,origEndOffset);
if (currNode != null)
{
var aParentNode = currNode; Last edited by cscgal; Sep 6th, 2008 at 7:09 pm. Reason: Added code tags: next time, indent your code
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Frustrating Firefox Problem while making AJAX request on an anchor
- Next Thread: Prototype link event problem
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n





