FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Passing data to another website with Form Post
Passing data to another website with Form Post
Débuté par PrinceFemiAdeniyi, 05 avr. 2022 16:48 - 5 réponses
Connectez-vous…
PrinceFemiAdeniyi
#1
Membre enregistré
31 messages
Popularité : +1 (1 vote)
Posté le 05 avril 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
Signaler
0
0
argus
#2
Posté le 05 avril 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
Signaler
0
0
PrinceFemiAdeniyi
#3
Membre enregistré
31 messages
Popularité : +1 (1 vote)
Posté le 08 avril 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
Signaler
0
0
argus
#4
Posté le 08 avril 2022 - 13:14
that is the "destination" parameter of your button/link (first tab)
or with the "changedestination" function
Signaler
0
0
PrinceFemiAdeniyi
#5
Membre enregistré
31 messages
Popularité : +1 (1 vote)
Posté le 02 juillet 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
Signaler
0
0
EdwardOKDUDUMARI
#6
Membre enregistré
7 messages
Posté le 25 juillet 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
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte