FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
Passing data to another website with Form Post
Passing data to another website with Form Post
Iniciado por PrinceFemiAdeniyi, 05,abr. 2022 16:48 - 5 respuestas
Conéctese…
PrinceFemiAdeniyi
#1
Miembro registrado
31 mensajes
Popularité : +1 (1 vote)
Publicado el 05,abril 2022 - 16:48
Hi All,
I need to call another listening website via a Form post.
WB provides HttpFormCreate, httpformSend etc and when executed give no errors. however, it does not open the new site in a browser no give any response. See code below:
//*************
okay is boolean
HTTPCreateForm("Crystal")
HTTPAddParameter("Crystal", "reportName", "iGroupPlan\BrokerList.rpt")
okay = HTTPSendForm("Crystal", "
http://localhost/ReCrystallizeServer/ViewReport.aspx
")
IF okay = False THEN
Trace(ErrorInfo(errCode))
END
//***************
The httpsendform() code ought to open a new page on the browser and display the results in "viewreport.aspx"
What am I doing wrong?
TIA
--
Thanks in advance
Femi
Informar
0
0
argus
#2
Publicado el 05,abril 2022 - 17:05
you are just using functions that are NOT for what you want.
all the httpxxx functions are made to retrieve an anwser from a web site as a STRING that can then be processed
If you want to DISPLAY another web site, then there are several other instructions for that like scriptdisplay
Informar
0
0
PrinceFemiAdeniyi
#3
Miembro registrado
31 mensajes
Popularité : +1 (1 vote)
Publicado el 08,abril 2022 - 04:21
Many tks Argus.
ScriptDisplay did work eventually. However, I had to pass a html file to it before it ran correctly. The only issue I have now is that it displays on the same page.
How do I display on a new browser tab without disrupting the current state of the current browser?
--
Thanks in advance
Femi
Informar
0
0
argus
#4
Publicado el 08,abril 2022 - 13:14
that is the "destination" parameter of your button/link (first tab)
or with the "changedestination" function
Informar
0
0
PrinceFemiAdeniyi
#5
Miembro registrado
31 mensajes
Popularité : +1 (1 vote)
Publicado el 02,julio 2022 - 13:25
Thanks a lot Argus... 3 thumbs up
All is fine now. Thot I responded to this back then.
Appreciate a lot.
--
Thanks in advance
Femi
Informar
0
0
EdwardOKDUDUMARI
#6
Miembro registrado
7 mensajes
Publicado el 25,julio 2022 - 12:00
If you have no option to use server-side programming, such as PHP, you could use the query string, or GET parameters.
In the form, add a method="GET" attribute:
<form action="display.html" method="GET">
<input type="text" name="serialNumber" />
<input type="submit" value="Submit" />
</form>
When they submit this form, the user will be directed to an address which includes the serialNumber value as a parameter. Something like:
http://www.example.com/display.html…
You should then be able to parse the query string - which will contain the serialNumber parameter value - from JavaScript, using the window.location.search omegle.2yu.co value:
// from display.html
document.getElementById("write").innerHTML = window.location.search; // you will have to parse
// the query string to extract the
// parameter you need
More you can check out here:
https://stackoverflow.com/questions/12183572/how-to-use-javascript-to-fill-a-form-on-another-page/12183659…
/
https://omegle.love
/
https://omglz.com
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto