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

Pages: 1 ... 16 17 [18] 19 20 ... 22
256
Web Server - Ask For Help / Re: Message box
« on: February 22, 2012, 05:25:45 AM »
Thanks Matthew, the popup message is working ...

I'd like to display the message after the user clicked FINISH in the NetWebForm(Wizard)
Source = Memory.

I tried the ValidateAll embed, but crashes the page as soon as the message is called.
I guess it's because the thread is already closed at this point ..?

Is there a spot that I can include p_web.Script('alert(''xxx'');')
.. after the user clicked the FINISH button?

257
Web Server - Ask For Help / Re: Global values
« on: February 21, 2012, 12:00:42 AM »
Thanks Bruce,

It is getting a bit more trickier;

In a previous post, I asked about triggering or "calling" a procedure on the "server-side" and you advised me to START a new procedure in a new thread.  I am currently starting the new procedure from a form, after INSERT.

This actually worked fine :-)  But how do I get a value across to the new STARTED procedure?
If I cannot pass parameters during START?

258
Web Server - Ask For Help / Re: Global values
« on: February 20, 2012, 01:40:43 PM »
Hi Rene,

>> To make sure that p_web methods like ssv and gsv can be used in your non-web
>> procedures you have to add prototype-  NetWebServerWorker p_web  -to the non-web
>> procedures you use.

I have added the "prototype" (NetWebServerWorker p_Web) to my non-web procedure.
I have added the same to Parameters line of the non-web procedure?

The non-procedure is called on a new thread START(proc,10000)
Do I have to add the parameter when calling the non-web procedure?



259
Web Server - Ask For Help / Re: Global values
« on: February 20, 2012, 03:49:52 AM »
Thanks Kevin,

So global variables should be safe to use, if the value stays the same throughout my application?
All sessions and threads.
For example:  Company Name?

260
Web Server - Ask For Help / Re: Global values
« on: February 20, 2012, 03:47:33 AM »
Thanks Rene,

I had difficulty using the session-variables in my "non-web" procedures, but the prototype syntax will surely help :-)

Just to have clarity;
All non-web procedures called from/after a web-page, should have the value for the session variable when using the "prototype" syntax?

All non-web procedures called before a web-page, as for example the "Web-Server" procedure, will not have access to the session values?  As the value could vary from session-to-session?

Regards
Rupert

261
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

262
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



263
Web Server - Ask For Help / Re: Run code from Server Side
« on: February 17, 2012, 01:19:12 AM »
Hi Bruce,

Is it possible to put a "timer event" on the server side procedure to monitor for a trigger?
How do I pass a value from a session variable to the server side "timer event" to trigger the event?

264
Web Server - Ask For Help / Re: Run code from Server Side
« on: February 16, 2012, 12:40:29 AM »
Hi Bruce,

I think the best way is to code the "trigger" in the post-insert, start embed of the form.

Thus, when the record is inserted, it will action the code on the server-side.

Regards
Rupert

265
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?

266
Web Server - Ask For Help / Re: Linking to credit card API
« on: February 10, 2012, 05:24:17 AM »
Thanks Bruce,

The problem was that I was redirecting to another page and need to save the record values, before redirecting.
My problem was caused by "URL ON SAVE" bypassing the Validation Routine.



267
Web Server - Ask For Help / Re: Linking to credit card API
« on: February 09, 2012, 04:29:33 AM »
Hi Bruce,

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

ValidateRecord routine

I have added some code in the "ValidateRecord" routine,
BEFORE  p_web.DeleteSessionValue('fWizard_ChainTo') in the embeditor
The code however is NOT executed when the wizard FINISH button is clicked, not sure what I am missing here ...


>> 3.  I am not too sure how to handle the response coming-back from the CC-API.

in .PageReceived method in your Webclient procedure.

>> ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
>> ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
>> ThisClient.SetValue('P3',CLIP(LOC:Description)

they don't have fields P1, P2, P3. so wy are you setting these values?

Their documentation indicate field names P1 .. P12
For example:  P1 = Terminal ID.
So I guess I have to set these values:
ThisClient.SetValue('P1',CLIP(LOC:TerminalID) ... before posting?


Regards
Rupert

268
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


269
Web Server - Ask For Help / Re: Link to credit card API
« on: February 07, 2012, 04:27:06 AM »
Hi Johan,

Sorry, I only opened this topic again today.
Only saw your post now ... didn't see any notification.

No, it's not yet working, but I think I am on the right track :-)

Will start a new topic with the latest info and questions.

Regards
Rupert

270
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

Pages: 1 ... 16 17 [18] 19 20 ... 22