Ankündigung

Einklappen
Keine Ankündigung bisher.

PocketVisu für Aufruf externe URL gehacked

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Warichet
    antwortet
    Aaargh !
    I overlooked Peter's code
    Zitat von q098501 Beitrag anzeigen
    Code:
    [COLOR=#007700][COLOR=black]case "meineBildID2":[/COLOR]
    [COLOR=black]window.open("http://apple.de");[/COLOR]
    [COLOR=black]break;[/COLOR]
    [/COLOR]
    The "open" does indeed open a new extra window
    Hence my problem of displaying the HS list is solved, that is, when the extra window is closed, the browser is still there, displaying the last page.
    Thank you Peter
    Zitat von q098501 Beitrag anzeigen
    Kann dies mangels Ipod aber nicht testen/verifizieren ...

    PS: clearing the cache is needed for each test, even for a minor modification.

    Einen Kommentar schreiben:


  • NilsS
    antwortet
    either you can use XXPOPUP or you can write in the aVisuItem.txt field.
    think about aVisuItem.txt.indexOf("XXARCHIV;") == 0 you can use the static text field for the details. (aVisuItem.txt == "XXARCHIV;MYARCHIV)
    then you can write the results to the aVisuItem.txt and aItems.push(aVisuItem); check near Line 1950

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von HartmutB Beitrag anzeigen
    What about overlaying the text with a simple transparent PNG-file ?
    Hé, hé, didn't think about it. Nice idea
    But my fundamental question is: how to come back after having displayed a HS List ? any idea ?
    Any means at the cookies level ?

    Einen Kommentar schreiben:


  • HartmutB
    antwortet
    Zitat von Warichet Beitrag anzeigen
    Would it be possible to use the same technic for text blocs ?
    What about overlaying the text with a simple transparent PNG-file ?
    Create one master in 10x10points, import it as often you need, give them readable IDs when importing, simply size them as big as your text area is with the mouse ...

    (ok, not a perfect solution, but should work)


    Regards,
    Hartmut

    Einen Kommentar schreiben:


  • NilsS
    antwortet
    I allready started modifiing it. checkout here https://knx-user-forum.de/showthread.php?t=3934. i will update that thread soon.

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von Warichet Beitrag anzeigen
    Would it be possible to use the same technic for text blocs ?
    Answering my own question (kind of talking to myself )
    I made a gif of the text bloc, hence getting a unique icon id.
    But it's not really a nice idea as the project is getting bigger with many of those " text pictures".
    Also, my idea was to call HS lists from within de Visu, this works fine now.
    But those list don't provide a "back" button, and the browser "back" return to the login screen .... not really ergonomic.
    Seems that I've reached the limit of the idea ... unless someone has a better idea

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von AScherff Beitrag anzeigen
    Habe dazu die ajax.js leicht gehacked (da geht bestimmt noch mehr )
    Great hack, indeed
    I noticed it requires a Static Symbol.
    Would it be possible to use the same technic for text blocs ?
    I understand icons are identified by a unique ID, maybe text bloc as well ?

    Thank you.

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von HartmutB Beitrag anzeigen
    or replace it once with your unmodified backup.
    OK. It's one of the first things I did (sorry, forgot to mention)

    Zitat von HartmutB Beitrag anzeigen
    an existing cookie, that initiates a redirect to a changed / no longer existing visu page.
    OK, good to know, but cookies are local to the PC, so trying on another PC would have done it.

    Thank you for the tips.

    This problems really beats me. It is as if the browser is corrupted, but all browser exihit the same behaviour, so I guess it's a server problem.
    But how could I modify a server file with a bad keyboard manipulation. Unless the Shift F5 revealed a waiting problem.

    Einen Kommentar schreiben:


  • HartmutB
    antwortet
    Zitat von Warichet Beitrag anzeigen
    Any hint ?
    Yes. Misspelled ajax.js. It it's buggy (not {} in pairs closed, etc.) you won't get anything from your visu.

    So, I guess you are now using your modified ajax.js. Check it again or replace it once with your unmodified backup.

    What could be another reason, is an exiting cookie, that initiates a redirect to a changed / no longer existing visu page. Then the effect is the same.


    Regards,
    Hartmut

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von HartmutB Beitrag anzeigen
    And it's always a good idea to clean the browser cache after these changes,
    Yes indeed, forgot it

    So I first tried a classic Shift F5 (It might be that I've done a mistake here and hitted Ctrl F5 instead)
    Now, when I run the Ajax URL, I get the black page, but with no text on it , so impossible to login
    I thought I modified my browser setting (IE7) by accident, I tried on another PC, same thing.
    I double checked the browser setting, no clue.
    I downloaded the project again with the Experte, same thing.
    I run the local file C:\Program Files\GIRA\HS+FS\exp22\hsupload\hsav\start.htm, same thing

    It beats me. Any hint ?

    Einen Kommentar schreiben:


  • HartmutB
    antwortet
    Zitat von Warichet Beitrag anzeigen
    PS: I'm editing C:\Program Files\GIRA\HS+FS\exp22\hsupload\hsav\js\ajax.js, hoping it's the right one.
    See the related post https://knx-user-forum.de/showpost.p...1&postcount=25. And it's always a good idea to clean the browser cache after these changes, as sometimes the file otherwise doesn't get refreshed.

    Regards,
    Hartmut

    Einen Kommentar schreiben:


  • Warichet
    antwortet
    Zitat von AScherff Beitrag anzeigen
    Dort frage ich die ID des Bildes ab (ist im Experten/Symbol-Bibliothek als Bild-ID zu finden). Wird "meine" spezielle ID gefunden, springe ich zu einer anderen URL.
    By "ID des Bildes ", I guess you mean the ID number (i.e. I9480) not the ID name ?

    I've entered the ID, but it doesn't jump to the URL.

    PS: I'm editing C:\Program Files\GIRA\HS+FS\exp22\hsupload\hsav\js\ajax.js, hoping it's the right one.

    Einen Kommentar schreiben:


  • Cindom
    antwortet
    Ja der Aufruf als neues Browserfenster funktioniert beim iPhone !

    Einen Kommentar schreiben:


  • q098501
    antwortet
    Hallo Cindom,

    sollte funktionieren in dem man z.B. den Teil

    Code:
     
    case "meineBildID2":
        window.location.href="http://apple.de";
    break;
    folgendermassen abändert :

    Code:
    [COLOR=#007700][COLOR=black]case "meineBildID2":[/COLOR]
    [COLOR=black]window.open("http://apple.de");[/COLOR]
    [COLOR=black]break;[/COLOR]
    [/COLOR]
    Kann dies mangels Ipod aber nicht testen/verifizieren ...

    Gruß
    Peter

    Einen Kommentar schreiben:


  • Cindom
    antwortet
    Ich habe deinen Mod mal angewendet und bin begeistert!



    Kann man noch ne Zeile einfügen für ein neues Browserfenster?

    Einen Kommentar schreiben:

Lädt...
X