Adobe Dreamweaver API Reference CS5 Manuale Utente Pagina 375

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 533
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 374
370
DREAMWEAVER API REFERENCE
Dynamic documents
Last updated 8/27/2013
var retval;
for (i=0;i<gLocNameStrArray.length;i++)
{
if (gLocNameStrArray[i] == str)
{
retval = gLocValStrArray[i];
break;
}
}
return retval;
}
// Creates Resource look up array locally.
function initJQMStrings(nameArr,valArr)
{
for (i=0;i<nameArr.length;i++)
{
gLocNameStrArray[i] = nameArr[i];
gLocValStrArray[i] = valArr[i];
}
// All loadString call will be processed locally
document.loadString = getLocStrVal;
}
$("#ButtonTheme h3").eq(0).html(document.loadString("jQSwathc/Floater/ButtonTheme"));
$("#ButtonTheme h3").eq(1).html(document.loadString("jQSwathc/Floater/ButtonIcon"));
$("#ButtonTheme h3").eq(2).html(document.loadString("jQSwatch/Floater/Button/IconPos"));
$("#ListTheme h3").eq(0).html(document.loadString("jQSwathc/Floater/ListTheme"));
Do not modify objects/arrays in incoming arguments
In Dreamweaver 13.1 and later, when an object or array is passed as an argument through a function call to
mm:browsercontrol, a local copy of the object/array is created in the corresponding render process. So, when you
update the object/array, you only edit the local copy and the original object in Dreamweaver JS layer is not updated.
Hence you need to handle such an object modifications through the callback functions as shown below.
Example:
Prior to Dreamweaver 13.1
DW code:
liveViewBrowser = document.getElementById('browser');
liveViewBrowser.getWindow().document.extensionName = "DreamweaverExtension";
Vedere la pagina 374
1 2 ... 370 371 372 373 374 375 376 377 378 379 380 ... 532 533

Commenti su questo manuale

Nessun commento