 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mark Tiede Guest
|
Posted: Wed Mar 07, 2007 7:27 pm Post subject: WebApp debugger with IE7? |
|
|
I have a web module which I share between a webapp debugger app and an ISAPI
app. Since my ISAPI app uses virtual folders, the webapp debugger app
doesn't work because it doesn't have virtual folders. My solution to that
was to set a compiler define and do slightly different code in the debugger.
On all the pages, I have a tag in front of the actions on the HTML. For
ISAPI, this is just the virtual directory. For the webapp, I made them be
something like "File::///blablabla....html". So the file protocol was used.
This was a very easy quick fix for to share the webmodule and made testing
easy in the webapp debugger.
Now the problem seems to be that IE7 doesn't like the file protocol change.
So buttons, for instance, that had an image specified in a file no longer
show any image. And other things are broken too. If I just "view source"
for the page and save it as a file, IE7 will open and show it just fine. I
think it can because there is now no protocol switch from http to file. It
is all file protocol.
Anybody have a way around this? |
|
| Back to top |
|
 |
Hans van Leth Guest
|
Posted: Thu Mar 08, 2007 9:11 am Post subject: Re: WebApp debugger with IE7? |
|
|
Hi Mark,
I've been struggling with the same, and have come up with the following,
which works for me.
In my development directory I have a subdir called BIN and in there I
place all files (images, css and js) that are used by the application
and that will be served by IIS in the production environment, but must
be served by my ISAPI while debugging.
Then in the Webmodule I have an extra WebActionItem (called ABIN) which
is set to be the Default. This action receives all requests for images
etc, picks them from the BIN directory, and serves them up.
This I then use for debugging. For production, I disable this
WebActionItem and make the DLL. Since there is then no default action,
IIS itself will respond to requests for image files etc. A file
index.html will simply point to the "home" page in the ISAPI using
window.location.replace.
In several places when there are differences between debug and
production, I test ABIN.Enabled to decide where I am, effectively making
this my compiler define.
HTH,
Hans van Leth.
Mark Tiede schreef:
| Quote: | I have a web module which I share between a webapp debugger app and an ISAPI
app. Since my ISAPI app uses virtual folders, the webapp debugger app
doesn't work because it doesn't have virtual folders. |
|
|
| Back to top |
|
 |
Mark L. Tiede Guest
|
Posted: Sun Mar 11, 2007 4:03 am Post subject: Re: WebApp debugger with IE7? |
|
|
I gave up on Web App debugger. Too bad because it was nice to be able to
just "Reset" and start over again.
I now do a Run|Attach Process and then Run|Run the app. This has the
advantage of running under the ACTUAL IIS, but requires that I do a IISReset
command every time I do a "Reset" because it stops IIS  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|