Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-22-2010, 05:46 PM   PM User | #1
hunghoang
New to the CF scene

 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hunghoang is an unknown quantity at this point
Need help

Hi, I am stuck on this problem for a few day and need some help. I am trying to display a field that have a match record with another table but I am stuck. Can anyone help me?

Thanks.

function showFields() {
setStatus("Loading...")
var ID = document.getElementById("ID").value;
//this line giving me error message "Object Required."
var SubNbr = document.getElementById("SubscriberID").value;
if (ID != ''){

var m = doAjaxCall("ShowFields", "{'ID':"+ID+"}" );
if (m.substring(0,7) != "ERROR: "){ //We have the form data now load the form
//We need a funciton to return the data.

dispForm(frmCDC, m);
getFormField(SubNbr, m);
setSelect(ID);
setStatus("Idle...");
}
else{
alert(m);
setStatus(m);
}
}
else
setStatus("Idle(No Match)...");

Adding = false;
};
hunghoang is offline   Reply With Quote
Old 10-23-2010, 03:46 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
hunghoang - Do please read the posting guidelines regarding silly thread titles. The thread title is supposed to help people who have a similar problem in future. Yours is useless for this purpose. You can (and should) edit it to make it more meaningful.

When posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar which will insert the tags. You can (and should) edit your previous post.
Philip M is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Advertisement
Log in to turn off these ads.