Updating the DOM with a JSTL import?

I want to update the content of my page dynamically and I understand how to use javascript and the DOM to access and and change the content that way. My question is can I change the DOM by using a JSTL import statement to specify the content?
something like:
<html>
<script>
functionAlpha(){
  document.getElementById('content').innerHTML = <c:import url=\"alpha.jsp\" />
functionBeta(){
  document.getElementById('content').innerHTML = <c:import url=\"beta.jsp\" />
</script>
  <body>
    <!-- not the best practice here but will work for this example -->
    <a href="javascript:contentAlpha()">Alpah</a>
    <a href="javascript:contentBeta()">Beta</a>
   <div id="content">
    </div>
  </body>
</html>I have tried the crux of the above and it does not work for me. Please let me know if this should work and i have the syntax wrong or if there are alternative methods to achieve what i am trying to accomplish. any help is appreciated. thanks.

Likely not. The key point is that you cannot execute serverside languages using clientside languages without sending the information from the client to the server.
Consider AJAX for what you're trying to achieve (updating content asynchronously).

Similar Messages

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • I updated the IPAD with the latest update and now when I turned the IPAD on, I get the itunes logo and then nothing else.  How can I fix this to let me use my IPAD?

    I updated the IPAD with the latest update and now when I turned the IPAD on, I get the itunes logo and then nothing else.  How can I fix this to let me use my IPAD?

    YOU ARE IN RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • Im using iphone 4 uk unlock , it has ios 4.2.1 and it does not have software update option.Now i want to update the phone with latest ios is it possible and tel me how ?

    Im using iphone 4 uk unlock , it has ios 4.2.1 and it does not have software update option.Now i want to update the phone with latest ios is it possible and tel me how ?

    The update to iOS 5.0 & higher is an erase/restore deal, so make sure you follow the directions here to update your phone:
    http://support.apple.com/kb/ht4972
    iOS 7.0.4 will be installed.

  • Polling the master detail table and to update the LAST_UPDATED with SYSDATE

    Hi
    The requirement is polling the master detail table where read_flag is null and has to update the LAST_UPDATED with SYSDATE in both tables.
    Refered the MasterDetail and PollingPureSQLSysdateLogicalDelete samples of SOASuite.
    Used the delete polling strategy in polling process and modified the generated TopLink discriptor as follows.
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for master table (RECEIVER_DEPT) :
    update RECEIVER_DEPT set READ_FLAG= 'S' , LAST_UPDATED=sysdate where DEPTNO=#DEPTNO
    set the TopLink -> Custom SQL tab -> Delete tab with the following query
    for Detail table (RECEIVER_EMP):
    update RECEIVER_EMP set LAST_UPDATED=sysdate where EMPNO=#EMPNO
    After deploying the bpel process data is updated in master(RECEIVER_DEPT) table with LAST_UPDATED as sysdate and read_flag as S
    however data is deleted in detail(RECEIVER_EMP) table rather than updated records.

    Xtanto,
    I suggest using JSP / Struts. UIX will be replaced by ADF Faces in JDeveloper 10.1.3 and thus I wouldn't suggest new developments to be started with UIX unless time doesn't allow to wait for ADF Faces. In this case develop UIX in an MVC1 model, using the UIX events for navigation because this model seems more likely to be mgratable, according to the UIX Statement of direction on Otn.
    Back to your question. You can create a search form in JSP that forwards the request to a StrutsData Action to set the scope of teh result set. The read only table can have a link or a button to call the detail page, passing the RoewKey as a string.
    Have a look at the Oracle by Example (OBE) tutorials that contain similar exaqmples.
    Frank

  • HT4972 Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Hi, Yes, I bought new sim (64k) from Airtel gallery...and now i'm on version 5.1.1...Sometimes it works but if i turn on the 3g then the network went down and showing me a "NO SERVICE" error...i have to wait till the network come...it's a headche..I think i have to go again in gallery and want to ask for new sim with 128k...Any suggestions on this plz?

  • Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Where did you originally purchase your iPhone? How was your
    iPhone unlocked to work with AirTel? What does it say  when
    you look at Settings=>General=>Carrier?

  • Update the game with tuning!

    The people, who have finished the game are not frequently playing the game. To bring them back, update the game with tuning. You can make people to comeback to the game everyday looking for the perfect tune for their faviourate cars!. It would increase the players on multiplayer getting their cars sideways together and just having fun. It's gonna add the competion of the drifting love.

    It's not a simulation, therefore there won't be tuning.

  • REUSE_ALV_GRID_DISPLAY - updating the database with new values

    Hi,
    I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
    Thanks,
    Leanne

    Hi,
    The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
    I have coded the process as follows:
        when '&SUSPEND'.
          loop at tab
            where box = 'X'.
              update zzzz
                set status       = 'SP'
          endloop.
    Regards,
    Leanne

  • Updating the Database with datetime stamp

    Hi all,
    I have a scenario where in once sender JDBC channel polls the database , i need to update the table with current datetime stamp for a particular DATE field.
    what will be the update syntax command that i need to add in the sender channel ?
    Update Emp Set DATE =  ? where EmmNo = 100;
    Regards
    Vinay P.

    Hi Guys ,
    The following query is working :
    Update Emp Set DOJ = GetDate() where EmpNo = 1;  O/p = Sep 1 201
    Regarding adding Time as well , which function do i need to use
    Also say for example , i need the Date time stamp format to be updated in the following format : dd.mm.yyyy hh:mm:ss , what will be the syntax
    Regards
    Vinay P.

  • HT1386 Why when I select not to update the calendar with any entry older than 1 day it ignors that and goes back as far as my calendar has entries

    Why when I select not to update the calendar with any entry older than 1 day it ignors that and goes back as far as my calendar has entries

    FCPx answer: At least the answer that worked for me...
    I had the same problem, as I believe many others had.
    In my case the problem was with one of OSX Mavericks' new features: APP NAP.
    It looks like this is ON by DEFAULT for ALL Applications and that FCPx, or Compressor for that matter, will not work if this is enabled on them.
    I just disabled App Napp on FCPx and now it works, again, like a charm.
    This is how you disable App Nap: http://reviews.cnet.com/8301-13727_7-57612009-263/how-to-disable-app-nap-in-os-x -mavericks/
    I hope this helps,
    Mariano

  • I updated the IPAD with the latest update and now when I turned on and I get the Itunes log and nothing elser

    I updated the IPAD with the latest update and now when I turned the IPAD on, I get the itunes logo and then nothing else.  How can I fix this to let me use my IPAD?

    Hi ....
    "I get the itunes logo and then nothing else"
    Use Recovery Mode >  If you can't update or restore your iPhone, iPad, or iPod touch

  • Program updating the value with succeeding 0

    Hi
    We have got a problem.
    We have developed a program to update the value of the condition type. The upload file will have the SO, line item, condition type and value.
    In the background, the sales order change BAPI is called and the value of the condition type is updated. There is no bug in the program for this functionality with reference to the problem.
    When I upload, the value is getting uploaded correctly. But for some users, the value is updated with an additional 0 at the end. For example if 78 is the value of a condition type, the update happens as 780. The strange behaviour is that if I take that user id and password and upload in my laptop, the value is correctly uploaded without any addtional 0.
    We have checked the user profile of all the problamatic users. They are fine. The xls sheet decimal notation is checked and they are also fine. There is no bug in the program, as it is working fine for many users.
    What else should I be checking to solve this issue. An ABAPer advised to check the GUI level difference. I dont know how to do that but there should not be any such difference in the GUI versions for the users.
    Can somebody put some light on this issue.

    Hi Navaneetha,
    The Excel version is the same for you and the user?
    Can the same be debugged and rectified?
    Regards
    Saurabh

  • After EFI firmware update the scrolling with two fingers doesn't work inside the browsers (both safari and chrome)

    I've got a new MacBook Pro Retina from october 2013 13" (8 gb Ram and 256 gb SSD).
    I had the "freezing" issue that was solved with the firmware EDI update.
    But after this update i have now another problem: often during web browsing the scroll with 2 fingers up and down the page stops working (but the trackpad is ok for everything else and if i go in other programs the scroll works as usual). The only solution is to restart the browser but the problem happens again and again.
    Both on Chrome and Safari. Especially on Safari everything freeze if i try to scroll on the right to go back to the previous page.
    Does anybody else have this issue?

    macmattia wrote:
    I've got a new MacBook Pro Retina from october 2013
    Does anybody else have this issue?
    Doesn't matter if anybody else has this issue. 
    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • Is it better to update the ipad with a mac mini vs a windows PC?

    I have an iPad 2 which i want to update to iOS 6.1.3 (from 4.3.3). I usually sync it with a mac mini running Snow Leopard 10.6.4 with iTunes 10 which will not allow me to update the iPad as iTunes 11 requires OS X 10.6.8. I am not in a position to update my mac mini.
    1) Can I use a PC running windows 7 with latest iTunes to update my iPad without any problems ?
    2) Will I be able to sync my updated iPad with my mac mini running iTunes 10 on OS X 10.6.4 ?
    Thanks for your inputs.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

Maybe you are looking for