Click here to Skip to main content
15,899,679 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: adding a item to listbox by javascript Pin
mrMercury31-Mar-09 17:51
mrMercury31-Mar-09 17:51 
GeneralRe: adding a item to listbox by javascript Pin
[N][Q][H]31-Mar-09 18:08
[N][Q][H]31-Mar-09 18:08 
QuestionFirefox and onblur event Pin
ycorre31-Mar-09 14:55
ycorre31-Mar-09 14:55 
QuestionWSS and Ajax Pin
Not Active31-Mar-09 6:36
mentorNot Active31-Mar-09 6:36 
AnswerRe: WSS and Ajax Pin
I am BATMAN31-Mar-09 6:47
I am BATMAN31-Mar-09 6:47 
GeneralRe: WSS and Ajax Pin
Not Active31-Mar-09 6:50
mentorNot Active31-Mar-09 6:50 
AnswerRe: WSS and Ajax Pin
Not Active31-Mar-09 10:21
mentorNot Active31-Mar-09 10:21 
QuestionChanging a form's target through javascript Pin
William Engberts31-Mar-09 5:15
William Engberts31-Mar-09 5:15 
Hi guys,

I am currently writing the payment part of a webshop. There are three ways of payment, and the customer szelects one of these three by means of a selection in the form. The actual submit button start a javascript function that checks the payment method and sets the form's target to a intermediate page for each of the three payment methods. The code I use is very simple:

if (document.orderform.method[0].checked == true)
{
document.orderform.target = '_self';
document.orderform.submit();
}
else if (document.orderform.method[1].checked == true)
{
document.orderform.target = '_self';
document.orderform.action = 'ideal.php';
document.orderform.submit();
}
else if (document.orderform.method[2].checked == true)
{
document.orderform.target = '_blank';
document.orderform.action = 'paypal.php';
document.orderform.submit();
}
else
alert ("please select a payment method");

This works fine in firefox, however IE7 says "object doesn't support this property or method" This occurs at "...action='ideal.php';" When I give the action a value (document.orderform.action.value='ideal.php') IE does not complain, but does not change the form's action either (also firefox does not change the action anymore)

Does anyone have a suggestion on how to change the form's action in all browsers?

Any suggestions are greatly appreciated.

Thanks in advance,
William
AnswerRe: Changing a form's target through javascript Pin
I am BATMAN31-Mar-09 6:31
I am BATMAN31-Mar-09 6:31 
Questionget_serverversion exception ocurred when webservice create connection to remote db Pin
Member 314758430-Mar-09 23:23
Member 314758430-Mar-09 23:23 
QuestionZip files runtime Pin
SubarnaMishra30-Mar-09 21:05
SubarnaMishra30-Mar-09 21:05 
AnswerRe: Zip files runtime Pin
SeMartens31-Mar-09 21:27
SeMartens31-Mar-09 21:27 
QuestionWeb Service callback in Desktop Client getting problem Pin
NazarHussain30-Mar-09 13:34
NazarHussain30-Mar-09 13:34 
QuestionVery in depth and specific help needed Pin
shawndeprey30-Mar-09 10:02
shawndeprey30-Mar-09 10:02 
AnswerRe: Very in depth and specific help needed Pin
Yusuf30-Mar-09 10:13
Yusuf30-Mar-09 10:13 
GeneralRe: Very in depth and specific help needed Pin
shawndeprey30-Mar-09 17:09
shawndeprey30-Mar-09 17:09 
AnswerRe: Very in depth and specific help needed Pin
shawndeprey31-Mar-09 5:46
shawndeprey31-Mar-09 5:46 
GeneralRe: Very in depth and specific help needed Pin
mrMercury31-Mar-09 7:40
mrMercury31-Mar-09 7:40 
GeneralRe: Very in depth and specific help needed Pin
shawndeprey1-Apr-09 7:27
shawndeprey1-Apr-09 7:27 
QuestionFirst Spring Login Page Pin
sanuji29-Mar-09 19:07
sanuji29-Mar-09 19:07 
AnswerRe: First Spring Login Page Pin
Yusuf30-Mar-09 10:15
Yusuf30-Mar-09 10:15 
QuestionClass diagram Pin
CrimeanTurtle200829-Mar-09 15:17
CrimeanTurtle200829-Mar-09 15:17 
AnswerRe: Class diagram Pin
Yusuf30-Mar-09 10:16
Yusuf30-Mar-09 10:16 
QuestionSender ID question Pin
MarkB77728-Mar-09 22:56
MarkB77728-Mar-09 22:56 
AnswerRe: Sender ID question Pin
Marc Firth29-Mar-09 23:48
Marc Firth29-Mar-09 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.