Friday, January 22, 2010

Bookmarklet to open page for OOPHM debug

My working practice is to develop in eclipse on one machine but to
debug in the browser on another. This means that when I have started
the app in debug mode, I then have to copy and paste the URL. Since
for many various GWT projects the URL is the same apart from the
initial name of the html page (which is the project name) I have
created a bookmarklet for my firefox browser which prompts for the
name then opens a page with the properly constructed URL.

I don't know if others work this way or would find this useful but
here is the bookmarklet code:

javascript:var%20pb=prompt('Enter%20GWT%20Name','?');if(pb!=null)
{document.location='http://192.168.1.10:8888/'+pb+'.html?
gwt.hosted=192.168.1.10:9997'
;}

obviously the ip addresses will have to be set for your own use.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate