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.
136
Web Server - Ask For Help / Include Clarion variable in HTML
« on: April 05, 2012, 01:56:19 AM »
Hi Guys,
Is it possible to include a Clarion variable in my HTML code?
Example:
In my PageHeaderTag, in XHTML code:
<table class="headingtable">
<tr>
<td>
<a href="http://www.site.co.za">
<img border="0" width="294" height="73" src="\images\image.jpg" width="100%" align="left"/></a>
p_web.GetSessionValue('LOC:Message')
</td>
</tr>
</table>
Is it possible to include a Clarion variable in my HTML code?
Example:
In my PageHeaderTag, in XHTML code:
<table class="headingtable">
<tr>
<td>
<a href="http://www.site.co.za">
<img border="0" width="294" height="73" src="\images\image.jpg" width="100%" align="left"/></a>
p_web.GetSessionValue('LOC:Message')
</td>
</tr>
</table>
137
Web Server - Ask For Help / Thank you!
« on: March 30, 2012, 12:06:05 AM »
Hi Bruce,
This is just to say thank you for an excellent product!
Have been using NetTalk for almost two years now and recently started with the Web Server templates.
Our clients are very happy with the results and once you learn the basics, setting up a basic website is quick and very easy to do :-)
Thank you for answering all our queries so promptly ...
* To everyone else, this is not paid for :-)
Regards
Rupert
This is just to say thank you for an excellent product!
Have been using NetTalk for almost two years now and recently started with the Web Server templates.
Our clients are very happy with the results and once you learn the basics, setting up a basic website is quick and very easy to do :-)
Thank you for answering all our queries so promptly ...
* To everyone else, this is not paid for :-)
Regards
Rupert
138
Web Server - Ask For Help / Hidden Fields
« on: March 16, 2012, 04:06:56 AM »
Hi Guys,
I have a NetWebForm with a few hidden fields on the tab.
The hidden fields cause the buttons and footer on the same page to move down lower on the page.
Is there any way to make the hidden fields not effecting the position of the other elements on the page?
I have a NetWebForm with a few hidden fields on the tab.
The hidden fields cause the buttons and footer on the same page to move down lower on the page.
Is there any way to make the hidden fields not effecting the position of the other elements on the page?
139
Web Server - Ask For Help / MD5
« on: March 16, 2012, 03:08:05 AM »
Hi Guys,
I have seen somewhere that NetTalk has an MD5 function built-in.
Will appreciate if someone could help me with the function name?
Regards
I have seen somewhere that NetTalk has an MD5 function built-in.
Will appreciate if someone could help me with the function name?
Regards
140
Web Server - Ask For Help / Redirecting from one NetWebForm to another
« on: March 13, 2012, 04:58:42 AM »
Hi Guys,
From my application IndexPage I am calling the following Net-procedures:
<!-- Net:PageHeaderTag2 -->
<!-- Net:fWizard -->
<!-- Net:PageFooterTag -->
When I redirect from the NetWebForm (fWizard) to another NetWebForm using the "URL on Save" option,
... the second NetWebForm page opens, with the initial page-Header still displayed op top of the page, but the formatting of the header is all wrong.
The redirected page seems to lose the initial header size / formatting.
For example:
Initially the logo was resized, the border of the header were removed.
When the second NetWebForm page opens, the border is back, logo size is wrong, etc.
1. Is there a way to retain the original header formatting, when redirecting to internal page? OR
2. Is there a way to reload NEW HEADER when redirecting to internal page?
From my application IndexPage I am calling the following Net-procedures:
<!-- Net:PageHeaderTag2 -->
<!-- Net:fWizard -->
<!-- Net:PageFooterTag -->
When I redirect from the NetWebForm (fWizard) to another NetWebForm using the "URL on Save" option,
... the second NetWebForm page opens, with the initial page-Header still displayed op top of the page, but the formatting of the header is all wrong.
The redirected page seems to lose the initial header size / formatting.
For example:
Initially the logo was resized, the border of the header were removed.
When the second NetWebForm page opens, the border is back, logo size is wrong, etc.
1. Is there a way to retain the original header formatting, when redirecting to internal page? OR
2. Is there a way to reload NEW HEADER when redirecting to internal page?
141
Web Server - Ask For Help / Calling a memory form from another
« on: March 02, 2012, 03:28:15 PM »
Hi Guys,
I have a memory-based form, that I'd like to call from another memory-based (NetWebForm-Wizard).
I have some code in the "ValidateAll" embed of the NetWebForm-Wizard and need to call the second form from here - subsequent to the current code.
Is there a simple way to call the second form from here?
So, when the NetWebForm(Wizard) closes, it should call the second form (page).
I have a memory-based form, that I'd like to call from another memory-based (NetWebForm-Wizard).
I have some code in the "ValidateAll" embed of the NetWebForm-Wizard and need to call the second form from here - subsequent to the current code.
Is there a simple way to call the second form from here?
So, when the NetWebForm(Wizard) closes, it should call the second form (page).
142
Web Server - Ask For Help / NetWebBrowse in NetWebForm(Wizard)
« on: March 01, 2012, 02:03:43 AM »
Hi Guys,
When you have a NetWebBrowse inside a NetWebForm(Wizard), all records of the browse are not being displayed on one page. You can browse the records by "clicking" NEXT, on the NetWebBrowse.
The problem is that some records of the first page are being repeated on the second page, and so forth.
Say you have 14 records and the browse only displays ten records. The last 6 records of the first page, will be repeated on the second page with the remainder of the 4 records.
Some users are complaining that this is very confusing to them.
Is it possible to display 10 records on the first page, and only the remaining 4 records on the second page?
Regards
Rupert
When you have a NetWebBrowse inside a NetWebForm(Wizard), all records of the browse are not being displayed on one page. You can browse the records by "clicking" NEXT, on the NetWebBrowse.
The problem is that some records of the first page are being repeated on the second page, and so forth.
Say you have 14 records and the browse only displays ten records. The last 6 records of the first page, will be repeated on the second page with the remainder of the 4 records.
Some users are complaining that this is very confusing to them.
Is it possible to display 10 records on the first page, and only the remaining 4 records on the second page?
Regards
Rupert
143
Web Server - Ask For Help / NetWebClient - PageReceived to view response from server
« on: February 28, 2012, 05:43:28 AM »
Hi Guys,
I created a new application with a generic window that posts to a URL.
I used the following method to post
LOC:P1Value = '1234'
RequestNo = 1
thisclient.FreeFieldsQueue()
thisclient.SetValue('p1',clip(LOC:P1Value))
thisclient.ContentType='application/x-www-form-urlencoded'
ThisClient.Post('URL','')
I am unable to see any response. I used PageReceived embed and tried:
LOC:ReturnValue = ThisClient.Page
LOC:ReturnValue = ThisClient.PageLen
* all zero and blank
Is the PageReceived the correct embed to use after POST?
What is the easiest way to see the raw value being returned from the server?
I created a new application with a generic window that posts to a URL.
I used the following method to post
LOC:P1Value = '1234'
RequestNo = 1
thisclient.FreeFieldsQueue()
thisclient.SetValue('p1',clip(LOC:P1Value))
thisclient.ContentType='application/x-www-form-urlencoded'
ThisClient.Post('URL','')
I am unable to see any response. I used PageReceived embed and tried:
LOC:ReturnValue = ThisClient.Page
LOC:ReturnValue = ThisClient.PageLen
* all zero and blank
Is the PageReceived the correct embed to use after POST?
What is the easiest way to see the raw value being returned from the server?
144
Web Server - Ask For Help / Customer Registration Template
« on: February 22, 2012, 05:52:27 AM »
Hi Guys,
We are looking for an existing NT customer registration app/template, that we can modify.
New customers should be able to register, returning customers login, update records, etc.
We are looking for an existing NT customer registration app/template, that we can modify.
New customers should be able to register, returning customers login, update records, etc.
145
Web Server - Ask For Help / Message box
« on: February 20, 2012, 02:48:50 AM »
Hi Guys,
Is it possible to display a dialoque message box to the user from my web-application?
I looked at the message box example, but it requires an additional template.
Can a simple Java message box be called?
Regards
Rupert
Is it possible to display a dialoque message box to the user from my web-application?
I looked at the message box example, but it requires an additional template.
Can a simple Java message box be called?
Regards
Rupert
146
Web Server - Ask For Help / Global values
« on: February 20, 2012, 12:58:45 AM »
Hi Guys,
From other discussions I gathered that it is not good practice to use global variables for global values.
I do have some values that should be available to all procedures (web and non-web).
Can I use global variables for these?
What are the do's and don'ts re global-variables?
Regards
Rupert
From other discussions I gathered that it is not good practice to use global variables for global values.
I do have some values that should be available to all procedures (web and non-web).
Can I use global variables for these?
What are the do's and don'ts re global-variables?
Regards
Rupert
147
Web Server - Ask For Help / Run code from Server Side
« on: February 15, 2012, 11:23:33 PM »
Hi Guys,
There is some code that I'd like to add to the server-side window of my web-server app.
Thus, adding it to the web-server procedure.
How do I built-in a trigger from the web-page to 'action' the code inserted in the web-server procedure?
There is some code that I'd like to add to the server-side window of my web-server app.
Thus, adding it to the web-server procedure.
How do I built-in a trigger from the web-page to 'action' the code inserted in the web-server procedure?
148
Web Server - Ask For Help / Linking to credit card API
« on: February 07, 2012, 05:06:52 AM »
Hi Guys,
Following my previous post re "linking to credit card API";
I want to be able to communicate from my server to the CC API transparently.
And receive the CC API response back into my database.
I have a NetWebForm(Wizard), collecting data from the user.
And a NetWebClient() procedure in the same app.
The post to the CC API should look like this, as an example:
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>
I watched the Webinar on NetWebClient() and inserted the following lines of code:
RequestNumber = 1
ThisClient = FreeFieldsQueue()
ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
ThisClient.SetValue('P3',CLIP(LOC:Description)
ThisClient.ContentType='application/x-www-form-urlencoded'
ThisClient.POST('https://their_url/ccform.asp','')
* I did not specific any .SSLCertificateOptions, as it is not required by the API.
Back to my procedures:
My NetWebForm(Wizard) procedure, is memory-based and does not automatically insert / update the record. When the user clicks "Finish" in the wizard, I'd like to insert / update the record and call the NetWebClient procedure.
1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
2. I have quite a number of variables to pass between the NetWebForm and the NetWebClient, is the best way to first save the record from the NetWebForm(Wizard) and then to FETCH the record in the NetWebClient() for submission to the CC API?
The CC API makes provision for the following:
URL for cancelled transactions
URL for declined transactions
URL for authorised transactions
3. I am not too sure how to handle the response coming-back from the CC-API.
What they have indicated: If we use HTTP method "POST", the parameters will be embedded into the HTTP header.
How could I save the returned values from the reply?
Regards
Rupert
Following my previous post re "linking to credit card API";
I want to be able to communicate from my server to the CC API transparently.
And receive the CC API response back into my database.
I have a NetWebForm(Wizard), collecting data from the user.
And a NetWebClient() procedure in the same app.
The post to the CC API should look like this, as an example:
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>
I watched the Webinar on NetWebClient() and inserted the following lines of code:
RequestNumber = 1
ThisClient = FreeFieldsQueue()
ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
ThisClient.SetValue('P3',CLIP(LOC:Description)
ThisClient.ContentType='application/x-www-form-urlencoded'
ThisClient.POST('https://their_url/ccform.asp','')
* I did not specific any .SSLCertificateOptions, as it is not required by the API.
Back to my procedures:
My NetWebForm(Wizard) procedure, is memory-based and does not automatically insert / update the record. When the user clicks "Finish" in the wizard, I'd like to insert / update the record and call the NetWebClient procedure.
1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
2. I have quite a number of variables to pass between the NetWebForm and the NetWebClient, is the best way to first save the record from the NetWebForm(Wizard) and then to FETCH the record in the NetWebClient() for submission to the CC API?
The CC API makes provision for the following:
URL for cancelled transactions
URL for declined transactions
URL for authorised transactions
3. I am not too sure how to handle the response coming-back from the CC-API.
What they have indicated: If we use HTTP method "POST", the parameters will be embedded into the HTTP header.
How could I save the returned values from the reply?
Regards
Rupert
149
Web Server - Ask For Help / CSS Style Sheets
« on: January 24, 2012, 04:48:49 AM »
Hi Guys,
What could be the reason why one CSS class could effect another in a single app?
For example, I have these two classes in one CSS file:
.Tab1Txt {
font-weight: bold;
font-family: Verdana;
font-size: 13px;
etc ....
}
.Tab2Txt {
font-weight: normal;
font-family: Verdana;
font-size: 20px;
etc ....
}
Class Tax2Txt doesn't have any text "style" effect, until I move it prior to Tab1Txt in the CSS file.
As soon as [2] is above [1] in the CSS file, the styles are applied.
I checked my app and as far as I can see, these two classes were only used once on the respective tabs / text fields.
What is strange, is that [2] is not taking on the attributes of [1], but instead it cancels all styles when [2] is below [1] in the CSS file.
Any help will be appreciated.
Thanks, Rupert
What could be the reason why one CSS class could effect another in a single app?
For example, I have these two classes in one CSS file:
.Tab1Txt {
font-weight: bold;
font-family: Verdana;
font-size: 13px;
etc ....
}
.Tab2Txt {
font-weight: normal;
font-family: Verdana;
font-size: 20px;
etc ....
}
Class Tax2Txt doesn't have any text "style" effect, until I move it prior to Tab1Txt in the CSS file.
As soon as [2] is above [1] in the CSS file, the styles are applied.
I checked my app and as far as I can see, these two classes were only used once on the respective tabs / text fields.
What is strange, is that [2] is not taking on the attributes of [1], but instead it cancels all styles when [2] is below [1] in the CSS file.
Any help will be appreciated.
Thanks, Rupert
150
Web Server - Ask For Help / Change value before insert / save
« on: January 19, 2012, 04:46:50 AM »
Hi Guys,
I have a NetWebBrowse with a NetWebForm
The user is selecting some values on the form
I'd like to change / overwrite some values, just before the record is finally inserted / saved to the database from the form.
What will be the best embed to use in the form for the above ...?
Thanks
Rupert
I have a NetWebBrowse with a NetWebForm
The user is selecting some values on the form
I'd like to change / overwrite some values, just before the record is finally inserted / saved to the database from the form.
What will be the best embed to use in the form for the above ...?
Thanks
Rupert