• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Appending form value to coldFusion.navigate function

Hi All,
Could do with some help, I need to post a form value either via the URL as I attempted or some how make it available on the next page upon clicking on the link. If anyone can help

Thanks in advance

<a href="viewcart" onClick="javaScript:ColdFusion.navigate('checkout.cfm?vDate=document.vDate.selectdate.value','productlistDiv');return false;" title="Checkout Cart"><img src="img/butCheckoutCart.jpg" alt="Checkout Cart" border="0" /></a

Open in new window

0
pigmentarts
Asked:
pigmentarts
1 Solution
 
azadisaryevCommented:
1) no need to specify 'javascript:' in onclick event - it expects a js function by default, and ColdFusion.navigate IS a js function.
2) you should put a valid link or named anchor in the HREF attribute of your link instead of your 'viewcart', which is neither.
3) to add js to a parameter of ColdFusion.navigate finction, you need to put it OUTSIDE the quotation marks:
ColdFusion.navigate('checkout.cfm?vDate='+document.vDate.selectdate.value,'productlistDiv')

so, your link should look like this:

<a href="#viewcart" onClick="ColdFusion.navigate('checkout.cfm?vDate='+document.vDate.selectdate.value,'productlistDiv');return false;" title="Checkout Cart"><img src="img/butCheckoutCart.jpg" alt="Checkout Cart" border="0" /></a>

Azadi
0
 
pigmentartsAuthor Commented:
Thanks Azadi works like a charm.

Regards
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now