| | |
Make AJAX degradable
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 12
Reputation:
Solved Threads: 0
I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether javascript is enabled or not.Problem is, I didn't get enough material on this.Anyone please assist and be sure your help is much appreciated
0
#2 Oct 26th, 2009
You cannot use AJAX if JavaScript is disabled.
Always try to write your code for non-JavaScript clients and then add AJAX afterwords.
AJAX should be used to enhance the page, it should not be the core of it.
Always try to write your code for non-JavaScript clients and then add AJAX afterwords.
AJAX should be used to enhance the page, it should not be the core of it.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
•
•
Join Date: Aug 2009
Posts: 12
Reputation:
Solved Threads: 0
0
#3 Oct 26th, 2009
Thanks xan.Your point is both valid and most welcome. I just need the material on degradable AJAX for my personal web apps...please if you have any urls that could help to this end, just let me know man.Thanks!
0
#4 Oct 27th, 2009
Dangari,
I've not heard the term "degradable AJAX" and can only guess at what it might mean.
As Will G says, AJAX simply won't work at all if Javascript is turned off.
However, you may choose to cater for (rare?) browsers with low capability Javascript that doesn't support the HTTPRequest object necessary for AJAX. The strategy (I've never needed to use it) would be always to try making an AJAX request then, if AJAX fails, make a regualr HTTP request (with suitable GET or POST parameters) to reload the whole page (with necessary additions/modifications). You would generally choose to do this only for essential functionality - not some "fancy-waistcoats" visual effect.
Airshow
I've not heard the term "degradable AJAX" and can only guess at what it might mean.
As Will G says, AJAX simply won't work at all if Javascript is turned off.
However, you may choose to cater for (rare?) browsers with low capability Javascript that doesn't support the HTTPRequest object necessary for AJAX. The strategy (I've never needed to use it) would be always to try making an AJAX request then, if AJAX fails, make a regualr HTTP request (with suitable GET or POST parameters) to reload the whole page (with necessary additions/modifications). You would generally choose to do this only for essential functionality - not some "fancy-waistcoats" visual effect.
Airshow
Last edited by Airshow; Oct 27th, 2009 at 10:19 am.
50% of the solution lies in accurately describing the problem!
•
•
Join Date: Aug 2009
Posts: 12
Reputation:
Solved Threads: 0
0
#5 Oct 27th, 2009
•
•
•
•
Dangari,
I've not heard the term "degradable AJAX" and can only guess at what it might mean.
As Will G says, AJAX simply won't work at all if Javascript is turned off.
However, you may choose to cater for (rare?) browsers with low capability Javascript that doesn't support the HTTPRequest object necessary for AJAX. The strategy (I've never needed to use it) would be always to try making an AJAX request then, if AJAX fails, make a regualr HTTP request (with suitable GET or POST parameters) to reload the whole page (with necessary additions/modifications). You would generally choose to do this only for essential functionality - not some "fancy-waistcoats" visual effect.
Airshow
0
#6 Oct 27th, 2009
You might want to research "HIJAX" which is an approach (like "AJAX" neither a product nor a language).
HIJAX gets a mention (but no more than that) in one of my reference books - "Beginning Javascript with DOM Scripting and AJAX" by Christine Heilmann (Apress, 2006), ISBN 1-59059-680-3. Apparantly HIJAX was coined by a Jeremy Keith, so it may also be worth searching for publications that bear his name.
Sorry I can't be of any more help but, like many if not most AJAX programmers I suspect, I am guilty of having not handled failure cases as robustly as I could have. Your question is a prompt for me to learn more. You may look forward to answering my questions some time in the future!
Airshow
HIJAX gets a mention (but no more than that) in one of my reference books - "Beginning Javascript with DOM Scripting and AJAX" by Christine Heilmann (Apress, 2006), ISBN 1-59059-680-3. Apparantly HIJAX was coined by a Jeremy Keith, so it may also be worth searching for publications that bear his name.
Sorry I can't be of any more help but, like many if not most AJAX programmers I suspect, I am guilty of having not handled failure cases as robustly as I could have. Your question is a prompt for me to learn more. You may look forward to answering my questions some time in the future!
Airshow
50% of the solution lies in accurately describing the problem!
•
•
Join Date: Aug 2009
Posts: 12
Reputation:
Solved Threads: 0
0
#7 Oct 28th, 2009
•
•
•
•
You might want to research "HIJAX" which is an approach (like "AJAX" neither a product nor a language).
HIJAX gets a mention (but no more than that) in one of my reference books - "Beginning Javascript with DOM Scripting and AJAX" by Christine Heilmann (Apress, 2006), ISBN 1-59059-680-3. Apparantly HIJAX was coined by a Jeremy Keith, so it may also be worth searching for publications that bear his name.
Sorry I can't be of any more help but, like many if not most AJAX programmers I suspect, I am guilty of having not handled failure cases as robustly as I could have. Your question is a prompt for me to learn more. You may look forward to answering my questions some time in the future!
Airshow
Actually you've helped me more than you think because I believe in being pointed in the right direction as opposed to being spoon-fed.I still consider the post as being solved by you.Just make a reply and I'll mark it as solved.Jeremy Keith's material on the web is indeed what I need.Thanks again!
Last edited by dangari; Oct 28th, 2009 at 4:38 am.
![]() |
Similar Threads
- AJAX comment form (JavaScript / DHTML / AJAX)
- AJAX / XMLHttpRequest working in all browsers except firefox. Please Help (JavaScript / DHTML / AJAX)
- Please review my ajax media (Website Reviews)
- Ajax referencing a column and fields (JavaScript / DHTML / AJAX)
- Scriptaculous/Ajax help (JavaScript / DHTML / AJAX)
- How to send js variables with a ajax request (JavaScript / DHTML / AJAX)
- AJAX chained select (JavaScript / DHTML / AJAX)
- AJAX: Page events aren't working in "span" pages (JavaScript / DHTML / AJAX)
- AJAX DIV Refresh Help.... (JavaScript / DHTML / AJAX)
- AJAX generated <select> and FIREFOX (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: retrieve textbox old value
- Next Thread: Pre-fill automatically a form field with part of the URL
Views: 514 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxcode ajaxexample ajaxjspservlets api blackjack browser bug calendar captchaformproblem checkbox child class close cookies createrange() cursor dependent disablefirebug dom dropdown editor element embed engine events explorer ext file firehose flash form forms game gears google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe image() images internet java javascript javascripthelp2020 jquery jsf jsfile jump libcurl math matrixcaptcha media mp3 mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post progressbar rated regex runtime scroll search security session shopping size software solutions sql star stars stretch synchronous text textarea tweet unicode web webservice window windowsxp wysiwyg xspf \n





