HtmlViewer Limitation

Is there special limitation to HTMLViewer
So many hours to build app to get rid of applescript - Safari
BUT the button in the external webpage who’s open a modal windows to choose pdf won’t Work
do i have to activate some feature to use HTMLViewer like a HTMLViewer
Thanks

Does somebody knows why my HTMLViewer work well on pc

And with the same app compile for MAC OSX 10.7.5 cocoa
A button to upload pdf on server (modal window)
Does nothing at all (click but no modal appear)

Curious !!!.. My base computer for coding is a MAC
Please someone have a idea
thanks

[quote=84130:@Denis Despres]Does somebody knows why my HTMLViewer work well on pc

And with the same app compile for MAC OSX 10.7.5 cocoa
A button to upload pdf on server (modal window)
Does nothing at all (click but no modal appear)

Curious !!!.. My base computer for coding is a MAC
Please someone have a idea
thanks[/quote]

Are you talking about a server which provides a button to upload, or about a button in your app which is supposed to open 1) A dialog, 2) A modal window ?

If you want us to understand what is going on, please post your code.

Thanks Michel
Its a button on server side whos opening the windows to browser in the computer
Theres really no code to post
one HTMLViewer and a URL at opening event

you could try opening upload button

HTMLViewer1.LoadURL("http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_create")

in a simple HTMLViewer
Doesnt work for me

[quote=84157:@Denis Despres]you could try opening upload button

HTMLViewer1.LoadURL("http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_create")

in a simple HTMLViewer
Doesnt work for me[/quote]

The page does work in a regular browser but not in the HTMLViewer.

Apparently the HTMLViewer does not understand the following script in the source :

<script> function myFunction() { var x = document.createElement("INPUT"); x.setAttribute("type", "file"); document.body.appendChild(x); } </script>

This should trigger the NewWindow event but it does not :frowning:

What’s strange it’s working on PC
Even the page that i want to work with (not the w3school example)
looks different (around these button)
apparently im not the only with this problem
https://forum.xojo.com/5941-htmlviewer-html5-input-type-file
the work around pass by MBS plug in… i dont know which one
Even if i knew… The HTMLViewer should work anyway

HTMLViewer Javascript implementation on Mac is not quite complete.

Here is a thread about that, and mention of MBS
https://forum.xojo.com/3026-htmlviewer-and-javascript

The HTMLViewer is NOT a “web browser”
There’s a huge difference between Safari and the htmlviewer (which is basically an OS X WebView)

I don’t want to start an debate but
If it would work…the answer would be (XOJO tool are very effective)
But when its not working…its because it’s not meant to this purpose
it would be true if it didn’t work on pc
Like i said, I can’t argue with ( Xojo Inc. ) when our status here is (not verified)

[quote=84168:@Michel Bujardet]The page does work in a regular browser but not in the HTMLViewer.

Apparently the HTMLViewer does not understand the following script in the source :

<script> function myFunction() { var x = document.createElement("INPUT"); x.setAttribute("type", "file"); document.body.appendChild(x); } </script>

This should trigger the NewWindow event but it does not :([/quote]

I noticed that working with the DOM through JavaScript works nicely on Mac OS X and Linux Mint, but does not do so on Windows at all…

yes me too
The Dom manipulation was much easier than i tought on Mac
And didn’t work on pc at all
In revenge there some javascript include in page dont work on Mac only
I would need a hybrid Mac’in PC to reach my goal

Yeah, I ended up re-writing my whole HTMLViewerClass to move away from DOM manipulation because of Windows… On the plus side, it might actually work with the renderer set to Native…