Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Several submit buttons in HTML page
Message
 
 
À
03/06/2015 14:00:49
Information générale
Forum:
HTML5
Catégorie:
HTML
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01620499
Message ID:
01620599
Vues:
39
>>Tried that, but the application still refuses to cooperate :(
>>
>>
>>if (lnKey==13)
>>   {
>>      alert('Testing...');
>>	  var form = document.getElementById('frmAddItem');
>>	  
>>	  form.action = 'btnRemoveOverdue=Remove+Overdue&' + form.action;
>>	  alert(form.action);		
>>	  
>>	  var btn = document.getElementById('btnRemoveOverdue')
>>	  if (btn)
>>			btn.click();
>>			
>>
>>I also do not see any of the alert messages. May be there is another way to see that my code is being executed? The problem is that it's C++ application using some browser control to display the page that is being send by VFP application.
>
>You need to add the query string after the actual value of the action.
>
>Also, if you are not seeing a Javascript error, your browser needs to be set to show those errors.

I've tried originally form.action = form.action + '&btnRemoveOverdue=Remove+Overdue'; with the same result.

I am not sure about your other suggestion. When I was having an error in the script (unclosed }), I did get the message from the browser about an error. But I am not getting any alerts and I think it may be due to the fact I'm not using browser directly, I'm using C++ application. Although I am also going to try to check generated HTML directly in the browser, thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform