SQLExpress - Xb2.NET     ot4xb  
xb2net
Xb2 Net
Thread Starter: eldhose Started: 2/22/2008 9:23 AM UTC
Replies: 7
Xb2 Net
Display my page using xb2net program but i can't get data from textbox , combobox etc how can i do it and call my function from the displayed page


Regards
Eldhose
Re: Xb2 Net
"eldhose" <support@datadevices.com> wrote in news:2qeufg80qyd42pi.220220081023@VDS-472773:

Display my page using xb2net program but i can't get data from textbox , combobox etc how can i do it and call my function from the displayed page

you need to create a FORM with the various controls and then POST the form data to your Xb2.NET server. Here is a sample login form (client side):

<form name='login' method='post' action='MyFunc'>
User ID: <input type=text name='UID' maxlength=11 size=16>
Password: <input type=password name='PWD' maxlength=11 size=16>
<input type=submit value='LOGIN' font:bold 12px verdana;'>
</form>

When the user clicks LOGIN, the form data will be passed to a server-side "WEB_MYFUNC" function.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Xb2 Net
ok i try it its work but cant get variable value from in my xbase function from the page

thanks & regards
Eldhose


"eldhose" <support@datadevices.com> wrote in message news:2qeufg80qyd42pi.220220081023@VDS-472773...
Display my page using xb2net program but i can't get data from textbox , combobox etc how can i do it and call my function from the displayed page


Regards
Eldhose
Re: Xb2 Net
"eldhose" <support@datadevices.com> wrote in
news:x68c0wdqlmr5cax.230220080851@VDS-472773:  

ok i try it its work but cant get variable value from in my xbase
function from the page

Take a look at procedure WEB_Login() in WEBFUNC.PRG

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Xb2 Net
thanks its work fine

how can i create sub menu in my web page from menu database file

regards
eldhose



"Boris Borzic" <ng-at-sqlexpress-dot-net> wrote in message news:Xns9A4D5F8A62198SQLExpress@62.193.212.32...
"eldhose" <support@datadevices.com> wrote in
news:x68c0wdqlmr5cax.230220080851@VDS-472773:

> ok i try it its work but cant get variable value from in my xbase
> function from the page

Take a look at procedure WEB_Login() in WEBFUNC.PRG

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Xb2 Net
"eldhose" <support@datadevices.com> wrote in news:swfdak716ympuzu.260220080830@VDS-472773:

how can i create sub menu in my web page from menu database file

for this you can use some existing JavaScript libraries (many of these are free). Do a search on google for "javascript menu", here's some links to follow-up on:

http://www.apycom.com/
http://www.softcomplex.com/products/tigra_menu/
http://dhtml-menu.com/


Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Xb2 Net
thanks all

   is anyone send me an example for submenu creation   using JavaScript libraries


Regards
eldhose

"Boris Borzic" <ng-at-sqlexpress-dot-net> wrote in message news:Xns9A509139514AESQLExpress@62.193.212.32...
"eldhose" <support@datadevices.com> wrote in
news:swfdak716ympuzu.260220080830@VDS-472773:

> how can i create sub menu in my web page from menu database file

for this you can use some existing JavaScript libraries (many of these are
free). Do a search on google for "javascript menu", here's some links to
follow-up on:

http://www.apycom.com/
http://www.softcomplex.com/products/tigra_menu/
http://dhtml-menu.com/


Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Problem with SSL conection

Hello:

Excuse my English, please.

My name is Jose Francisco Rangel.

I wouldreferyouthis e-mail in hopes that you can help me. I supposethat I willbedoingsomethingwrongbut do notknowwhatis.

When I executethefollowingcodewithout SSL, everything works perfectly
   oSOAPRequest:=xbSOAPEnvelope():New()
   oSOAPRequest:AddNameSpace('SOAPSDK1="spellChecked="true">http://www.w3.org/2001/XMLSchema"')
   oSOAPRequest:AddNameSpace('SOAPSDK2="spellChecked="true">http://www.w3.org/2001/XMLSchema-instance"')
   oSOAPRequest:AddNameSpace('SOAPSDK3="spellChecked="true">http://schemas.xmlsoap.org/soap/encoding/"')
   oSOAPRequest:AddNameSpace('SOAP-ENV="spellChecked="true">http://schemas.xmlsoap.org/soap/envelope/"')
   oSOAPRequest:Action:="trataPeticionPago"
   oSOAPRequest:NameSpace:=SERMEPA_NAME_SPACE
   oSOAPRequest:SetStyle(SOAP_STYLE_DOCUMENT,SOAP_BINDING_LITERAL)
   oSOAPRequest:AddVar("entradaXML",::ToXML():Serialize(),'xmlns:SOAPSDK4="'+SERMEPA_NAME_SPACE+'"')
   oSOAPResponse:=oSOAPRequest:Execute(SERMEPA_SERVIDOR_HTTP,"trataPeticionPago")
Butwhen I runitwith SSL, theanswer I getismistaken.

   oSOAPRequest:=xbSOAPEnvelope():New()
   oSOAPRequest:AddNameSpace('SOAPSDK1="spellChecked="true">http://www.w3.org/2001/XMLSchema"')
   oSOAPRequest:AddNameSpace('SOAPSDK2="spellChecked="true">http://www.w3.org/2001/XMLSchema-instance"')
   oSOAPRequest:AddNameSpace('SOAPSDK3="spellChecked="true">http://schemas.xmlsoap.org/soap/encoding/"')
   oSOAPRequest:AddNameSpace('SOAP-ENV="spellChecked="true">http://schemas.xmlsoap.org/soap/envelope/"')
   oSOAPRequest:Action:="trataPeticionPago"
   oSOAPRequest:NameSpace:=SERMEPA_NAME_SPACE
   oSOAPRequest:SetStyle(SOAP_STYLE_DOCUMENT,SOAP_BINDING_LITERAL)
   oSOAPRequest:AddVar("entradaXML",::ToXML():Serialize(),'xmlns:SOAPSDK4="'+SERMEPA_NAME_SPACE+'"')

   oSSLContext:=xbSSLContext():New()
   oSSLContext:UseCertificateChainFile("C:\Certificados\Desarrollo\Formato PEM\sas-d.sermepa.es.cer")

   oSOAPRequest:SetSSLContext(oSSLContext)

   oSOAPResponse:=oSOAPRequest:Execute(SERMEPA_SERVIDOR_HTTPS,"trataPeticionPago")

I havecheck certificate iscorrectlyloaded.

Response is: "Client: recv error."

Can youhelp me, please.

Thankyou.

 

José Francisco Rangel Serrano

Director Técnico

Aseproda Informática, S.L.

desarrollo@aseproda.com