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 - Matthew51

Pages: 1 ... 8 9 [10]
136
Web Server - Ask For Help / Upgraded to 5.34 from 4.47 XP Tabs don't work
« on: September 07, 2011, 03:13:02 PM »
After the upgrade I can't get XP Tabs working on my converted app (see attachment).  Each tab is it's own box under each other.  Clicking the tabs does nothing.    Example 57 works fine so I'm assuming I'm missing some setting. 

I already tried replacing my web folder with the one from example 57.  I just can't find whatever setting I need to change in my app to get them working again.

[attachment deleted by admin]

137
Web Server - Ask For Help / Mixed secure sever
« on: August 27, 2009, 12:13:10 PM »
I am trying to make a server that has secure and insecure pages.  When I navigate to a page that is set to only be served in SSL I get a page can not be displayed error.  Chrome also give me the following: Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.

If I manually change the http to https it works fine.  Also redirecting all traffic to secure works.

138
I think the easiest way is by checking the Change_btn value.

First check:
Code: [Select]
if ~p_web.IfExistsValue('Change_btn')
If the value doesn't exists then the form follows the default action (if you set it up).  This shouldn't happen unless you intend it to.
Then it's just a case statement:
Code: [Select]
case p_web.getvalue('Change_btn')
of 'Insert'
  code
of 'Delete'
  code
of 'Copy'
  code
of 'Update'
 code
end

139
Web Server - Ask For Help / Re: Insert only form?
« on: August 07, 2009, 12:18:50 PM »
I've tried a slightly different idea that looks to be working.  I the same embed I put:
Code: [Select]
  if p_web.IfExistsValue('Change_btn') and p_web.getvalue('Change_btn') <> 'Insert'
    return -3
  end

140
Web Server - Ask For Help / Re: Insert only form?
« on: August 06, 2009, 03:00:56 PM »
I tried this by putting the following code in at the start of the processed code:

  if band(p_stage, Net:CopyRecord) = Net:CopyRecord or |
     band(p_stage, Net:ChangeRecord) = Net:ChangeRecord or |
     band(p_stage, Net:DeleteRecord) = Net:DeleteRecord
    Return -3
  end

It still opened up the form to change a record.

I tested the value of p_stage.  Without the return statement I get the following sequence:
8192
16384
8192
1026
0

With return -3 I get:
8192
16384
8192
1026
0
8192
16384   
8192
1025

141
Web Server - Ask For Help / Insert only form?
« on: July 31, 2009, 02:40:17 PM »
I use a form to that allows users to register them selfs with the web site.  However a clever individual could use this same form to view or even change the information of other users.

What is the best way to prevent this kinda of action?

142
Web Server - Ask For Help / Forms creating empty records
« on: July 31, 2009, 01:57:44 PM »
When you use a form to insert a new record a blank recored is instantly created in the file.  The record had no data except for auto numbered fields, even if this defies rules you set in the dictionary.  If you then click cancel the empty record is deleted.  However if you navigate away the record stays in the file.

Since a new record is created every time this is done it can make a big mess of a file.  Is their any way to ether delete the record once you leave the form, or just delay writing it until the form is posted?

143
Web Server - Ask For Help / Re: How to refresh another frame
« on: July 29, 2009, 03:13:10 PM »
Hi,
I found the following code:

parent.frames['yourFrameName'].location.reload();

using it in the Menu Item, "on click" field, it works ok refreshing another frame, now two questions:

1- How and where in the code must I use this code in a form to refresh another frame on page load?, may be it cant be done, then...
2- Is there any chance to add on-click to the browse change and other buttons?

Thanks Alberto

Lets say when you open 'Page1' you want to refresh 'frameB'. 

1. Go to the XHtml tab on the NetWeb setting for 'Page1'. 
2. Click insert.
3. Select 'Routine' under 'Embed:'.
3. Give your routine a name ('ReloadFrameB' for example)
4. Leave the condition blank
5. Select a location that will place it inside the <body> tag.  For a form or browse any point should work as the template wraps them in a body tag for you.  For a NetWebPage 'after <body>' will work best.
6. Under 'XHTML" put '<scrip>parent.frames.frameB.location.reload();</script>

If you always want to reload 'frameB' when 'Page1' loads then you're done.  If you want it to refresh the frame sometimes, or different frames at times then you're going to have to work some magic with stored values and NetTalk tags.


144
Web Server - Ask For Help / Re: How to refresh another frame
« on: July 29, 2009, 02:55:03 PM »
It does kinda suggest that you probably shouldn't be using Frames in the first place.
Perhaps your site should be built without frames?

Cheers
Bruce


I'm open to suggestions on other was to get the results I want.

I want the user to be able to open a browse on the left if the page.  When they change or insert a record I want the form to show up to the right of the browse.  This first form may have a browse as an element, in which case if they insert or change a record in that new browse I want a 2nd for to open up to the right of the first form.  When a user ether submits or cancels a form I want it to go away until they open another, and ideally update the browse it was opened from.

Example 5 looks like it may be at least close to what I want, but last I checked it's not quite working right.

145
I had already removed it for testing.

146
I did all that, and the filter looks to work for about a half second, then the browse is displayed without a filter.  I checked the values of loc:FilterWas and IdFilter and they are always correct.

147
Web Server - Ask For Help / Re: How to refresh another frame
« on: July 08, 2009, 02:48:22 PM »
I'm trying to do something similar, and I have a partial solution.

In my app I open the browse in frame 1, and any form for that browse in frame 2.

My URL on Save and Cancel for the form is 'Blank'
In every post embed point I save it frame I want to refresh to a session value (ie. p_web.setSessionValue('loc:reloadFrame','Browse'))

In my 'Blank' page I have an XHTML embed with the condition: p_web.IfExistsSessionValue('loc:reloadFrame')
The XHTML I have:
<script> top.frames.<!-- Net:s:loc:reloadFrame -->.location.reload(true) </script>

And that 'should' refresh the frame.

Now for the problem... If the frame you're trying to refresh has done a post then your user will get a nice message asking them if they want to resend the post.  This is a particular problem if the last post was a delete, as the browser will try and delete the same record again.

I've put this problem on the back burner for now, and I just use the auto refresh on all my browses.  If anyone can build on this it would be a great help though.

148
Web Server - Ask For Help / Filter a browse based on the menu choice
« on: July 08, 2009, 02:31:11 PM »
I want to have multiple menu items that all call the same browse, but filter it differently.  My idea was to store the filter in a session value, but I can not find the correct place to set the value.  If I set it in an embed point for the menu item then all embed point look to get executed in the order of the menu items.  Meaning only the last filter will ever be used regardless of which menu item the user clicked on.  Setting the value with the "onClick" field seems to have the same result.

I'm using NetTalk 4.31 by the way.

149
Web Server - Ask For Help / Re: Dynamic fields
« on: June 26, 2009, 11:24:26 AM »
you should be setting the SessionValue, not the Value.

Cheers
Bruce


I just knew it would be something simple like that.  Thanks for the reply.  On a related note, trying to update a memo field in this way will cause the web server to crash.  I've switched my memo fields to strings to avoid this I just thought I'd let others know.


150
Web Server - Ask For Help / Dynamic fields
« on: June 25, 2009, 11:35:58 AM »
I want to create a button that when the user presses it 1 or more fields on the form are changed.  In other words, almost exactly what the calculator example does.  However mine doesn't work and I can't figure out why.  As far as I can tell all settings in the form are the same.

In the 2 Validate embed I have:
ISS:Employee = 'Test me!'
p_web.SetValue('ISS:Employee', ISS:Employee)
do value::ISS:Employee

Pages: 1 ... 8 9 [10]