473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

link text not updating

Hi Guys,

I am facing a problem in which the basket link text is not getting updated on adding products into the cart. I have checked the item size, price and currency are correct in the catminibasket.inc.js.jsp . One problem is that "basketForm" element is not visible in the catalog area or catminibasket.inc.js.jsp. That is why the flow is not going into the if else loop. Could you please help me sort out what is causing the problem because of which the text in the link is not updating & the "basketForm" element is not visible in the jsp.
The code segment in header.jsp for basketForm element is like this :

Expand|Select|Wrap|Line Numbers
  1. <form id="basketForm" name = "basketForm" action="javascript:show_basket();">
  2.             <div>
  3.                 <input name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" />
  4.             </div>
  5.         </form>


Also the code segment in the catminibasket.inc.js.jsp is :

Expand|Select|Wrap|Line Numbers
  1. if (isaTop().header.document.forms("basketForm")) {
  2.  
  3.            <% if ("negotiatedContract".equals(mb_doctype)) { %>
  4.                    isaTop().header.setBasketLinkText("<%=itemSize%> <isa:translate key="b2b.header.minibasket.ncontract"/>");
  5.            <% }
  6.               else {
  7.                 //note: used for all sales documents except 'negotiated contracts'
  8.                 if ("-1".equals(itemSize) && "-1".equals(netValue)) { %>
  9.                          isaTop().header.setBasketLinkText("<isa:translate key="b2b.header.minibasket.default"/>");
  10.                  } 
  11.                   else {
  12.  
  13.                     isaTop().header.setBasketLinkText("<%=itemSize%> <isa:translate key="b2b.header.minibasket.l1"/> <%=
  14.                          netValue %> <%= JspUtil.encodeHtml(currency) 
  15.                     %>");
  16.  
  17.                <% } 
  18.                 }

Thanks & Regards,
Sunil Patidar
Dec 21 '11 #1
1 1633
Dormilich
8,658 Expert Mod 8TB
what is the JavaScript as received by the browser?
Dec 21 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JimJones | last post by:
Hey, I don't really know much about ASP but I need some help modifying the way a field is currently displayed. Currently the ASP code inside my page is simply: <%=rs.Fields("Notes")%> ...
1
by: Margaret Asami | last post by:
I have 2 frames, one frame is a table of content with a bunch of links, and the other frame houses the contents. I want to be able to change the color of the link text when the user clicks on it. ...
1
by: Jordan Richard | last post by:
How can I create a link (<A... href=...>some link text here</A>) that does *not* underline the text? Thanks.
3
by: John M | last post by:
Hello, Is there any way to link a "textbox" element, that is on the aspx page, to a field on database ? Need sample code, please. Thanks :)
5
by: Al | last post by:
Hi All I need to include Link text in my RichTextBox field. Very similar to LinkLabel but in richtextbox. If anyone can provide me with hint or solution I would really appreciated it. If not...
3
by: Steve Swift | last post by:
Given a choice between: 1. <A HREF=z><NOBR>Non breaking link</NOBR></A> 2. <NOBR><A HREF=z>Non breaking link</A></NOBR> .... a nothing else; absolutely nothing else, is there any reason to...
7
by: D.M. Procida | last post by:
<http://www.w3.org/QA/Tips/noClickHeresays: When calling the user to action, use brief but meaningful link text that: * provides some information when read out of context * explains...
0
by: Doug Laidlaw | last post by:
Upon trying to edit my index page at http://www.douglaidlaw.net/boykett/index.htm, NVU says that it can't edit it for an "unknown reason." Putting it through the W3C editor shows that I have...
4
by: farhanm84 | last post by:
I have a requirement to display the link in colum format in IE browser. The link text is associated with an image (double arrow). Since the text of the link is large enough to set in one of the...
4
by: | last post by:
I often see, on certain websites, to the right of link-text, a number or letter inside angle-brackets, and superscripted (or raised slightly). I've never seen anything explaining what these are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.