Visualizzazione dei risultati da 1 a 2 su 2

Discussione: errore di sintassi

  1. #1

    errore di sintassi

    salve!!

    dietro indicazioni precise ho scritto la funzione di seguito riportata
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    qx.Proto._getContentHtml = function(cellInfo) {
    var IconDataCellRenderer = qx.ui.table.IconDataCellRenderer;
    var urlAndToolTip = this._getImageInfos(cellInfo);
    var html = IconDataCellRenderer.IMG_START;
    html += urlAndToolTip.url;
    var tooltip = urlAndToolTip.tooltip ;
    html += IconDataCellRenderer.IMG_END;
    return html;

    //html restituisce questo


    //e fin qui è giusto...ma manca l'aggiunta degli eventi onmouseout e onmouseover ...infatti html finale dovrebbe restituirmi tutto questo:

    <img src="http://www.provaordine.it/ordini/004092.JPG onmouseout="function (event) {alert('here I am');}" onmouseover="function (event) {alert('he went thataway');}"

    //se scrivo questo codice

    html += urlAndToolTip.url onmouseout="function (event) {alert('here I am');}" onmouseover="function (event) {alert('he went thataway');}";

    //ho questo errore come se fosse sbagliata la sintassi anzi sicuramente lo è...
    Parse error: syntax error, unexpected T_FUNCTION in C:\Inetpub\wwwroot\ordini\vcl\dbgrids.order.inc.ph p on line 740

    sapresti dirmi qual è la sintassi js ?

    grazie mille

  2. #2
    ma guarda che è la sintassi di PHP ad essere sbagliata, unexpected T_FUNCTION significa di solito che manca un ; alla fine di un'istruzione.
    I DON'T Double Click!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.