Jump to content
Sign in to follow this  
limelect

webbrowser Google map script error

Recommended Posts

I got a program , with main form , where webbrowser showing google map is working OK. NO java errors.

Now make a new form , as the main !!  , with a button showing the above form.

frmMain.ShowModal;

The webbrowser Map has a script error.

 

On the net, there are a huge amount of solutions. Nonwork.

Making wbrMaps.Silent := True; is not an option since it changes the behavior of the map

because of the java errors.

 

What I wonder is why the same form with google map on webbrouser

when running as the MAIN form , no java errors, then run the form as a second form has java errors?.

Can it be a compiler bug? The source has not changed on the form.

 

A new comment

it seems that the problem is different.

On one application no errors.

On another with webbroser on main script errors.

For now i keep investigating.

 

crazy as it sounds i duplicated the good application.

Each time i added a component and i got a script error.

I got to a point that i duplicated a good program with no errors

and still i got an error.

I would like to say that the good program dose nothing to the webbroser except

load the url.

I even duplicated the uses.

So, for now, i keep looking for something i mise altogh i do not think so.

 

Finally. I am amazed. I have the same 2 projects.

I compared the dfm and the pas files.

I deleted all unnecessary files, left only DPR.

made sure both are the same.

And found that exe both are6,374K

both are debug.

To conclude one gives me script error the other is OK.

 

ANY idea what next? did i say crazy?

 

 

 

Edited by limelect

Share this post


Link to post

Ok guys final conclusion

Mad 2 projects. did NOT copy directory

but put dpr ONLY dfm and pas file in another directory.

Compile and  on the new program script error.

Both programs are the same.

 Any idea?

Both programs started with DPR only.

Share this post


Link to post

I got to a point where i only change the DPR name and Delphi compile 

same size EXE different HEX content.

 

Lastly, i check the behavior of my computer on 2 suppose to be the same programs

Edited by limelect

Share this post


Link to post

@Attila Kovacs I know about the switch in reg.di dnot try it yet. 

However so far i have tried chromiume which needs huge amount of DLL

and the most promising is Delphi embedded WB.

With it there is no error but running it with this link

https://www.google.com/maps/search/?api=1&query=32.0782,34.8486

does not give the expected result. Map does not show properly.

My other way is to open webbrowser with navOpenInNewWindow

But my main problem is to understand why changing !!! DPR name, that is, one application

works with no error the other has errors.

It is crazy. I work with Delphi since #1 i never encounter such a thing.

 

Edited by limelect

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×