Ajax without JavaScript - Is it really possible?

I read your article Ajax Without J . Wondering Is it really possible.
How about if i have following situations
1) I wanna display Alert Message whenever users click on Delete button i.e. confirmDelete function using JavaScript
2)Clearing the form fields on click of Reset button
This can be easily accomplished using JavaScript functions. Do we have something similar in Ajax4Jsf
Also is it possible to conditionally render buttons using Ajax4Jsf. For example whenever user selects "New" from h:selectOneMenu i dont wanna display Delete button. I am using Ajax4Jsf here with reRender attribute on h:commandButton it doesnt work
Regards
Bansi

duplicate for http://forum.exadel.com/viewtopic.php?t=5943

Similar Messages

  • Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

  • Learn node/express/jade/ajax/json/javascript/css3/html5 by example

    I used to do a lot of freelance web development for sports clubs and self-worshipping individuals back when I was at school.  That was in the days when Internet Explorer 5/6 ruled supreme, animated GIFs were cool, and many other painful memories.
    While I am probably still proficient with ASP/VBscript/IIS/MS SQL Server/Access despite doing no web development for almost a decade, I'm not masochistic enough to touch them again so I decided to learn some "modern" and "intelligently designed" web development techniques last week.
    If anyone else is interested, and (like me) learns from examples and by fiddling then you will find the following useful.  It's a little demonstration project that I created, which allows editing of an inventory table in a MySQL database, produces aggregates/summaries of the table, and applies a branch-and-bound knapsack solver to work out which combination of items would be the best for you to steal borrow, given the maximum total weight that you can carry.
    github.com/battlesnake/nodejs-starter
    Feel free to fork it all you want.
    As with all most open-source software, the documentation (when it even exists) leaves a lot to be desired.  However, like most "tech startup tools"-style software, the design is so elegant that it explains itself without the need for documentation 95% of the time.  REPL often gives answers quicker than a google/StackOverflow search.
    Upon first seeing node.js and mongo, I thought "an entire environment running on JavaScript? what could possibly be worse?!?!"
    But after learning JS properly (i.e. not the cargo-culting late 90's style of it), I have taken a real appreciation for the language.  It is probably as slow as Python (or maybe considerably faster with the V8 compiler), but so much nicer to use!  The MySQL package for node.js actually makes it easier to write proper parametrized queries than to write the typical "lazy, insecure" junk of a rushed 90's commercial project.
    The Jade template engine is a real pleasure to use, which when combined with the Express web server, makes me think that all my time fighting working with and learning ASP and PHP is going to become a distant waste.
    I have yet to use Stylus, a CSS templating engine which presumably solves the problems incurred by the popularity of small-screened pointless, fashion nonsense tablets and smartphones.
    CSS3 is... well nothing too drastically different from its predecessors, but the flexbox layout mode is really nice, and even Internet Explorer supports it (well IE9+ anyway).  Thanks to Wine, I have IE6,7,8,9,10 all installed and running simultaneously, so I can see how aweful the IE<9 versions are at rendering pretty much anything involving flexbox layout, html, css, etc.
    JSON is easy, so google it if you want to know what that is about.  It solves a problem well and doesn't really do anything flashy, so I'll leave wikipedia to market it.
    AJAX always seemed like a simple concept, and indeed it is!  One little gotcha that I found was that when adding HTML fragments from an AJAX response to the document DOM, the default stylesheet doesn't seem to get applied - so everything is "display: inline", amongst various other problems.  This was solved by mercilessly stealing copying from the W3's default HTML4 stylesheet.
    I really should learn JQuery and implement that to reduce the code size, but I couldn't quite be bothered at the time.
    Happy learning!
    Last edited by windows_me (2013-08-26 22:05:36)

    I wondered the same thing, until I watched all the way to the very end where he gives a URL for source and slides:
    http://mad.com.au/MAX2013/
    iBrent

  • Populate combo in jsp without javascript?

    hai all,
    can u tell me how can i populate combo in jsp, is it possible without javascript?

    Quite easily, in pseudo code <%
         List myList = (List)session.getAttribute("theList");
    %><select name="myOptions"><%     
         for (items in the list)
              %><option value="<%= item.value %>"><%= item.label %></option><%
    %>
         </select>

  • Displaying a wait page without javascript/ meta refresh

    I am using JSPs with struts 1. I wanna show a wait page after submitting the form until it process.
    But in my case i wanna do it without javascripts or meta refreshes. any idea?

    ruwanin84 wrote:
    As far as I know, meta -refresh is not that much recommended.Please elaborate and prove. This makes really no sense to me.
    any way that's my last option. do you have any idea of checking the token?That's just a toggle in the request/session on which the server side code can intercept. This still require a request being invoked by the client.

  • Can Web Performance Test work on AJAX or Javascript Project which will show only one URL for all the pages?

    Hi there,
    I'm working on testing a AJAX and JavaScript Project which has several pages but all in the same URL. I need to test some attribute on the page or parameter past by AJAX or Javascript. Can Web Performance Test work to get what I want?
    Thanks,
    

    Hello,
    Thank you for your post.
    Web performance test is used to test if a server responses correctly and the response is consistent with what we expected. And we test the response speed, the stability and scalability.
    The Web Performance Test Recorder records both AJAX requests and requests that were submitted from JavaScript, but
     web test does not execute JavaScript. I am afraid that you can’t use web test to test parameter past by AJAX or JavaScript.
    Please see:
    Web Performance Test Engine Overview
    About JavaScript and ActiveX Controls in Web Performance Tests
    From the first link, “Client-side scripting that sets parameter values or results in additional HTTP requests, such as AJAX, does affect the load on the server and might require you to manually modify the Web Performance Test to simulate the scripting.”
    If you want to execute the function typically performed by script in web test, you need to accomplish it in coded web performance test or a web performance test plugin. Please see:
     How to: Create a Coded Web Performance Test
    How to: Create a Web Performance Test Plug-In
    I am not sure what the ‘some attribute on the page’ is. If you mean that you want to test those controls on the page, you can do coded UI test, which can test that the user interface for an application functions correctly. The coded UI test performs actions
    on the user interface controls for an application and verifies that the correct controls are displayed with the correct values. You can refer to this article for detailed information about code UI test:
    Verifying Code by Using Coded User Interface Tests
    Best regards,
    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • I am having trouble connecting MacBook Pro (10.6.7) to Novell server. I get incorrect username and password message. I can connect worksations running 10.5 without any problem. Any possible solution? Thanks, Ned

    I am having trouble connecting MacBook Pro (10.6.7) to Novell server. I get incorrect username and password message. I can connect worksations running 10.5 without any problem. Any possible solution? Thanks, Ned

    Having the exact same problem with connecting ML and Snow Leopard machines to a Windows 8.1 machine. Oddly enough, connecting and copying to/from works perfectly from a Mavericks machine, despite the problems reported about Mavericks regarding the exact opposite. An old thread, but did you find a solution?

  • How to embed Flash without Javascript?

    How to embed Flash without Javascript? Other way to ask this: if user desactivates Javascript, sill Flash content still be visible?
    Thanks for helping.

    Hi
    This article may be of interest (shows with and without javascript methods), - http://perishablepress.com/press/2007/04/17/embed-flash-or-die-trying/.
    PZ

  • 5MP app for IPAD2 CAM is it really possible??

    I saw an app in the Itunes Store making me able to use the Camera for 5MP shots. Is this really possible? Cause I thought the cam only had 0,79 MP.
    Thanks!

    Then I'm scammed: http://itunes.apple.com/us/app/professional-camera-for-ipad/id435662618?mt=8 it sais nothing about the Iphone. Just about makeing 5MP photo's with the IPAD2.....

  • HT1689 is it really possible to spy remotely on iPhone?

    is it really possible to spy remotely on iPhone? Means is it possible for someone who uses the same mobile network to spy on my iPhone 4?

    myblackipadmini wrote:
    when I reset my iPhone (data &amp; settings) that means am eliminating any possibility for any spying possibility (hidden software)?
    If when you say "reset" you really mean a Restore (a "reset" in iPhone terminology is more-or-less like rebooting your computer), then a Restore will erase any data and settings. But the only way anyone can install hidden software on your iPhone is again if it's jailbroken, and with jailbreaks a Restore may not remove everything. That's one reason why jailbreaks are strongly discouraged. If your iPhone is not jailbroken, then it can't be spied upon by any means accessible to normal people.
    Regards.

  • Updated Ipod to ios 6 now apps close without warning and seems really slow also wifi doesn't always connect

    Updated my ipod touch to ios6 now apps close without warning and seems really slow to repsond. Also doesn't always connect to the Wifi never had any problems before upgrade

    Try a hard reboot (hold home and power buttons down at the same time until your iPod reboots). If that doesn't work, do a restore in iTunes and do not restore from backup. You wqill lose your game data and settings, but your iPod should run better and work properly.

  • I want to copy my iTunes library onto my iPhone without iCloud. Is this possible? In past you could drop & drag upon syncing....now only download via iCloud?

    i want to copy my iTunes library onto my iPhone without iCloud. Is this possible? In past you could drop & drag upon syncing....now only download via iCloud?

    So what is stopping you?
    Do you have manually manage video and music set up?

  • Hide item without javascript

    i have form and one item that has it's defaut value.
    i try to hide item in ordinary way and wirh condition too.. but after insert action it doen't save any value
    i don't want to use javascript to hide it. so..
    is there any way to hide item without javascript, so it won't lose its value after insert action?

    i use condition to hide item..
    it looks like this:
    Value of Item in expresion1 = expresion2
    expresion1 is - 3
    expresion2 - 1

  • MSIE vs. Firefox and asynchronous AJAX...is MSIE really NOT doing async?

    Apex v4.1
    MSIE v8.0 and Windows XP
    Firefox v6.0.2
    Background
    Sorry it's a lot but I figure giving all this context would help avoid tangental questions that could derail from my real question(s).
    I have a master-detail page where I have such business and functional requirements to do a lot of various validations, checking, disabling/enabling, etc. in the detail region. Given that detail regions in master-detail pages are nothing more than tabular forms that are filtered by the master record's PK and that tabular forms have limited validation and nonexistent calculation ability via declarative calculation processes, my detail region is immensely javascript heavy. In addition, I have the functional requirement that the user see all detail lines on the same page, so I cannot limit the page to 10-15 lines per page anyway.
    When the page loads, I need to do a number of functional things to the detail region before the page control is turned over to the user, such as:
    1. Disable certain columns that are saved as database columns but never touched by the user.
    2. Disable certain columns that the user does not have authorization to modify (but tabular forms have no "readonly" attribute for columns like page items do)
    3. Disable certain fields on a row (but not on all rows) based on business rules (e.g.: if PART_NO on a row is null, PART_SERIAL_NO on that row only needs to be disabled (as the user shouldn't be able to enter it).
    4. Etc., etc...you get the idea. There are just a lot of things that cannot be declaratively done to a tabular form column and also things that cannot be done on a row-by-row basis, hence the javascript.
    When the page loads, I also have to do two cosmetic things to the rows and these can be done after the control is turned over to the user since they are cosmetic only and do not affect their ability to be disabled out of a row-field combo, etc.:
    1. For one column that is a popup key LOV, override the displayed value with a different value than Apex generates from the LOV definition. In other words, the LOV definition is "a || b" for the display value and "c" for the return value, but on the main page the users want "a" for the display value that they see.
    2. For all records, evaluate several fields on a record and as a result, highlight certain other fields in red, yellow, or black via the background color.
    Everything is actually working in both MSIE and Firefox and I'm happy about that. However, the stuff I'm doing in the second group (the popup key LOV display field and the coloring of the background of fields) is only working nicely and quickly in Firefox but is super slow in MSIE. My worst-case scenario in testing is my master-detail has 281 detail rows and in Firefox it takes about 20-25 seconds to paint the page, give control to the user, and then finish doing the asynchronous AJAX stuff after that (which sems to also go quickly). In MSIE, my page rendering time ranges from 1 minute 30 seconds with the AJAX async stuff commented out and not even running to over five minutes (!) with the AJAX stuff left in and running. The difference of 4+ minutes also implies to me that the AJAX stuff is not running asynchronously (or if it is, something else is getting in the way of the effective purpose of it being asynchronous).
    Right or wrong, how I built my page is that since a lot of the Javascript code is to act on the detail region onlly, I defined the javascript in the region and not in the page just so that when the detail region isn't displayed (usually when a new master is being created), we don't even display or render any of the javascript.
    When the detail region does show, the Javascript that goes along with it to do all the work to the detail region rows/columns also runs.
    Example...this is in the region footer of the detail region:
    <script type="text/javascript">
    //Always when region loads
    //Initialize special processing on the fields on the lines that can't be done
    //elsewhere.
    if (window.addEventListener) // W3C standard
      addLoadEvent(InitDetailItems());
    else if (window.attachEvent) // Internet Explorer
      addLoadEvent(InitDetailItems);
    if (window.addEventListener)
      window.addEventListener('load', postLoad, false);
    else
      window.attachEvent('onload', postLoad);
    </script>When the detail region loads, I append a call to the onload event of the page so that the function InitDetailItems is called (addLoadEvent is just another wrapper that detects if the page even has an InitDetailItems function and if it does, it then adds a call to InitDetailItems to fire in addition to any other on-load processing). I did it this way as a matter of style such that if a developer added any onload at the page header that this would just be appended to it. This call to addLoadEvent and InitDetailItems all runs javascript to prepare the detail region non-async (the user must wait for it to finish processing before they should get control of the browser).
    Then, the call to also add on a call to postLoad is where the cosmetic async stuff is supposed to happen. I am not a javascript expert by no means but from what I can gather:
    1. "window.addEventListener('load', postLoad, false);" works for most non-IE browsers, adds a call to postLoad on the event 'load', and "false" means that it is done non-binding (async).
    2. There is no "addEventListener" in MSIE, so it uses "window.attachEvent" to add the call to postLoad to the onload event. This is non-async with no async option, but....keep reading...
    PostLoad itself looks like this:
    function postLoad()
    { //Stuff do to after this region loads but can be done in an async fashion
      //because they're only cosmetic things.
      setAllMaintDescr(gMaintItemIdCol,gMaintItemIdCol + "_DISPLAY");
      checkAndColorFields();
    }setAllMaintDescr is the function that sets my popup key LOV values by querying the database and returning and setting the values in this field accordingly.
    checkAndColorFields is the function that passes some fields' values to a PL/SQL packaged function, it computes a color of black, red, yellow, or none and the javascript sets some field background colors accordingly. This logic resides in a PL/SQL package because we have a BI report that is a near copy of this page and needs to call the same logic.
    Both setAllMaintDescr and checkAndColorFields call htmldb_Get and get.GetAsync when the database work is done, so even though in MSIE the call to postLoad is not async, the functions themselves call async code that should theoretically be executing in an async manner.
    The Real Question(s)
    So...bottom line is that in Firefox, the page always takes about 20-25 seconds to load with or without setAllMaintDescr and checkAndColorFields commented/uncommented. This leads me to believe that my code in InitDetailItems (all non-async) is consistently taking 20-25 seconds to execute and postLoad processing is truly async since the page is returned to user control in the same amount of time.
    But in MSIE, without setAllMaintDescr and without checkAndColorFields, page load already is a slower 1 minute 35 seconds. With setAllMaintDescr and checkAndColorFields, it swells to well over 5 minutes whereas these async calls to htmldb_Get I would think should not increase much if at all over the initial 1:30 load time.
    Any tricks with MSIE? Any settings in the browser I need to know about? Is it truly ignoring my get.Get_Async calls and treating them as get.get()?
    Or is MSIE just truly that much of a turd as a browser? Ugh.
    Sorry for the long narrative but wanted to answer as many questions about my page first.

    ^^^ Long post.
    Cliff's notes for those I may have lost:
    Page dynamically adds two Javascript functions to the onload event.
    Each Javascript function calls some PL/SQL but it's all done using get.GetAsync.
    Firefox returns control of the page to the end user relatively quickly and consistently regardless of what functions are commented out/uncommented.
    MSIE is much slower and takes more time as I uncomment the async Javascript functions.
    Why does MSIE seem as if it's behaving non-asynchronously?

  • Cut and move in OS X: is it really possible?

    Hello,
    Usually, when I want to move a file/folder to another location, all I get is just copy & paste! Well, I can always delete the files/folders from the original place after copying them, but this is an extra redundant work. Sometimes, it can be quite annoying if it is about a big video file: imagine a 10gb-20gb file may take 10minute to be copied and another couple of minutes to be deleted!
    I have blindly tried various keyboard possibilities such as holding apple key or option key or ctrl key while moving the file with no help. However, sometimes when I drag and drop, it automatically moves the file instead of copying it.
    Honestly, I am quite upset about this. I find it absurd that they claim 'OS X is the most advanced operating system' if it doesn't even have a move option and all you can do is copying! I hope this is not true. If it does, then I have to say OS X is extremely nonuser-friendly because I am quite experienced with computer environments and I can't still find this!
    Thanks, Ramin

    Thanks guys for your answer. I really appreciate them. Regarding the first response I got: yes, that was rude. If I didn't promptly write a response, it was because I didn't care much about it. I understand some people see it as their mission to promote or support a tool they are using. Some may see it crucial to defend their favorites against 'dangers' if it could have interpreted that way. On the contrary, I see it my mission to criticize things. This is somehow what I believe to be a more useful thing to do. Apple OS X is a great operating system but it is far from being perfect and it has certain obvious imperfections even comparing to Windows while it also has certain advantages over the pther OS's. By doing fair comparisons, we encourage companies in putting their efforts into resolving imperfections hence, seeing improvements in both OS X and Windows and through this, we consumers will be the winners!
    Now let's look at it: Being the most advanced OS is subjective, I admit. I am talking of my own personal view. When Apple talks of OS X in their website, most of the talks are about eye-candies and candy-tools. Don't get me wrong, I do care about appearance and I find some of these candy-tools quite useful. However, as an example, a more advanced OS must have a more sophisticated multitasking engine or must have implemented a kernel that better utilizes the potential of a multi-processor system. When I check their website, Apple boasts OS X a lot on this, but it fails to provide us with any argument on why OS X is more advanced than say Linux or even Windows in this regard. That is why I say they have claimed something without proving it! I am not an expert in computer science, but I can easily see if an argument has been presented to us, the audience, or not.
    As per moving files and folders from one drive to another drive, in Windows and Linux, you can press ctrl + x and ctrl + c to cut and paste a file or folder. The problem is that there is no similar operation in OS X, as you confirm it. Since, I move files and folders across the drives quite often, I find this annoying. I have to spend twice as much time in OS X to do so as I do in Windows.
    By the way, what is the Delete button do in OS X? It seems it does nothing! In Windows and Linux it send the item to the garbage bin. In Os X doesn't do that. So why is that button there?
    There are other places where improvements are possible, but this message has already got too long.
    Once again, thanks for your answers.
    Ramin

Maybe you are looking for

  • Wht is diff b/w sy-ucomm and ok code

    hi, what is diff b/w sy-ucomm and ok-code Regards, Rani.

  • Problem with serial number and downloading

    I bought a Mac Book Air (10.9.5) and I tried to install an Adobe Photoshop Elements 8 . I already bought it and I used it with may iMac (2008).  When I enter the serial number  written on the box I can no longer go on . Any solution to solve the prob

  • Purchase order in the backend system

    hello all, we are using SRM 7.0, classic scenario. we are implementing BBP_CREATE_BE_PO_NEW BAdI to change some data that is transferred to the backend for the purchase order creation. i tried to set external breakpoint for wf-batch. however, it seem

  • How to print the PDF file contains stamps without set the printer options

    I have pdf document, and stamp them with my personal stamp. With the printer option under "Comments and Forms", I set to "Document", my stamp DISAPPEARED. Unless re-set (use options) to "Document and Markups" or "Document and Stamps" then it will be

  • Restoring photos from holiday

    I recently went on holiday and lost my iphone5. I now have a new iphone5 and the contacts I added to the phone which I lost on holiday are still in my contacts but none of the pictures I took are. Is there anyway I can retrieve them?