webkit-dev - print file name and line number while executing javascript

Jérôme Lebel
2009-04-22T09:58:48+00:00

Hi,

I'm working a very specific platform built on top of Mac OS X. On my  
own platform I need to use WebKit. In order to have WebKit, I've  
redone my own webkit framework (in c++) and my own webkit uses webcore  
framework (almost unchanged) and javascxript core (totally unchanged).

Everything works... almost... I can even display the google map in my  
own platform. I can zoom in, move the map. The only bug is as soon as  
I resize my window, the google map becomes gray. According to my tests  
(using innerHTML), the javascript from google doesn't produce the  
right html. So it doesn't seem to be a display problem. I suspect some  
javascript events are not triggered or may too much javascript events  
are triggered, and then the google map code is confused.

So my question is : Is there a way to do printf in javascript core,  
somewhere, to display all the javascript command executed and also to  
display the file name and the line number where they are?
To solve my problem I wish to compare  a google map being resized  
using the regular webkit (in objective-c for appkit) with my own  
webkit (in c++ for my platform).



Thanks

webkit-dev - drag'n'drop file uploads by Philip Orr on 2009-04-22T10:48:07+00:00

Does anyone have any pointers on drag and drop files from the finder
directly into a web page or section of a web page. I've got examples in
Firefox for this but sadly lacking in WebKit knowledge.

Thanks

Philip
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
</style>
</head>
<body class=3D'hmmessage'>
<div class=3D"ExternalClass" id=3D"MsgContainer"><meta http-equiv=3D"Conten=
t-Type" content=3D"text/html=3B charset=3Dunicode">
<meta name=3D"Generator" content=3D"Microsoft SafeHTML">
<style>
.ExternalClass .EC-hmmessage P
{padding:0px=3B}
.ExternalClass body.EC-hmmessage
{font-size:10pt=3Bfont-family:Verdana=3B}
</style>
Does anyone have any pointers on drag and drop files from the finder
directly into a web page or section of a web page. I've got examples in
Firefox for this but sadly lacking in WebKit knowledge.<br><br>Thanks<br><b=
r>Philip</div><br /><hr />"
Upgrade to Internet Explorer 8 Optimised for MSN. =20
" <a href=3D'http://extras.uk.msn.com/internet-explorer-8/?ocid=3DT010MSN07=
A0716U' target=3D'-new'>Download Now</a></body>
</html>=


Re: webkit-dev - print file name and line number while executing javascript by Jérôme Lebel on 2009-04-22T14:17:29+00:00
I found my solution : the user agent... Since I created my own webkit,  =

I didn't take the time to create the right user agent. Now that I  =

created one (with the right webkit version), google map works correctly.

Thanks,

Le 22 avr. 09 =E0 11:58, J=E9r=F4me Lebel a =E9crit :

> Hi,
>
> I'm working a very specific platform built on top of Mac OS X. On my  =

> own platform I need to use WebKit. In order to have WebKit, I've  =

> redone my own webkit framework (in c++) and my own webkit uses  =

> webcore framework (almost unchanged) and javascxript core (totally  =

> unchanged).
>
> Everything works... almost... I can even display the google map in  =

> my own platform. I can zoom in, move the map. The only bug is as  =

> soon as I resize my window, the google map becomes gray. According  =

> to my tests (using innerHTML), the javascript from google doesn't  =

> produce the right html. So it doesn't seem to be a display problem.  =

> I suspect some javascript events are not triggered or may too much  =

> javascript events are triggered, and then the google map code is  =

> confused.
>
> So my question is : Is there a way to do printf in javascript core,  =

> somewhere, to display all the javascript command executed and also  =

> to display the file name and the line number where they are?
> To solve my problem I wish to compare  a google map being resized  =

> using the regular webkit (in objective-c for appkit) with my own  =

> webkit (in c++ for my platform).
>
>
>
> Thanks


Re: webkit-dev - drag'n'drop file uploads by Darin Adler on 2009-04-22T18:35:12+00:00
On Apr 22, 2009, at 3:47 AM, Philip Orr wrote:

> Does anyone have any pointers on drag and drop files from the finder  =

> directly into a web page or section of a web page. I've got examples  =

> in Firefox for this but sadly lacking in WebKit knowledge.

Maybe if you pointed to the examples =93in Firefox=94 we could get a  =

better idea of what you=92re talking about. If they are based on web  =

standards and don=92t depend on Firefox-specific features, then there=92s  =

a good chance they can be made to work in WebKit-based browsers as  =

well. Perhaps there are bugs getting in the way.

     

Re: webkit-dev - drag'n'drop file uploads by Philip Orr on 2009-04-22T20:45:36+00:00
> > in Firefox for this but sadly lacking in WebKit knowledge.
>=20
> Maybe if you pointed to the examples =93in Firefox=94 we could get a =20
> better idea of what you=92re talking about. If they are based on web =20
> standards and don=92t depend on Firefox-specific features=2C then there=
=92s =20
> a good chance they can be made to work in WebKit-based browsers as =20
> well. Perhaps there are bugs getting in the way.
>=20
>      
http://straxus.javadevelopersjournal.com/creating-a-mozillafirefox-drag-and=
-drop-file-upload-script-p.htm

I'm looking to create web applications in HTML5 and CSS3.0 that allow a use=
r to drag either individual files or a folder of files into the application=
 and are then manipulated and stored with reference to the actual files in =
the database. Once completed all files are then fired off to the server to =
final composition.

I remember looking into this a while ago and finally gave up=2C only now we=
 actually could really do with the ease of use and was hoping the Webkit ni=
ghtly builds could have helped to provide the goods.

Philip

.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
</style>
</head>
<body class=3D'hmmessage'>
&gt=3B &gt=3B Does anyone have any pointers on drag and drop files from the=
 finder  <br>&gt=3B &gt=3B directly into a web page or section of a web pag=
e. I've got examples  <br>&gt=3B &gt=3B in Firefox for this but sadly lacki=
ng in WebKit knowledge.<br>&gt=3B <br>&gt=3B Maybe if you pointed to the ex=
amples =93in Firefox=94 we could get a  <br>&gt=3B better idea of what you=
=92re talking about. If they are based on web  <br>&gt=3B standards and don=
=92t depend on Firefox-specific features=2C then there=92s  <br>&gt=3B a go=
od chance they can be made to work in WebKit-based browsers as  <br>&gt=3B =
well. Perhaps there are bugs getting in the way.<br>&gt=3B <br>&gt=3B      =
l files in the database. Once completed all files are then fired off to the=
 server to final composition.<br><br>I remember looking into this a while a=
go and finally gave up=2C only now we actually could really do with the eas=
e of use and was hoping the Webkit nightly builds could have helped to prov=
ide the goods.<br><br>Philip<br><br /><hr />Surfing the web just got more r=
ewarding. <a href=3D'http://extras.uk.msn.com/internet-explorer-8/?ocid=3DT=
010MSN07A0716U' target=3D'-new'>Download  the New Internet Explorer 8</a></=
body>
</html>=


Re: webkit-dev - drag'n'drop file uploads by Adam Barth on 2009-04-23T05:19:17+00:00
You can drag and drop a file onto the file input control, which you
can create using <input type=3Dfile>.  I'm not sure if that addresses
your use case.

Adam


On Wed, Apr 22, 2009 at 1:45 PM, Philip Orr <philip-orr@hotmail.com> wrote:
>> > Does anyone have any pointers on drag and drop files from the finder
>> > directly into a web page or section of a web page. I've got examples
>> > in Firefox for this but sadly lacking in WebKit knowledge.
>>
>> Maybe if you pointed to the examples =93in Firefox=94 we could get a
>> better idea of what you=92re talking about. If they are based on web
>> standards and don=92t depend on Firefox-specific features, then there=92s
>> a good chance they can be made to work in WebKit-based browsers as
>> well. Perhaps there are bugs getting in the way.
>>
>> >
> http://straxus.javadevelopersjournal.com/creating-a-mozillafirefox-drag-a=
nd-drop-file-upload-script-p.htm
>
> I'm looking to create web applications in HTML5 and CSS3.0 that allow a u=
ser
> to drag either individual files or a folder of files into the application
> and are then manipulated and stored with reference to the actual files in
> the database. Once completed all files are then fired off to the server to
> final composition.
>
> I remember looking into this a while ago and finally gave up, only now we
> actually could really do with the ease of use and was hoping the Webkit
> nightly builds could have helped to provide the goods.
>
> Philip
>
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
Loading


$ This page is proudly powered by www.pubbs.net, you can see more at webkit archive | Partners: Global Manufacturers