Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old December 9th, 2007, 10:35 AM
Chris
Guest
 
Posts: n/a
Default Capturing ajax response

I am using the code below to show a form when any link is clicked on
a
page.

My question is how do I get reponseEl (the ajax form's php response)
to direct the response output to node_id? At the moment it points to
a
div surrounding the form and that works, but I can't get it to send
the response to node_id?


<head>
function showStuff(evt,txt){
var node = (evt.target) ? evt.target : ((evt.srcElement) ?
evt.srcElement : null );


if (node.getAttribute("NAME") == "showlink") {


node_id = node.getAttribute("ID");
........


}
}


</head>
<body>
.........
<script type="text/javascript">
var formObj = new DHTMLSuite.form(
{
formRef:'myForm',
action:'formSubmit.php',
responseEl:'formResponse',
callbackOnComplete: 'cfmBoxClose()'

}


);
</script>

</body>


Many thanks,


Chris





 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.