Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic ASP page doesn't refresh #3

Open
dotnetshadow opened this issue Aug 18, 2017 · 6 comments
Open

Classic ASP page doesn't refresh #3

dotnetshadow opened this issue Aug 18, 2017 · 6 comments

Comments

@dotnetshadow
Copy link

Hi there,

I've been trying to use your plugin but I can't seem to get any changes working

I have a basic classic asp website
http://dev.foo.localost

In my hosts files I map
127.0.0.1 dev.foo.localhost

I then use your plugin and choose
BrowserSync: Proxy mode in browser
I enter http://dev.foo.localhost/test/
Then for relative path I enter *.asp|css/*.css

When I edit the file default.asp no changes are sent to my server I have to manually refresh the page

Is there something I'm doing wrong?

@dotnetshadow dotnetshadow changed the title Simple asp site doesn't refresh when editing Classic ASP page doesn't refresh Aug 18, 2017
@Jasonlhy
Copy link
Owner

@dotnetshadow How about enter http://127.0.0.1 ?

@dotnetshadow
Copy link
Author

Tried that bit couldn't get it to work with 127.0.0.1

I've tried browser-sync through now the server method works but proxy didn't but sure if it's related?

@Jasonlhy
Copy link
Owner

I tried asp under window 10, and found some tricky things to make it work under proxy mode.

Wrap response.write inside body tag

This is a known limitation of Browser Sync

For example,

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <%
        response.write("Helloaaaaa")
    %>
</body>
</html>

HTTP/1.1 404 Not Found

If you faced HTTP/1.1 404 Not Found during reload, you can save the file twice or set the delay of the reload

@dotnetshadow
Copy link
Author

I'll have a go at this, I didn't notice a 404 j, but i never liked at the source.

I'll see if that's the problem and report back

@dotnetshadow
Copy link
Author

dotnetshadow commented Aug 21, 2017

Thanks for your help, I managed to get it working. Had to use nested syntax for files
/**/*.asp

Just a few things:

  • If you are on the Welcome screen nothing pops up after selecting from command palette
  • Proxy in browser works well, the side panel one doesn't seem to work for me, doesn't show the correct url. It's showing the directory path
  • Would be nice to be able to edit the url in the side panel, currently you can't edit it

@Jasonlhy
Copy link
Owner

Jasonlhy commented Aug 21, 2017

@dotnetshadow Thanks for your feedback and suggestion. To answer couple of your questions.

  • If you are on the Welcome screen nothing pops up after selecting from command palette
    A: The pops up is vscode API, may be this is a bug of vscode, I need to double check with the vscode issue

  • Proxy in browser works well, the side panel one doesn't seem to work for me, doesn't show the correct url. It's showing the directory path
    A: This is a bug, I forgot to change the path of the side panel if using proxy mode.

  • Would be nice to be able to edit the url in the side panel, currently you can't edit it
    A: Good idea, will be implemented later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants