-
I can't check the file at the moment, I'll have to check later. But before I even suggested it I tested it and it worked fine. So I suspect it'll be something wrong with how you've implemented it.
But ensure that the jpg is in the same folder as the MFA file. or change the AppPath$ in :Apppath$+Request_URL$( "Lacewing Webserver" ) to the path of the images.
-
It is, I checked... I don't know why I can't get it to work... Sorry :/
-
Check what Request_URL$( "Lacewing Webserver" ) returns. I did initially remove the hostname from the url. But it seemed to work regardless for me so didn't bother. If it includes the http://localhost:90 try removing that from the string: AppPath$+right$(Request_URL$( "Lacewing Webserver" ), len(Request_URL$( "Lacewing Webserver" ))-19) (19 being the length of "http://localhost:90") This is for quick testing. You'll want to use a better way of removing the hostname/domainname from the url that can work with dynamic lengths.
-
OK, that's a good idea, maybe the localhost is interfering. I'll give it a go!
-
OK, found the issue, but I'm not sure how to correct it.
First: All my pictures used to be in a folder called images.
Second: It appears that based on the get data, it is still looking for images/picture.jpg which no longer exists.
Third: The application is looking specifically in it's folder, not the previous images folder.
Should I just add the images address to the Apppath$ part? Or is there a cleaner solution?
-
Ok having looked at it.
Apppath$+Request_URL$( "Lacewing Webserver" ) is fine to use no need to trim anything. However as you have a condition that sends a string regardless of the extension. It cant load the image as its being sent a string when requesting a image. If you download the image and open it in notepad you'll see its text. (to download you can go: http://localhost:90/images/myimage.jpg)
So you'll need to add to your conditions something that only runs those conditions if the request isn't an image.
Event #6 is what you need to change. BTW. To get it working quickly you could add:
Right$(Request_URL$( "Lacewing Webserver" ), 4) <> ".jpg" but you'll need to add a condition for each file type if you want to do that. So probably not the best solution.
-
For Event #6 could I do this: Right$(Request_URL$( "Lacewing Webserver" ), 4) <> ".jpg" OR ".gif" OR ect.?
-
Yeah. but thinking about it. this would work better. Request_URL$( "Lacewing Webserver" ) = ""
-
-
OK, just hooked up to a new router, and like I expected everything's messed up...
I have a new IP 24.127.81.198 and my old IP 24.131.4.29.
Please help me solve this! Check my other posts for the No-IP info.