Dynamic location - an Ajax related question

Having a dynamic list of article on a JSP, I want all comments of an article only displayed when a user click a URL of the article. I have made all comments of one article shown after a list of articles on the bottom of the page. I want to them appeared right under the article instead. The difficulty I have is that I don't know how to make the Ajax response display DIV block dynamic inserted right under the article.
A code segment of my JSP file:
<c:forEach var="entry" items="${model.articlest}">
</c:forEach>
<br/>
<blockquote><div id="comments"></div></blockquote>
  A code segment of my Ajax code:
     function handleCommentRetrieve() {
          if (searchReq.readyState == 4) {
               var ss = document.getElementById('comments')
               ss.innerHTML = searchReq.responseText.split("\n");
     }      Any suggestions?
Thanks very much in advance.
[Recommend and review web sites|http://homepage.kgbinternet.com] - a fresh approach of building an open source, useful, and dynamic web site directory
Edited by: vwuvancouver on Apr 17, 2009 9:10 AM

vwuvancouver wrote:
Having a dynamic list of article on a JSP, I want all comments of an article only displayed when a user click a URL of the article. I have made all comments of one article shown after a list of articles on the bottom of the page. I want to them appeared right under the article instead. The difficulty I have is that I don't know how to make the Ajax response display DIV block dynamic inserted right under the article.
A code segment of my JSP file:
<c:forEach var="entry" items="${model.articlest}">
</c:forEach>
<br/>
<blockquote><div id="comments"></div></blockquote>A code segment of my Ajax code:
     function handleCommentRetrieve() {
          if (searchReq.readyState == 4) {
               var ss = document.getElementById('comments')
               ss.innerHTML = searchReq.responseText.split("\n");
     }      Any suggestions?
I'm blocking your post since it contains an unrelated link signature.

Similar Messages

  • PM/EAM related questions posted in PLM forum

    Hi,
    I was going through some of the threads available in PLM forum, but to my surprise, most of the threads posted are related to PM, which should have been posted in EAM forum. It was clearly mentioned by the moderator in one of the sticky thread [PLM-Forumsplit - Please ensure you are using the right forum|PLM-Forumsplit -  Please ensure you are using the right forum;
    Questions regarding Plant Maintenance (PM) or Customer Service (CS) are discussed in the Enterprise Asset Management (EAM) forum
    forums - posts will be moved to the right forum.
    Please ensure your are opening a new thread in the right forum
    Despite the clear instructions given my the moderator, PM related questions are still posted to PLM forum and some of the active participant of EAM forum answers these questions in PLM forum. It would be nice if those threads are moved to appropriate forum, so that the relevant informations are available under one forum, also, PLM forum should be monitored regularly and inappropriate threads are to be moved to their respective forum.
    Few PM related threads posted recently in PLM forum:
    [Change PR for External order|Change PR for External order;
    [BAPI or Function Module to Complete Maintenance calls in IP10|BAPI or Function Module to Complete Maintenance calls in IP10;
    [delete material from PM order|delete material from PM order;
    [Message no. IW056 Work center change --> default data redefined|Message no. IW056 Work center change --> default data redefined;
    [Component in Task list not reflecting in maintenance order|Component in Task list not reflecting in maintenance order;
    [Deleted functional location/equipments|Deleted functional location/equipments;
    [PM orders not listing components from material BOM|PM orders not listing components from material BOM;
    [Completion date in Maintenance Plans in IP10|Completion date in Maintenance Plans in IP10;
    I had used abuse reports for some, but numbers of such posts are many.

    I hate to say this, but I often see the same thing, and I've never been able to figure out exactly what triggers selectability vs. non-selectability, but I suspect some of it has to do with tranparency flattening in particular, and possibly text wrap in cases where that comes into play. ID optimizes the PDF it creates, I think, and that might cause text, or even images, to be broken into chunks in funny ways. It occurs to me that turning off optimzing for fast web view might help in this regard.

  • Button, or other panel related question

    so, if any of you have read my previous topic about painting rectangles in a panel, that worked great, but now i need to mkae those rectangles components so that when someone hovers over it or clicks on it it displays information at a certain area. I know how to make listeners and how to add buttons in a panel, BUT how do I add buttons at a specific coordinate. This program graphs data on a specific scale and therefore adding a button in the approximate area using a grid layout will not be good enough. Is there anyway for me to place the the button/component/object at the extact location that I want?
    thanks in advance

    In future GUI related questions should be posted in the appropriate GUI forum (likely Swing).
    so, if any of you have read my previous topic about
    painting rectangles in a panel, that worked great,
    but now i need to mkae those rectangles components so
    that when someone hovers over it or clicks on it it
    displays information at a certain area. What?

  • I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.​Please help me for that.

    I want to check all functions of PCI 6534.I have read the user manual..I have some memory related questions.Please help me for that.
    1.)If i am using the continuous output mode.and the size of generated data is less than 32 MB.If i want to preload the memory,what should i do?I want that first of all i load all my data to onboard memory & then i want to make start the transfer between 6534 & peripheral.Is it possible?As per me it should be.Plz tell me how should i do this?I think that in normal procedure the transfer between 6534-peripheral & outputting data from pc buffer to onboard memory works parallely.But i don't want this.Is it poss
    ible?
    (2).Similarly in finite input operation(pattern I/O) is it possible to preload the memory and then i read it?Because i think that the PC memory will be loaded automatically when 6534 acquires the data and then when we use DIO read vi the pc buffer data will be transferred to application buffer.If this is true,i do not want this.Is it possible?
    (3) One more question is there if i am using normal operation onboard memory will be used bydefault right?Now if i want to use DMA and if i have data of 512 bytes to acquire.How will it work and how should i do it?Please tell me the sequence of operations.As per my knowledge in normal DMA operation we have 32 Bytes FIFO is there so after acquisition of 32 bytes only i can read it.How it will known to me that 32 bytes acquisition is complete?Next,If i want to acquire each byte separately using DMA interrupts what should i do?Provide me the name of sourse from which i can get details about onboard memory & DMA process of 6534 specifically
    (4).In 6534 pattern Input mode,if i want to but only 10 bits of data.and i don't want to waste any data line what should i do?

    Hi Vishal,
    I'll try to answer your questions as best I can.
    1) It is definitely possible to preload data to the 32MB memory (per group) and start the acquisition after you have preloaded the memory. There are example programs on ni.com/support under Example Code for pattern generation and the 6534 that demonstrate which functions to use for this. Also, if your PC memory buffer is less than 32MB, it will automatically be loaded to the card. If you are in continuous mode however, you can choose to loop using the on-board memory or you can constantly be reading the PC memory buffer as you update it with your application environment.
    2) Yes, your data will automatically be loaded into the card's onboard memory. It will however be transferred as quickly as possible to the DMA FIFO on the card and then transferred to the PC memory buffer through DMA. It is not going to wait until the whole onboard memory is filled before it transfers. It will transfer throughout the acquisition process.
    3) Vishal, searching the example programs will give you many of the details of programming this type of application. I don't know you application software so I can't give you the exact functions but it is easiest to look at the examples on the net (or the shipping examples with your software). Now if you are acquiring 512 bytes of data, you will start to fill your onboard memory and at the same time, data will be sent to the DMA FIFO. When the FIFO is ready to send data to the PC memory buffer, it will (the exact algorithm is dependent on many things regarding how large the DMA packet is etc.).
    4) If I understand you correctly, you want to know if you waste the other 6 bits if you only need to acquire on 10 lines. The answer to this is Yes. Although you are only acquiring 10 bits, it is acquired as a complete word (16bits) and packed and sent using DMA. You application software (NI-DAQ driver) will filter out the last 6 bits of non-data.
    Hope that answers your questions. Once again, the example code on the NI site is a great place to start this type of project. Have a good day.
    Ron

  • How to insert a pdf file from a dynamic location into a table

    Hi friends
    Can any one please let me know how to insert a pdf file into a table from a dynamic location in server.
    suppose say i have a table CUST_BLOB(file_name, file_data). I have a file in directory c:\local having file_name test.pdf
    I want to insert this file in CUST_BLOB. Please help me.
    Thanks in advance.
    --Ahmed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    user620950 wrote:
    Hi friends
    Can any one please let me know how to insert a pdf file into a table from a dynamic location in server. Why dynamic locations on the server?
    Make it a business case that the files should be stored in specific location(s).
    Oracle uses directory objects to point to locations on the file system and, whilst these locations can be altered, it is better practice to set up specific locations and grant permission to the correct users for those locations so that there is full control over who is accessing what on the server. Whilst filenames may be dynamic, I wouldn't recommend using dynamic locations.

  • In which Board we need to post cRIO related Questions?

    sir,
         In which board do i need to post cRIO related Questions and doubts regarding my application with cRIO .Please help me previously i have posted in  motion control drives as my application is related to motor control using cRIO.bu i am not getting any reply .i couldnt find any cRIO related board in select board option.
    Solved!
    Go to Solution.

    Hi illa,
    You can post your query under the Real Time Measurement and Control
    http://forums.ni.com/t5/Real-Time-Measurement-and/bd-p/280

  • Two related questions:  ColdFusion 10/Java applications and J2EE supported servers

    I have two related questions:
    1.  CF10 and integration with Java Web applications
    We have a couple of Java applications running on JRun and interfacing with CF9 applications.  The JRun clusters were created through the JRun Admin and, apart from lack of Axis 2.0 support, have served us well for years now.  And, as would be the case, the ColdFusion9/Java/Flash application is a critical public-facing application that the business uses for bidding on projects.
    It appears that with ColdFusion 10 on Tomcat, we will not be able to run those Java applications on a Tomcat-CF10 JVM cluster.  Is this correct?  IF so, what are our options? 
    2.  J2EE Application Servers supported by Adobe for CF10
    Which of these is correct?
    A.  This URL (http://www.adobe.com/products/coldfusion-enterprise/faq.html) states "ColdFusion 10 supports IBM® WebSphere, Oracle® WebLogic, Adobe JRun, Apache Tomcat, and JBoss."
    B.  This URL (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1 0/coldfusion10-support-matrix.pdf) states:
    "J2EE application servers: WebLogic Server 10.3, 11.1, WebSphere Application Server 7, ND 7 JBoss 5.1, 6.0, 7.1.0"
    I *think* "A" above is wrong re. support for Adobe JRun.  It does not specify a version of Apache Tomcat unless it is simply referring to the custom version the comes with CF10.
    Option "B" above shows no support of Adobe JRun or 'standard' Apache Tomcat.
    Thanks,
    Scott

    Question 1 above was answered:  "No support for Java web applications under CF10's custom version of Tomcat"
    Question 2:  No answer yet:  Is Apache Tomcat (NOT Adobe's customized version) supported for CF10 J2EE deployment?  I do not see any installation instructions on how to install CF10 on Apache Tomcat 6 or 7.
    Is anybody using Apache Tomcat as their J2EE app servers and, again, NOT Adobe's customized/limited version? 
    Thanks,
    Scott

  • Deafult search engine on a new tab-this thread was closed but I have a related question. Once you put the new url in, what then? Close? When tried, did not work

    "deafult search engine on a new tab" - this thread was closed but I have a related question. [the word “default” is spelled as it on the thread] Once you put the new url in, what then? Close it? When tried, it did not work. The closest answer is noted here. Instructing to go to about:fig. Specifically, I installed the accuweather add=on and it took over my tab home page - the one that comes up when you click for a new tab. I didn't like it so I clicked the button to remove it and the page went blank. I searched to see out to restore the tab page, tired the reply at this page :
    http://support.mozilla.org/en-US/questions/753256?s=install+search+box+on+new+tabs&r=3&as=s
    But it did not work. Can some on help me? Just want to know how to make google or some page open on a new tab.
    Many thanks

    Thanks so much for your support. As I said I am not a professional, so I by chance saw a friend who is and this is what he suggested and it worked.
    We googled for an answer and found this site: http://www.guidingtech.com/8004/have-new-tab-page-open-specific-website-firefox-chrome/
    It says to Download and install Download and install''' NewTabURL''' and gives instructions on how to. Now when I open the tab it goes to my preferred search page!

  • Please post documentation-related questions or comments on the

    Please post documentation-related questions or comments on the Performance Management Applications {forum:id=1318} forum     
    http://forums.oracle.com/forums/forum.jspa?forumID=1318

    I just got a call today that I reached my 300GB limit for the month.  I called and got a pretty rude response from the security and data usage department.  The guy told me in so many words that if I do not like or agree with the policy that I should feel free to find another service provider.!!! I tried to explain that we watch Netflix and XFinity on-demand alot and I was told that that can not be anywhere close to the data usage. I checked my router and watching a "super HD, dolby 5.1" TV show on Netflix will average about 5-6 GB per hour (1.6MB/s) ... sp this means that I can only watch no more than 1-2 Super HD TV shows a day via Netflix before I run out of my data usage.    This seems a bit redicilous doesn't it? Maybe the TV ads about the higher speed than the competition should be accompanied with "as long as you don't use it too often"   Not a good experience ... 

  • Where do I  post my CRM related questions

    Where do I post my CRM related questions.
    thanks
    siva
    Message was edited by:
    sivapara

    Hi Siva,
    You can select the module of CRM from the category and post your question there. You can even search for CRM and Post your question.
    Regards,
    [email protected]

  • Online Help Related Questions

    Hi
    FYI there is no longer a dedicated place on Microsoft.com for online help related questions.  
    We are told that VS General (here) is the best place for help questions.
    Note that these sites are a good place to get help on help (Microsoft and MVP presence):
    http://groups.yahoo.com/group/hatt/ -- for WinHelp & HTML Help & general help discussion
    http://tech.groups.yahoo.com/group/MSHelpViewer/ -- For HelpViewer help (VS 2010/2012 help; Windows 8 help)
    http://tech.groups.yahoo.com/group/MSHelp2/  -- For MS Help 2.x help (VS 2002/2003/2005/2008 help)
    Feel free to ask questions on this thread if you need to. At least then we can find your post. 
    You can also email the VS/MSDN help team directly -- [email protected]
    Please let them know how you feel about the lack of support for Online Help in the forums.
    Rob
    www.helpmvp.com -- Various Help resources
    Rob Chandler Help MVP www.helpwareGroup.com | mshcmigrate.helpmvp.com | hv2.helpmvp.com

    Actually, we cannot (at least anymore) directly email the team. I tried and got a reject from the mail server.  So, I'm going to post here so I can feel better knowing I said something and then I can get back to programming :-)
    Ok, I’ve been developing Windows apps since Win 3.1 (yeah, a long time) and have always admired the Microsoft attitude towards Developers and it’s desire to educate and empower R&D.
    So, I’m wondering what’s going on?  Why am I being asked to have an account to develop anything for MY own PC?  Why am I being asked for my Microsoft account password, repeatedly, when I’m just looking up documentation on UserControl or C3 keywords…
    repeatedly?  This is nothing short of annoying and it gives me pause and concern about the ecosystem.  Is the plan to lock down programmer’s capabilities, knowledge and tools?
    I’m involved in the TAP program for Windows 10 and have voiced concerns in the same category with regard to installation and deployment of Universal Apps.  Security is not a reasonable excuse.  Some of us love to program and actually
    control their PCs.  We are not planning to sell everything we write on the Windows Store.  What happened to programming something cool for your home network or just for friends?  We need, and used to have, Microsoft’s support in doing
    this sort of thing.  Documentation and tools are more important now than ever.  I’m saddened to see the direction things are heading…
    If there is a sane reason I’m being badgered to ‘log in’ to read .NET documentation every hour, please share.  If not, please consider lobbying to get things back on track.
    Thanks

  • CRM Related Questions for Configuring Service Desk in Solution Manager

    Hi All,
    We have 3 requirements while configuring service desk in solution manager:
    1) Is there any possibility that we can restrict view of messages in solman for different teams. E.g: Finance Support team should not view message raised for Material Management Team ?
    2) Is there any possibility in service desk that we can assign message on the basis of location e.g: message raised for finance from location A should go to different support team of finance and for location B, it should go to different finance team ?
    3) Is there any possibility that we can make some question necessary while user is raising very high priority message from satellite system e.g: when we raise Very high priority message on service market place, we need to answer few mandatory questions ?
    I tried to search these functionality in standard scenario but I am not able to find something relevant. Please suggest.
    Thanks
    Sunny

    Hi Rama,
    I Need to configure the feature to generate a ticket to SAP directly in VERY HIGH priority.
    Could you please help me out into this. If you have any doc related to that Please send me.
    Thanks in Advance!
    Regards,
    Prabhat Singh

  • Two related questions: using htmldb_Get to call stored procedure and passing in an array of items

    I have the need to save dynamically generated ApEx items via AJAX.  I am using APEX_ITEM API to generate the items.  At run-time, I have no idea how many of items will be generated on the page, but I know that they will all have discreet and distinct "name" attributes, i.e. f01, f02, f03, etc.  As a basic example, if I have to generate a select list, I know that the "p_idx" parameter of the APEX_ITEM call is say "3", so all select lists that get generated will have a "name" attribute in the DOM of "f03", all text items will be "f01", etc.
    I want to save this data to the database via AJAX.  It is typical to call the standard htmldb_Get javascript function for use of an on-demand process, but I am interested in using the rarely-called-upon "procedure" and queryString" options of that javascript function so that I can build the queryString on the fly based on what is on the DOM when the tries to save the data they entered into these APEX_ITEM-generated items.  Does anyone have any good examples of how to use the "procedure" and "queryString" parameters of the htmldb_Get javascript function?
    I have found a smattering of some blogs, posts, etc. online related to this, but mostly just people regurgitating the documentation.  I found this post (https://forums.oracle.com/thread/2549237) which had a glimpse of hope to be able to pass an array (which is something I will need) as a parameter, but would like someone to sanity check this before I go down that road.
    Shane.
    ApEx 4.2.1

    Shane
    Since you mention you are on APEX 4.2  I would recommend using apex.server.process which is the documented replacement of the officially undocumented htmldb_Get.
    In the documentation it is set that the first parameter is the ajaxidentifier but it actually is the process name.
    The data object would be something like
    var lData ={f01 : get_value_array('f01')}
    Where get_value_array is
    function get_value_array(pColumnName) {
      var l_values =[];
      apex.jQuery('[name="'+pColumnName+'"]').each(
       function(){
        var l_value;
        l_value = apex.item(this.id).getValue();
        l_values.push(l_value);
      return l_values
    For a working example see this demo.
    Nicolette

  • 11g Gauge Related Questions

    Hi,
    I would like to ask 2 questions regarding the new gauge interface, both are related to defining gauge limits. Let's just state that the value of the gauge measure is larger than the default higher limit, and though, the needle is not shown. Therefore, I would like to set a new higher limit, but dynamically. Basically, I would like to choose the higher value between two possible values, based on some considerations.
    First, I tried defining a new column which performs the calculation (case when...), but when trying to set the limit using 'column name', nothing was shown in the list to select from. Sorry, it's a bit blurry to me what the note *'Only columns that are in the metadata repository or that are based on repository columns (such as Dollars*0.10) are displayed as selections.'* in the docs really means. Whatever I did, I couldn't choose any column name to use as the new gauge limit.
    Then I decided to define a new repository variable that keeps this values (which may differ from day to day). I could use the new variable in a table (using the VALUEOF function), where its correct value is shown, but then, using the same method with the gauge limit (Variable Expr), I got an Type Mismatch error, which is for sure wrong, since I can assure the calculation return a number and nothing else.
    I can, of course, use the SQL option, but hay, shouldn't the more simple and efficient methods work?
    TIA,
    Doron

    Hi,
    Thanks for your response, but sadly I must admit I've already tried it (and retried it again) and it doesn't work.
    Doron

  • AJAX Tab question

    Hi All,
    I have CF 8 Standard and have used the Ajax tabs (I suppose these are from Yahoo). I have been able to properly display tabs on my CFM page and the users are able to navigate using these tabs. Is there a way for me to know what tab the user clicks? I have a common area (like a <div>) above the tabs. I would like to show relevant information in the DIV depending on the tab the user clicks on.
    Thanks.
    - Milind Joshi

    I'm answering my own question. Giving it here so if anyone else was in similar situation, he/she would know what to do. My requirement was to capture the tabchange event. I wanted to know what tab the user navigated to.
    Here's what I did:
    1) Put following line almost at the end of the page.
    <cfset AjaxOnLoad("loadTabListener")>
    This fires the function loadTabListener when the page is gets loaded in the browser.
    2) Put this in the header block. This returns an Ext JavaScript object. The second line adds an event listener to the Ext JavaScript object named "datatabs" and fires the event handler.
    loadTabListener = function() {
       tabObj = ColdFusion.Layout.getTabLayout("datatabs");
       tabObj.addListener('tabchange', getClickedTab);
    3) Put these lines of code below the above declaration.
    getClickedTab = function(objParent, objPanel) {
       //objPanel.getText() gives you the title of the tab.
       parent.showMenu(objPanel.getText());
    Now, you can do whatever you want to do depending on what tab the user navigated to. In my case, I wanted to dynamically change the hyperlinks in a certain area depending on what tab the user was. For more info on the JS libraries used for tabs CF go to http://www.extjs.com/deploy/ext/docs/
    Bye for now.
    - Milind

Maybe you are looking for