Jump to content

Jim Gallagher

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jim Gallagher's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. The URLParameters demo shows how to read parameters, but not set them. I believe you have to type in the URL in the browser. I want to set it programmatically, without causing a reload. Google tells me this is possible with Javascript, at least for hashtags. If it is possible for parameters, it would allow the user to bookmark the url, for example: http://localhost:8077/?button=BB&edit=AA. Selecting that bookmark in the browser does restore the state of the button caption and the edit box. A real-world case would preload a record from a database table, for example. Actually, what I would really like to know is how to set and read hashtags for a single page site, as described in this article: http://blog.mgm-tp.com/2011/10/must-know-url-hashtechniques-for-ajax-applications/ I've seen this technique work, and it has the advantage of enabling the back-button, and allowing the user to bookmark "states", though of course there is some programming required to use the hashtag for restoring that state. It could just identify the form to load, in a multi-form site. I confess that I don't understand the architecture of uniGUI very well, so this may not be possible, but it looks like modifying the URL without reloading is a feature available in Javascript, so doesn't that mean that uniGUI should be able to do this? My second confession is that I don't know Javascript very well, so everything I'm asking may be complete nonsense..... -Jim
  2. I'm evaluating uniGUI (looks great!) and saw that we are able to access URL parameters (URLParameters demo). What I can't find is how to set them. How do you add parameters (?Key=12345) in code to the URL. I would like for the user to be able to bookmark the URL, and then be returned to the same state. Returning to the same state I can handle, but I haven't seen how to modify the URL to include the key information. Probably something simple and obvious, so thanks and apologies in advance. -Jim
  3. Farshad, That fixes it! Thanks so much for taking the time to track this down. My test app now works, but more importantly, the real app I'm working on is also working correctly. Thanks again, and I'm really looking forward to the release version. -Jim
  4. That's too much for me to ask, but since you offered <g>.... I don't have your email address, so if you email me at zenia @ earthlink . net (without the linefeeds obviously) I can send you the credentials for .rdp logging in. I realize that fixing a novice's configuration problems is outside your responsibility, but if you can find the time I'd be grateful. If it isn't an easy, obvious fix and is taking too much of your time just let it go, and I'll get it figured out eventually. Thanks, -Jim
  5. I moved the Alias, but I'm still getting the same results. I think there are several possibilities: 1. uniGui program. I may not have made some change that is required for it to run as a DLL. This seems unlikely, since you took my test program and it works. 2. Apache configuration. I'm going to re-install Apache (XAMPP this time) and revert to the installed httpd.conf file, and start over. I'll try to get a little more educated about Apache. 3. Windows Server 2008 configuration. Since the default Apache website is being served when requested, the basic functionality is there, but there may be some configuration required to enable ISAPI to work. This seems like the most likely problem to me, since I also couldn't get IIS to work. I'll let you know if I make any progress, though I'm going to have to spend less time on this for the next week or so. Thanks to all for your help. -Jim
  6. Sorry, the attach didn't work - I'll try again. testapp.zip
  7. Sounds good. I've attached my TestApp program that just contains a button whose caption changes when you click it. It runs for me as a VCL app, and as a standalone server if I place the executable on my server in c:\TestApp and copy the ext-3.3.0 subdirectory to the c:\TestApp directory. To create a DLL, I just comment out the first line.
  8. Thanks, I'll try uninstalling Apache and re-installing with XAMPP, following your structure and see if that gets it working. I don't really need some of the stuff in XAMPP, but it's worth a try if it will get me up and running. It will probably be a few days before I can get to that. -Jim
  9. Farshad, I realize that the first post in this thread is lengthy, but please read it and you will see that I have supplied all the details of everything I have done to try to get ISAPI to work under Apache. I created a "Hello World" uniGui application and described all the steps I followed in configuring Apache. I'm sure I've done something wrong, but I haven't heard yet what that is. Yes, I created an Alias, MyTestApp, and the URL I used is 127.0.0.1/MyTestApp/TestApp.dll, as I described in the first post in this thread. -Jim
  10. My dll is in c:\TestApp (Step 6 in the first post). -Jim
  11. I do have the right ext folder, and it works well with the standalone server. I realized that I had forgotten to assign permissions to the Apache user to the root level ext-3.3.0 directory you recommended, but I just did that too, and still get the same error. I tried it with and without a trailing backslash. Is it possible that I should be using forward slashes, since it's somewhat interior to Apache? It appears that something is wrong in my environment, but I can't figure it out.
  12. Thanks, but no luck. It looks to me like the alias is not being transferred to the .dll environment, and everything is going to the default htdocs folder? Here's my error log, after making your suggested changes: [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp, referer: http://127.0.0.1/MyTestApp/TestApp.dll [Wed Oct 12 14:34:13 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mytestapp
  13. Since I had no luck with IIS, I switched over to Apache 2.2. I am getting a blue screen with "loading". Since my app is kind of complex I decided to simplify everything. The steps below are what I followed to deploy the simplest uniGui application possible. If anyone sees a problem with anything I've done, please let me know. I am new to web servers, so it is very likely I am doing something dumb. These are ALL the steps I followed: CLIENT APP: Using uniGui 0.86.0 build 889 Delphi XE. 1. I create a new application TestApp using the uniGui Wizard. 2. I select VCL Application/Standalone Server/ISAPI Module. 3. On the MainForm I place a TuniButton and in its onclick event I have: UniButton1.Caption := 'Hello world'; 4. I change the Port in UniServerModule from 8077 to 80. I leave [ext]\ for extroot. I make no other changes to the program. 5. I hit F9, and it creates TestApp.exe and runs in VCL mode as expected. It runs from the browser (URL: 127.0.0.1) as expected. 6. To deploy, I change extroot to ext-x.y.z\ and set Standalone Server to True. I rebuild TestApp.exe 7. I comment out: {$define UNIGUI_VCL} and build the project again. I make no other changes. It creates TestApp.dll SERVER DEPLOY Apache 2.2, Windows Server 2008 1. I install Apache 2.2. 2. I create a ServiceUser windows ID and run the service using that ID. 3. Follow the instructions in on-line help: a) LoadModule isapi_module modules/mod_isapi.so is already uncommented in my installed httpd.conf file I add "AddHandler isapi-handler .dll" right after the commented AddHandler for CGI, which I leave commented. c) I add, right *after* the default directory entry: <Directory "C:/TestApp"> Options Indexes FollowSymLinks ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> d) I put: Alias /MyTestApp "C:/TestApp" in the <IfModule alias_module> section 4. I right click the c:\TestApp directory and give the ServiceUser ID full control. I also give that user full control of the Apache server directory. 5. I copy the ext-3.3.0 directory to C:\TestApp 6. I place TestApp.exe and TestApp.dll in the C:\TestApp directory. 7. I stop the Apache service 8. I run TestApp.exe. It works as expected. If I use 127.0.0.1, or my URL I get the TestApp with the button. 9. I stop TestApp.exe and start the Apache service. 10. I enter 127.0.0.1 and I get the default htdocs/index.html 11. I enter 127.0.0.1/MyTestApp and I get the index.html file I have placed in c:\TestApp. So the alias is working 12. I enter 127.0.0.1/MyTestApp/TestApp.dll and I get a blue screen with "loading". These are the error and access logs: ACCESS.LOG 127.0.0.1 - - [12/Oct/2011:10:38:32 -0700] "GET / HTTP/1.1" 200 65 127.0.0.1 - - [12/Oct/2011:10:38:32 -0700] "GET /favicon.ico HTTP/1.1" 404 209 127.0.0.1 - - [12/Oct/2011:10:38:52 -0700] "GET /MyTestApp HTTP/1.1" 301 235 127.0.0.1 - - [12/Oct/2011:10:38:52 -0700] "GET /MyTestApp/ HTTP/1.1" 200 60 ERROR.LOG [Wed Oct 12 10:38:14 2011] [notice] Child 40868: Child process is running [Wed Oct 12 10:38:14 2011] [notice] Child 40868: Acquired the start mutex. [Wed Oct 12 10:38:14 2011] [notice] Child 40868: Starting 64 worker threads. [Wed Oct 12 10:38:14 2011] [notice] Child 40868: Starting thread to listen on port 80. [Wed Oct 12 10:38:32 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
  14. That's a very generous offer, thanks. If you are able to find the time I would be very grateful. My VPS at the moment is just a playground for experimenting, so I don't have any problem with giving you access. How can I get the credentials to you in a secure way? I couldn't find your email address listed.
  15. Just as a follow up, I spent some time researching this, and discovered the IIS 7.5 has quite a different way of managing permissions and pools. The configuration is quite different from IIS 7.0, which is described in uniGUI documentation. I followed the advice I found on the web and everything looked correct to me, but it still did not work. I still think I'm probably doing something simple wrong, but if anyone has the steps for configuring for 7.5, I'd be grateful if you could post those here. In the meantime I have moved to Apache, where I am making some progress. Thanks, all.
×
×
  • Create New...