spry script error

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Sep 2008
Posts: 1
Reputation: ssfhlcommish is an unknown quantity at this point 
Solved Threads: 0
ssfhlcommish ssfhlcommish is offline Offline
Newbie Poster

spry script error

 
0
  #1
Sep 6th, 2008
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.
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;
Thanks in advance for your help.
Last edited by cscgal; Sep 6th, 2008 at 7:09 pm. Reason: Added code tags: next time, indent your code
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC