A
Alec Dwyer
Hello all.
The developer who usually handles my javascript has been unresponsive
in a time when I need to figure out a problem so I'm hoping for help
understanding why values are not being passed.
My form looks like the following:
< form id="mylogin_page" action="mylogin_page_check.htm" method="post"< script type="text/javascript" >
$('checkout_nav').getElements('.cart_buttons').each( function(item)
{item.setStyle('display', 'block');});
< /script >
< input type="text" name="color" value="Green" />
< a onclick="myloginfunction('submit_login');" >
< img src="/icon.png" alt="Login Now" />
Submit
< /a >
< /form >
The javascript function "myloginfunction" looks like this:
function myloginfunction(step){
if(step=='start')..................
else if(step=='submit_login'){
cartpost=$('mylogin_page');
new Request.HTML({
url: 'mylogin_page_check.htm',
method: 'post',
update: 'mycart',
onComplete: function(){
},
onSuccess: function(){
return false;
}
}).post(mycartpost);
}
What I need to happen is the html control "color" on the form needs to
be passed to the page "mylogin_page_check.htm"... which it is
currently not doing"
I went to use a js alert just after the above else if to display
values getting passed to the function... but don't know js well enough
to specify what var values need to be in the dialog to display what is
being passed.
Any help with this would be greatly appreciated.
Thank you.
--Rick
The developer who usually handles my javascript has been unresponsive
in a time when I need to figure out a problem so I'm hoping for help
understanding why values are not being passed.
My form looks like the following:
< form id="mylogin_page" action="mylogin_page_check.htm" method="post"< script type="text/javascript" >
$('checkout_nav').getElements('.cart_buttons').each( function(item)
{item.setStyle('display', 'block');});
< /script >
< input type="text" name="color" value="Green" />
< a onclick="myloginfunction('submit_login');" >
< img src="/icon.png" alt="Login Now" />
Submit
< /a >
< /form >
The javascript function "myloginfunction" looks like this:
function myloginfunction(step){
if(step=='start')..................
else if(step=='submit_login'){
cartpost=$('mylogin_page');
new Request.HTML({
url: 'mylogin_page_check.htm',
method: 'post',
update: 'mycart',
onComplete: function(){
},
onSuccess: function(){
return false;
}
}).post(mycartpost);
}
What I need to happen is the html control "color" on the form needs to
be passed to the page "mylogin_page_check.htm"... which it is
currently not doing"
I went to use a js alert just after the above else if to display
values getting passed to the function... but don't know js well enough
to specify what var values need to be in the dialog to display what is
being passed.
Any help with this would be greatly appreciated.
Thank you.
--Rick