Jump to content

cristianotestai

uniGUI Subscriber
  • Posts

    379
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by cristianotestai

  1. Can you send a small demo project containing your redirection code?

     

    InvalidTemplate code:

     

    <script type="text/javascript">
      window.location.reload();
    </script>
     

    but, occours same behavior with:

     

    <html>

    <script>

    document.location ="[###url###]";

    </script>

    </html>

     

     or 

     

    <script type="text/javascript">
      window.location="[###url###]";
    </script>
     
     
     Farshad, if you can connect to my PC, it would very quickly show, but if not, I see to create a small project.
     
     Thanks again!
  2. Hi Farshad,
     
    I found a situation using Recovery Failure with my project that uses a TUniTimer to check for new messages between users logged.
     
    The scenario is as follows:
     
    I have a TUniTimer with 2 seconds(interval) , where i see if a particular string variable has some value.
     
    If at some point the server crashed for any reason, the browse appears Recovery Mask properly. Returning the server, the session receive a "Invalid Session" correctly. In InvalidSession Template i'm redirecting to the main page of the application. 
     
    The big problem is that if the server returned in 2 minutes, for example, is performed several times the redirect to the main page of the application, because somehow in the time it was out, every 2 seconds the session was generating a request to the server (TUniTimer), and returning the server, every time from the time it was unavailable, requests were again generated.
     
    I understand the functioning of Recovery Failure, but for the same session, only one request (the first that identified the connection loss) should be processed again, because this time of disconnection, nothing can be accomplished.
     
    If possible, could show you this bad behavior accessing my PC.
     
    Thanks.
     
    Cristiano

     

  3. Hi Farshad,

     

    I'm testing some situations with the Connection Failure Recovery:

     

    1) When the application loses connection to the Server for some instability or other reason, the browser shows the Connection Recovery Message with Mask. If at the time of loss of connection, the application was performing a request with an active ScreenMask, the browser continues to show the Screen Mask of the request, along with the Mask of Recovery Connection, where I think these cases should be automatically hides the mask the request because the screen in the browser gets confused. It is possible to hide the Screen Mask of the request if it is active?

     

    2)  If the client session has lost the connection to the server where the server is ok, with the Connection Recovery, after reestablish the connection, the request that was being made, it is again performed, as if there were not lost the connection to the server? Example: I'm making a query in the database (server side) and the Client Session has lost the connection at the beginning of the request, after a few seconds of attempted recovery, the connection is reestablished. In this scenario, the request is made again?
     
    3) Now with the scenario where the server crashed temporarily: Is there any way (I think not), that when the server is up again, the "old" active client sessions are reconfigured with new sessions, to automatically connect to the server, simulating a stateless environment?
       Currently, obviously, when the server is active again, occurs the message Invalid Session.
     
    I await your comments,

     

    Thanks!
     
    Cristiano

     

  4.  Hello Lema!

     

     My second question was resolved, thanks.

     

     But, i found a small situation with InfoWindow demo.

     
    The position of InfWindow is being generated exactly by Latitude and Longitude of the mark, getting InfoWindow above the mark.
     
    For API documentation, think it should be passed to the open parameter, the marker identifier, as link below: 
     "When you create an info window, it is not displayed automatically on the map. To make the info window visible, you need to call the open() method on the InfoWindow, passing it the Map on which to open, and optionally, the Marker with which to anchor it. If no marker is provided, the info window will open at its position property". (https://developers.google.com/maps/documentation/javascript/infowindows)

     

    In the example the link below, InfoWindow appear correctly just above the marker icon.
     
    I tried in various ways to indicate the marker to the open method, as: 'markerEx_' + IntToStr(MyMarker.Id); but all without sucess.
     
    You could see this case?
     
    Thanks again!
  5. Personally , I don't need InfoWindows.

    uniGUI itself is powerful enough to help me in creating beautiful and very complex forms.

    So , I catch the markerclick event and just show them.

     

    I have in my mind to add infowindows support into unigmap.

    I'll do it once I get some free time.

     

    Until then, you can try to create infowindows by adding JavaScript yourself.

     

    attachicon.gifInfoWindow.png

     

    Hi Lema,
     
    I have two questions in using the content to display in InfoWindow:
     
    1) I am trying to assign the following code in UniMemo:

     

    <h2> uniGUI Rocks! </ h2>
    <HR>
    <p> uniGUI is a framework for Developing <B> AJAX Web Applications </b> in classical Delphi RAD WYSIWYG way.
    Its unique set of components allow Developing web applications at lightning speed. </ p>
    <p> <span class = "x-detail-action-grid" onclick = "ajaxRequest (fmAccount.dgAccount, 'detail', ['conid =' + 2]);"> view more </ span> </ p >

     

     

     
      Where occours the ajax error: missing } after property list
     
      The bold line is correct, where use elsewhere. I debug and saw that the error occurs because you have double quotes within the content that is generated for the InfoWindow the content attribute.
     
    I tried a number of ways to change the generation of the line above, but does not work. How to not conflict the double quotation marks this code?
     
    2) Do you know how close an open InfoWindow when a second window is generated? I need only ever show one at a time.
     
    Thanks for help!
  6.  Up..

     

     Hi Farshad,

     

     As I said I would not have that window Ajax Error, not simply change the text of the message. It would be much better and more elegant, have for example the default message as the image attached, in the format Page and not in a window with an empty message box informing an Ajax Error, which in fact is not a Ajax Error.

     

      Up..

  7. I added in the markerExClick Listener the variables xpos , ypos.

    (They are showing the marker X,Y point in map control instead of the mouse point).

     

    Another good approach is to use the ClientEvents to get mouse X,Y position.

    (You can see an example in uniGMapDemo , form "Map Options")

     

    Thanks Lema!!  Great!

  8.  

     

    Hello Lema,

     

    I believe to have found the problem, which can be a possible bug.
     
    I debug and found that the ajax events are fired in the UniGMap MainForm component, not the component that is in the frame, which is the object that should respond to map events.
     
    It is probable that this possible bug occurs when using the Frames that are loaded in the main form, and for some reason, the events are captured by the object(UniGmap) of the main form of the application.
     
     
    Yes , there is a bug. I will fix it asap !
     
    Thanks!

     
    Another thing, there is a way to report to the Title property of the mark to contain concatenated two words, one under the other?
     
    Ex:
    I tried Title: = varName1 + '<br>' + varName2 + '</br>';
    but he gets everything as a single string.
     
    Thanks again!

     

    Try using TMarkerEx instead TMarker.

    TMarkerEx accepts HTML syntax and has more styling capabilities.

     

    Be careful ! TMarkerEx and MarkerWithLabel Library is not intended for heavy usage.

     

    Ok!  Something like add on map 50 /100 marks  would be too much?

     

     

     

     

     

     

     

    Lema, 

     

    There is another situation:

     

    I need to get the Left and Top of the mark in relation the Form/Frame Parent when the user clicks on the mark for me to display a UniPanel just below the mark with some information about the mark.
    I thought I'd add in markerExClick Listener two more variables that could return to the parameters in ajax event, something like:
     
    'xpos =' + e.ClientX, '+
    'ypos =' + e.ClientY '
     
    Could you add something like this for me to have the position of the mark in relation to its Parent component for  above purpose?

     

    Thanks!

  9. Strange..

    Try debugging using Firebug and look what events are coming.

     

    Hello Lema,

     

    I believe to have found the problem, which can be a possible bug.
     
    I debug and found that the ajax events are fired in the UniGMap MainForm component, not the component that is in the frame, which is the object that should respond to map events.
     
    It is probable that this possible bug occurs when using the Frames that are loaded in the main form, and for some reason, the events are captured by the object(UniGmap) of the main form of the application.
     
    Another thing, there is a way to report to the Title property of the mark to contain concatenated two words, one under the other?
     
    Ex:
    I tried Title: = varName1 + '<br>' + varName2 + '</br>';
    but he gets everything as a single string.
     
    Thanks again!

     

     

     

  10. Hi,

     

    My project with UniGMap is not firing the AjaxEvent. I create marks for the map, make a click on the mark and drag, and does not fire any Ajax Event.

     

    I checked the settings in the UniGmap Demo and there is nothing different, where the Demo events are fired.

     

    Any idea what could be?

     

    Delphi XE6 UniGui 0.97
  11. Hi Lema!
     
    I plan to have a clean panel with the name in bold, the address with normal font below and below a link to the contact page.
    I believe that with CSS would be more elegant than create its own form just for this,  more i'm not sure how to accomplish this with UniGmap component.
     
    In the image of the previous post, shows just how I like to have the information.

     

    Thank you in advance.
     
    Best Regards.

     

  12.   Hi Lema and All,

     

      Thanks for comment .. really, the user must enter a well-formed address.

     

      I have other situation:

     

      In the demo UniGMap component, is shown the use of Labels for Marks on Map where you can associate a CSS style or CSS class.
      It is possible to create a more elegant panel for the mark on the map as can be seen in the attached image?
     
      I need that when the user clicks on the mark, a panel with some information (similar to the example image) are presented as used by Google Maps.
     
      Could  you indicate if possible, how to perform the effect i need?
     
      Thanks!

    post-17-0-24047000-1420551528_thumb.jpg

  13. Hello Lema!
     
    My table has the following fields, for example:
    Name, Address, City, State or Province, Latitude, Longitude.
     
    I have some questions about the best way to store the Latitude and Longitude:
     
    1) At the moment of Insert, before storing in the database, I must make a call to the Google Maps API to get the Latitude and Longitude registry, to store in the table, right?
       So, how to handle, if the user only informed the Address without informing the city or state? Or if he only informed the City, without informing the address?
       I ask these questions because it is not necessarily required to inform the full address.
     
    2) In each update of a record, I'll need to monitor if there was a change in one of the above fields to again call the API to get the latitude and longitude and update the registry.
       This is the best or only way to achieve?
     
    Thanks for your comment.
     

     

  14.  

    Hello.

    I am doing something similar using uniGMap and its markers' functionality.

     

    http://forums.unigui.com/index.php?/topic/2363-google-maps-for-unigui/

     

     

     

    e.g.

    procedure TmyForm.UniButton1Click(Sender: TObject);
    var
      aMarker: TMarker;
      i: integer;
    begin
    
      for i := 1 to 50 do
      begin
    
        with aMarker do
        begin
          id := i;
          Latitude := random(150) - 75;
          Longitude := random(360) - 180;
          title := format('Marker %d', [i]);
          animation := maNone;
          clickable := True;
          draggable := False;
          raiseOnDrag := False;
          AddToCluster := True;
        end;
    
        UniGMap1.AddMarker(aMarker);
      end;
    
    end;
    
    

     

    Hi Lema,

     

    To search the data and create the marks on the map, you store in the database the Latitude and Longitude information of each location, or at runtime, you search on Google API this information regarding the address to create the marks?

     

    Regards,

     

    Cristiano Testai

    Brazil

  15. Hello,
     
    Anyone know how to use the  Google Maps to do for example:
     
    I have a contact list categorized by neighborhood or street and would like to display on the map all my contacts that are of particular street or neighborhood of a city.

     

    What I need is to have a view on a map indicating the contacts, and hover at some point, show the contact name for example.
     
    Someone already did something similar or have any idea perhaps using the UniGmap?
     
    Thanks.
     
     

     

  16.  
     Hi All,
     
     I have a UniDBGrid that displays records from a simple list of customers, with Name, Email and Phone columns.
     I want this grid, have a column(collapible) before the Name, content with symbol "+", which, when clicked on it, appears   below another grid(detail) containing the information of the location of the customer, with the columns City, State and Country.  If the User click again (symbol "-"), the detail grid disappears, because it must be colapisible.
     
    I know that currently in UniGui, this feature does not exist but is very similar to the example of the Grouping, only need to show the columns of City, State and Country in a grid below, which should appear when the user selects the indicated column with the "+" symbol. 

     

    Attached I show an image with the feature that need to have.

     

    It would be possible to do this in some way? Any Idea?
     
    Thanks,
     
    Cristiano 
    Brazil
     

     

    post-17-0-59135500-1411834276_thumb.jpg

    • Upvote 1
  17. Hi Farshad,
     
    The appearance of the EXT JS 5 is awesome! It seems there was a significant improvement in design (CSS with Crisp Theme and resources) of the framework. 
     
    The link below shows an example: 
     
    Farshad, there any idea of time to support EXT JS 5?
     
    Thanks.
    • Upvote 1
×
×
  • Create New...