User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,450 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,008 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1013 | Replies: 2
Reply
Join Date: Sep 2006
Posts: 3
Reputation: AniruddhaKelkar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AniruddhaKelkar AniruddhaKelkar is offline Offline
Newbie Poster

Javascript Problem....

  #1  
Sep 17th, 2006
Hi,
I am facing a strange problem....

I have a datagrid in which has a few textboxes. 1 of these text boxes is un-editable (it is a computed value). The computations for that textbox have been done using javascript. In the asp page the value is taken using Find Controls.

The problem occuring is, the javascript calcuates the value and is displayed on the screen, but the same value is not passed to the vb page and hence the desired value is not sent to the database.

Also this error is not regularly occuring. It has occured only on a couple of occasions. The rest of the time, everything works as desired.
Please help......
Aniruddha
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: india
Posts: 143
Reputation: katarey is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 15
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Javascript Problem....

  #2  
Sep 18th, 2006
Hi Aniruddha,

Well it should work! But by the way feel free to add your code here

Katarey
Reply With Quote  
Join Date: Sep 2006
Posts: 3
Reputation: AniruddhaKelkar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AniruddhaKelkar AniruddhaKelkar is offline Offline
Newbie Poster

Re: Javascript Problem....

  #3  
Sep 18th, 2006
Originally Posted by katarey View Post
Hi Aniruddha,

Well it should work! But by the way feel free to add your code here

Katarey




Hi Katarey,

Thanks a lot for the reply......

Now let me explain the situation in detail.

Say there is a datagrid with 4 text boxes in 1 row. The data grid has n such rows.
The first 3 textboxes are editable. The value in the 4th txtbox is calculated by a simple mathematical formula applied on the values in the first 3 text boxes.

This calculation is done using javascript. The values in all the textboxes are stored in hidden txtboxes.

Further these values are accessed in the vb page using the code

txtABC = Ctype(dgDataItem.FindControl("txtABC"),HtmlInputHidden)

These values are now passed to the database. The problem occuring here is that the value for the first row is passed correctly. But next row onwards, the desired value is not passed.

Also, this problem is not occuring regularly. This case has occured only on a couple of occasions. The rest of the times everything works fine.

Has this got something to do with the security settings ??

Hope you can identify some way of resolving this issue....

Aniruddha
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 3:12 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC