NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mpetitjean

Pages: [1] 2
1
     What are you changing on the server side?  Can this be done with variables passed in the URL?

     Generally we use the URL prompt on the button's properties tab, to send something like calledwebpage&SomeVariable=2&AnotherVariable=Great.  Then at the beginning of the recalled page (in source) we use p_web.GetValue('SomeVariable') and p_web.GetValue('AnotherVariable') to set these to either session values (if we need them to persist) or local variables if they only need to change the page returned.  Set the target control to '_self' if you want the page to refresh in the same frame on the page.

    Hope this helps!

Mike Petitjean
Lodi Computer Services, Inc.

2
Web Server - Ask For Help / Re: IE and the <pre> Tag
« on: November 14, 2007, 05:20:30 AM »
     Thank you, the fdiv class fixed the IE6 scroll bar problem.

     The second IE problem, the expansion of the column size is a refreshed browse page, persists however.  This problem occurs in both IE6 and IE7 but not in Firefox.  In one browse page we have twelve hours in the header but four columns under that header for each hour.  We created classes to control the border on the header columns, since there are actually four header columns in the one hour slot.  The hour is shown in the third and forth header columns.  The first and fourth header columns should be blank for an hour.  If we leave the columns blank both browsers help us by shrinking the size of the column.  I tried using the width property in the CSS to fix this, without success.

    Each header column is populated from a data variable.  In the first and fourth columns of each hour we set these variables to be
<pre>  </pre> to insert two spaces in the header to maintain the width.  When the form page, in which the browse page is embedded, is called (from a menu choice or a button) the form and the browse display properly in both browser types.  If a radio button selection is used on the page to set a new filter for the browse, the form is not refreshed but we specified that the browses must be in the client-side tab.  Firefox refreshes the browse correctly with the new filter and the column spacing is maintained.  IE6 and IE7 both mis-display the first and fourth columns of each hour by making them excessively wide.

    I temporarily corrected this by changing from radio buttons to regular buttons to reset the three browse filter changes.  This forces the entire form page to refresh and IE handles everything properly.  Unfortunately now the customer wants a date selection control on the page to select the date to view (rather than just using the forward and back date buttons we already have).  Since this control only refreshes the browse, not the form we are back to the same problem.

   Internet Explorer seems to give us lots of trouble (originally we built a .jpg file with Draw to display data but IE would not refresh it when it changed but retained the same file name).  Ideally I wish everyone would switch to Firefox but I know this isn't going to happen with the average web user.  Microsoft's tech support site has proven fairly useless in resolving these problems.  Is there a book anyone can recommend that will tell me how IE handles web pages internally?

   In the mean time does anyone have any suggestions on how we solve this display problem in a way that makes IE happy?

Mike Petitjean
Lodi Computer Services, Inc.

3
Web Server - Ask For Help / IE and the <pre> Tag
« on: November 12, 2007, 04:58:56 AM »
     We have an online scheduler in beta which displays reservations for a twelve hour period, a twenty-four hour period, a week or a month.  The twelve hour view breaks each hour into fifteen minute time slots.  The header for the table extends across the width of four columns and displays the hour of the day.  Since the header is four columns wide and the time display only requires the center two columns, we used the <pre> tag to insert spaces in the leftmost and rightmost columns of the header.  The column width for the table is set to 15 for each column.

     Everything works correctly in both IE and Firefox when the page is opened from the menu choice.  On the page is a set of radio buttons to select what to display (aircraft schedules, instructor schedule or both).  When a radio button is selected the page refreshes and displays correctly in Firefox.  In IE, however, it suddenly makes the first header column (and the table columns under it) extend the width of the viewable area on the page.  No scroll bar is created so the customer cannot scroll to see the vastly widened table.

     We created a text file and stored the HTML created in the SendPacket routine.  We then used Beyond Compare to compare the generated HTML sent to IE with that sent to Firefox.  with the exception of the session number the HTML is identical.

     If we remove the <pre> tags and substitute two dashes (--) in the blank header columns IE is happy and displays the page properly even when the radio button is reselected.  However the page looks very bad with the dashes instead of spaces.  This has been tested with the original version of IE 6 (no patches) and the current patched version of IE7.  Both give the same result.

     Does IE not support the <pre> tag?  Is there some other way, acceptable to IE, to insert these spaces?  Can anyone recommend a book concerning the inner workings of IE that might help us resolve continuing display issues with IE?

     Thanks!

4
Web Server - Ask For Help / Re: IE 6 Scroll Bars?
« on: September 25, 2007, 06:49:23 AM »
Bruce,

      My contact with the IE 6 browser is gone for the week.  I'll ask him to test an example and see what he gets.

5
Web Server - Ask For Help / Re: Setting Hot Fields to SessionValues
« on: September 25, 2007, 06:47:46 AM »
      Thank you, Alan and Bruce!  This took care of the problem.

      Little by little I am understanding this system.  <g>

6
Web Server - Ask For Help / IE 6 Scroll Bars?
« on: September 21, 2007, 07:34:53 AM »
      We are testing against IE 6, IE 7 and Firefox.  If a form contains a browse in both IE 7 and Firefox, if the browse exceeds the width of the browser window the browser creates a horizontal scroll bar.  IE 6 doesn't seem to be doing this (version 6.0.2900.2180.XPSP_SP2_GDR.070227-22540).  The application is currently compiled with Clarion 6.3 build 9056 and NetTalk 4.28.

     I can't find an update to IE 6 on the Microsoft update site so I assume support for IE 6 has ended.  However, many customers may still be using it.  Is there a workaround for this problem or do we have to force the customer to install IE 7?

7
Web Server - Ask For Help / Re: Setting Hot Fields to SessionValues
« on: September 20, 2007, 02:47:35 AM »
     Thanks!

     Unfortunately the drop list is a list of instructor names and the hot field I want to retrieve is the primary ID column for the table.  This will allow a lookup of the field to get other information from it for the reservation.  Although it makes sense to have each name in the table be unique it is not required by the database or the program.  Therefore I can't guarantee that a look up by the name will produce a unique row.

      I placed code in the "Server Side Code" to check the value of the hot field from the table row.  It is always zero at that point.  My intent was to set a session value to pass to the reservation procedure.

      There are two drop lists that I am using that need this hot field capability but I am unable to find an embed in which the value of the hot field is correct.

8
Your Views and Comments / Creating Profile?
« on: September 19, 2007, 08:04:31 AM »
     How do I create a profile?  When I click the Profile link it simply returns "This profile does not exist or is no longer available".  What am I missing here?

9
Web Server - Ask For Help / Setting Hot Fields to SessionValues
« on: September 19, 2007, 07:24:26 AM »
    I am using several drop lists to allow the user to make a choices for a new reservation.  In some instances two reservations may need to be made when the user clicks the save reservation button, one for the aircraft and one for the instructor.  If the user selects to display both aircraft and instructors in the same In-Memory web browse a new drop list appears on screen with the list of available instructors.  The drop list displays the instructor's  name and the identification column is in the Hot Fields list.

     Where can I set a SessionValue to hold the value of the ID column when an instructor is selected in the drop list?  I am not using Insert, Change or Delete buttons on the form because we are viewing and In-Memory table so the SaveMem Routine never fires.  I've looked at the current value of the ID column in the Value (before and after) for the drop list.  I tried firing the SaveMem routine manually in the embed point just before "return Ans" but the value is always zero there.  I'm running out of ideas because I can't seem to find an embed point where this value is set based on the selection made in the drop list.


10
Web Server - Ask For Help / Re: Odd Internet Explorer Behavior
« on: September 13, 2007, 05:23:43 AM »
     OK, the problem is gone now.  I'm not sure why, but it may be because we changed from Outlook style tabs to no tabs in the frame that displays the form with the browse.

11
Web Server - Ask For Help / Odd Internet Explorer Behavior
« on: September 12, 2007, 12:35:31 PM »
       We have a web application developed with NetTalk 4.28.  It has a series of NetWebForms which each contain a NetWebBrowse of an In-Memory table.  If we reduce the size of the Internet Explorer window so that the browse is too wide for the window, IE creates a vertical scroll bar but not a horizontal one so the browse is partially lost.  We've seen this in IE 6 and 7.  Viewing the same window, in a reduced size Firefox window, correctly creates both scroll bars.

      I do not use IE at all and so am unfamiliar with it.  Is there a setting in IE to fix this?  Any suggestions on why this occurs?  Thanks to all.

12
Web Server - Ask For Help / Re: Span Header Columns
« on: August 31, 2007, 03:51:33 AM »
    Using the CSS style sheet solved this problem for us.  I created three classes in our custom style sheet, myHeaderRight, myHeaderLeft and myHeaderBoth.  Next the border line was removed from the myBrowseTable th custom class.  The three classes are as follows:

.myHeaderLeft {
  text-align: left;
  border-left: 0px;
  border-top: 1px solid #555;
  border-bottom: 1px solid #CCC;
  border-right: 1px solid #CCC;
}

.myHeaderRight {
  text-align: right;
  border-right: 0px;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-bottom: 1px solid #CCC;
}

.myHeaderBoth {
  text-align: center;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-bottom: 1px solid #CCC;
  border-right: 1px solid #CCC;
}

    This method lets us skip borders on every other cell in the head and alligns the text in each header cell to make it appear the text is one word.

13
Web Server - Ask For Help / Re: Table Cell Color -- Individual Cells
« on: August 31, 2007, 03:46:28 AM »
     Thanks, Bruce, that worked!

14
Web Server - Ask For Help / Table Cell Color -- Individual Cells
« on: August 30, 2007, 05:32:55 AM »
      I want to be able to vary the background color of the cells in a table based on the value of one of the columns for that row in the data table.
I'm assuming this can be done through CSS.  To this end I followed Bruce's instructions, created a new .css file and moved the BrowseTable class into it.  See Below:

table.myBrowseTable {
  font-family: Tahoma, Verdana,  Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #333;
  margin: 5px 0px 5px;
  border-color: #888;
  border-top: 1px solid #888;
  border-left: 1px solid #888;
  border-bottom: 1px solid #888;
  border-right: 1px solid #888;
  padding: 0px;
}

table.myBrowseTable th {
  font-weight: bold;
  padding: 2px;
  border: 1px solid #AAA;
}

table.myBrowseTable td {
  padding: 2px;
  border: 1px solid #AAA;
  height: 20px;
}


    Next I added a new class call table.myBrowseTable green:

table.myBrowseTable green {
  background-color: green;
}

     The Class for the table is now 'myTableBrowse' in NetTalk.  I am using the Conditional tab on the filed and using the Class 'table.myTableBrowse green'.

     Even after Ctrl-F5 in the browser I do not see the background color in the cell.  However Firebug shows the html for this td as :

<td class="myBrowseTable green" width="15" title="Ashford, Larry From 8/29/2007 17:30 to 8/30/2007 1:30 Business flight">

      What am I doing wrong?

15
Web Server - Ask For Help / Span Header Columns
« on: August 28, 2007, 09:40:28 AM »
     Is there a simple way to span two or more header columns (with one test entry) in a NetWebBrowse browse?

     I want to have 48 columns in the table but only 24 Header columns to represent the hours of the day with the hours broken into half hour segments in the table itself.

Pages: [1] 2