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 361,926 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 2,652 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: 659 | Replies: 2 | Solved
Reply
Join Date: Jun 2007
Posts: 51
Reputation: naju is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
naju's Avatar
naju naju is offline Offline
Junior Poster in Training

Help tag id after ajax call not visible by js

  #1  
Mar 16th, 2008
i am using scriptaculous.js and prototype.js


my ajax is returning following tags (text)
<p id="tobeedited4">one</p> (should manually select "two")

and while calling the ajax it has
 new Ajax.Updater('contact_div_edit',"./doit.php", {asynchronous:true, parameters:poststr,onComplete: showResponse, evalScripts:true});
onComplete: showResponse

my showResponse function goes like this
function showResponse()
{
new Ajax.InPlaceCollectionEditor(
  'tobeedited4', '_ajax_inplaceeditor_result.html', {
  collection: ['one','two','three'],
  value: 'two',
  ajaxOptions: {method: 'get'} //override so we can use a static for the result
});
}


i have included all the required js files and everythings goes fine (program flow)
But the problem is:
the p tag with id tobeedited4 is not visible from showResponse function ...


pliz help me to solve this issue.

I just want InPlaceCollectionEditor to apply on the tags after ajax call
Is there a way to solve this ???? is this possible ????
Hunters Never Hurt
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Posts: 51
Reputation: naju is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
naju's Avatar
naju naju is offline Offline
Junior Poster in Training

Re: tag id after ajax call not visible by js

  #2  
Mar 16th, 2008
pliz anybody ... identify my mistake ...
i really need to get ride of this problem
Hunters Never Hurt
Reply With Quote  
Join Date: Jun 2007
Posts: 51
Reputation: naju is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
naju's Avatar
naju naju is offline Offline
Junior Poster in Training

Re: tag id after ajax call not visible by js

  #3  
Mar 16th, 2008
Thanks for everyone's follow-up

i solved my funny problem ...

i've should put the script tag along with the ajax return ...
Hunters Never Hurt
Reply With Quote  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

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

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