Someone please reply him , he mailed me intead of our group.
Note: forwarded message attached.
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Hi,
I am new here and have not yet played with AJAX.
I am PC programmer who has migrated net based software such as DHTML, PHP MySQL etc.
I am interested in creating custom 'Web 2.0' web sites but I don't want to be tied into the limitations of a particular package such as AJAX.
I tried the code below and it is functional but I have some issues with it.
1) 'id' is not a valid DOM property of 'script' I was thinking of doing things this way myself but I want to stay within the DOM so as not to have compatibility issues.
2) CreateElement and AppendChild may not work as expected.
You can create an element and then there is a need to AppendChild.
Does RemoveChild actually DELETE the element or just remove it association with it's parent?
I suspect that RemoveChild only removes the association and not the actual element. This would result in ever growing resources being consumed on the client as more dynamic content has been transferred?
Having said that,I will play with this code until I get the results I want.
I was intending to have the head.script element in the original HTML and just change the src attribute.
For data in the other direction client>>server, I was playing with events dynamically linking to
It seems that browsers don't care what the extension is as long as the server sends back the correct header.
One tool I would like to have is a debugging script that shows all active nodes on the current document.
This would help me in those tricky instances where there are two <head> elements in one document.
Was anyone seen such a script of do I have to write it from scratch?
Thanks, Rob.
The scripts I used for testing -
--------------------------------
Filename testjs.htm
<html>
<head> </head>
<body>
<script> function test1(){ var script = document.createElement('script'); script.src = 'servertest1.js'; script.type = 'text/javascript'; script.defer = true; var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
}
function test2(){ var script = document.createElement('script'); script.src = 'servertest2.js'; script.type = 'text/javascript'; script.defer = true; var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
}
</script>
<span onmouseover="test1();">(Test 1) Mouse over here</span> <span onmouseover="test2();">(Test 2) Mouse over here</span>
var head = document.getElementsByTagName('head').item(0); head.appendChild(script);
var head = document.getElementsByTagName('head').item(0); script.id = 'lastLoadedCommands'; var old = document.getElementById('lastLoadedCommands'); if (old) head.removeChild(script');
8th Annual Conference on
WWW Applications
Final Invitation & Registration
5-8 September 2006
Bloemfontein, South Africa
Hosts
Two universities have partnered to host this conference, namely the
University of the Free State and the Central University of Technology,
Free State
The University of the Free State (UFS) is one of South Africa's oldest
universities and celebrated its centenary in 2004. The UFS is an
important research centre.
The six faculties offer a full range of under- and postgraduate
programmes to their more than 20 000 students.
The University is a multicultural and multi-lingual institution with
parallel-medium instruction (English and Afrikaans). The UFS is
recognised as a leader in transformation and are committed to serving
the community.
The people at the Central University of Technology, FS (CUT) are
not only passionate about education, but passionate about embracing
the future – the future of the youth of our country and the
communities around them.
The CUT places emphasis on research, student development, community
involvement and quality training. Through relevant educational
program¬mes and innovative research projects the CUT plays a vital
role in higher education in the central region.
Under the auspices of
Enquiries
Please visit the website for updates AND to register:
www.zaw3.co.za
Invitation
We are looking forward to welcoming you in the heart of "Big Sky
Country" for the Eighth World Wide Web Applications Conference. This
event will be held in Bloemfontein from Tuesday 5 to Friday 8
September 2006.
The city of Bloemfontein
Bloemfontein is situated in the Free State Province, in central South
Africa.
As South Africa's judicial capital, Bloemfontein has become known
through the years as the "Central City", "The Hospitable City" and
"The City of Roses".
All these designations indicate that it is a city in which not only
residents, but also visitors and tourists feel truly at home and welcome.
The City, established by Dutch and English settlers in the middle
1800s, is a true blend of the past, present and future. What keeps the
past so alive, is the unobtrusive and almost natural inclusion of an
impressive and historical heritage into the very life of a modern,
developing city.
Graceful charm is to be seen all along the historical, tree-lined
President Brand Street, a declared national conservation area.
Bloemfontein's rich cultural and historical heritage is reflected in
its museums, art galleries and cultural festivals. The city also
offers excellent recreational, shopping and entertainment facilities.
Venue
University of the Free State (Odeion)
Important deadline
Early bird registration: Monday, 7 August 2006
Tracks
 Online learning
 E-business
 Web technology and design
 E-Society
 Cyber law
 E-Governance
 Information access
Who should attend?
 Primary and secondary school teachers involved in e-learning
 Higher and further education practitioners involved in e-learning
 Practitioners of e-learning in private concerns
 Developers of educationally significant web technologies
 Practitioners in the field of e-business and e-commerce
 Officials from local government
 Students with an interest in e-learning, e-business and web
technologies
 Practising and potential managers of e-learning, e-business or
e-Commerce
Keynote speaker
Stephen Downes
He is currently based in Moncton, New Brunswick (Canada), at the
Institute for Information Technology's e-Learning Research Group.
Stephen has become a leading voice in the areas of learning objects
and metadata as well as the emerging fields of weblogs in education
and content syndication. Stephen is perhaps best known for his daily
research newsletter, OLDaily (short for Online Learning Daily), which
reaches thousands of readers across Canada and around the world.
To learn more about this remarkable person, please visit Stephen's
website: www.downes.ca/me/index.htm
Theme of keynote address:
Learning objects: What are they good for?
The idea behind learning objects was that course designers could
discover and re-use existing learning content. To some degree this has
taken hold, but today the concept has more critics than it has
supporters. In this talk Stephen will contend that the fundamental
idea behind learning objects is not misguided - that is, that there is
a great demand and use for re-usable learning content, but that its
application was flawed. Learning objects were supposed to free
content, to make it accessible to everyone, including (and especially)
students. They were supposed to support the sharing of content as a
public good, not the hoarding of digital assets as a commodity. The
idea of learning objects is not dead, but we need to re-think how we
have been approaching sharable and re-usable learning resources.
Programme
The complete programme will be available in August.
Theme: E-Learning 2.0: Tools and Topics
The web is more than a place where you consume content - it is a place
where you create things, do things and interact with your friends. The
tools and technologies that make this possible are known collectively
as "Web 2.0" and learning that takes advantage of these new tools is
called "E-Learning 2.0". This workshop will explore blogs and
blogging, podcasting and audio creation, video and vodcasting, social
networking, tagging, folksonomies and more. The presenter is a leading
innovator in E-Learning 2.0 and the author of a popular e-learning
newsletter, OLDaily.
Social functions
Tuesday, 5 September; 19:00
Welcoming Cocktail Function
Fee: Free of charge to registered conference delegates.
Venue: Reitz Hall (University of the Free State)
Dress code: Casual
Wednesday, 6 September
Free State Braai
Fee: R 100 / person for conference delegates (This function is
subsidised)
Venue: De Oude Kraal Country Estate (Website: www.oudekraal.co.za)
Dress code: Casual (Please bring warm clothes along)
Shuttle service: The shuttle (for ALL delegates attending the braai)
will leave at 18:00 from the parking area at the CR Swart Building.
Thursday, 7 September, 19:00 for 19:30
Dinner
Fee: Free of charge for conference delegates. R 170 / additional guest
Venue: Atrium (Central University of Technology)
Dress code: Smart casual / Traditional dress
Registration
Registration procedure:
• Register online at www.zaw3.co.za
• In order to qualify for the early bird discount, you have to register
BEFORE MONDAY, 7 August 2006.
• Your registration will be confirmed by e-mail once full payment has
been received.
$1 = +- R7,00
Contents of academic programme
Pieter van Brakel (Conference Chair)
Tel: +27 21 469 1015
E-mail: vanbrakelp@...
Sponsorships and exhibitors
Herbert Thomas (Chair of local organising committee)
Tel: +27 51 401-2666
E-mail: thomash.rd@...
Organisational & administrative aspects:
R K Communication
Rhyno Kriek / Irma Stapelberg (Professional Conference Organisers)
Tel: +27 51 436 7733 / 083 265 0 265
Fax: +27 51 436 7733
E-mail: rkc@...
Postal address: P O Box 28694, Danhof, Bloemfontein, 9310, South Africa
Hello,
I am student of final year B.Tech in computer science and engineering.
I am working on a web project which uses JSP and AJAX.
Now, I need help in accessing Hindi (Devnagri) values of parameters. I
am writing aprogram chunk here to understand problem.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I need your help in developing an AJAX web application.
Our EntryPointFunction is sendText() on client side HTML page
On client side,
function sendText(){
var url = "http://localhost:8080/ajax/Process.jsp";
if (!http){
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
http.open("POST", url, true);
http.setRequestHeader("Content-Type","application/x-www-form-urlencoded;
charset=UTF-8");
http.onreadystatechange = handleHttpResponse;
var reqdata="speechField="+ "आपकी
शिकायत की
संख्या ०१२४
का निस्तारण
अधिकारी की
आख्या ग्राम
विकास
अधिकारी
द्वारा समय पर
नलकूप लगाने
के कार्य
सम्बन्ध
कार्यवाही की
जा चुकी है।";
http.send(reqdata);
}
function getHTTPObject() {
var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@else
xmlhttp = false;
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Objectvar req;
var req;
function handleHttpResponse() {
if (http.readyState == 4){
if (http.status == 200){
var pos = http.responseText.indexOf('.');
var len = http.responseText.length ;
parent.control_panel.MediaPlayer21.FileName=http.responseText.substring(pos,len-\
1);//34-56
//parent.control_panel.MediaPlayer21.FileName="./speech/thanks.wav";
alert("hi "+parent.control_panel.MediaPlayer21.FileName);
}else{
alert('There was a problem with the request.');
}
}
}
On server side,
Process.jsp
<%@ page contentType="text/plain;charset=utf-8" %>
<%@ page language="java" %>
<%@ page import="java.io.*" %>
<%@ page import=" java.util.*" %>
<%@ page import="java.net.*" %>
<%
if(request.getCharacterEncoding()==null){request.setCharacterEncoding("UTF-8");}
%>
<% if(request.getParameter("speechField")!=null){ %>
<%
out.println("Response is
"+URLDecoder.decode(request.getParameter("speechField"));
%>
Here is, I am facing problem in getting the value of speechField sent
by client. But if sending ASCII character intead of UTF-8 character,
then it works fine.
But I need Hindi text sent by browser.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Kindly help me with aforesaid information at the earliest.
Your's Faithfully
Hasan
All ya need is a server-side resource capable of outputting XML, and of course Javascript for the client piece.
Also, I've heard about a .Net AJAX library called Atlas... don't know much about it tho.
iikhan_00 <iikhan_00@...> wrote:
Hello Everybody I want to know do i need to install any add-on such as eclipse to work with AJAX ? Is .Net 2003 not sufficient enough to work with AJAX?looking forward to hear from you soon
Regards Izhar Ul Islam
Khan
Yahoo! Music Unlimited - Access over 1 million songs.
Try it free.
I think .Net is very very messy for doing AJAX
Just try to generate Javascript using .Net and compare it with
PHP or ASP3.0; then U will know what I am talking about.
The problemo is that .Net tries to control HTML ouput
instead of giving us total power.
.Net was M$'s answer to JAVA but AJAX makes JAVA redundant.
Hence these are the last days of M$.
USE PHP instead
http://groups.yahoo.com/group/AJAX_PHP_PostgreSQL_Apache_Linux
- Logically Genius
PS> I think Flash is better than JAVA, no wonder youtube.com
uses flash instead of Java to display videos. ;~)
--- In AJAX_2-0@yahoogroups.com, "iikhan_00" <iikhan_00@...> wrote:
>
> Hello Everybody
> I want to know do i need to install any add-on such as
> eclipse to work with AJAX ? Is .Net 2003 not sufficient enough to work
> with AJAX?looking forward to hear from you soon
>
>
> Regards
> Izhar Ul Islam Khan
>
Hello Everybody
I want to know do i need to install any add-on such as
eclipse to work with AJAX ? Is .Net 2003 not sufficient enough to work
with AJAX?looking forward to hear from you soon
Regards
Izhar Ul Islam Khan
Dear Pritesh,
I suggest you to test everything with mozilla firefox and download
developer tools for both IE and Firefox. In firefox there is one tool
called javascript debugger which is awesome. I never thought before
that i can debug JavaScript without alert message and document.write.
Give a try.
Hope that helps
Amit
--- In AJAX_2-0@yahoogroups.com, pritesh loke <priteshloke@...> wrote:
>
> Hay can you tell me about in any Ajac debbuging s\w is there.
>
>
> Thank you
>
> amsm_in <amit.s.mahajan@...> wrote:
hi Got your problem.
> You are using Firefox 1.5?? Was that correct?
> Then let me tell you that its a bug in 1.5 that it doesnt work
> properly on onreadystatechange .Are you giving it as 3? try using 4.
>
> Hope that helps.
> Amit
>
> --- In AJAX_2-0@yahoogroups.com, "chrisandrada" <chrisandrada@> wrote:
> >
> > hi all, i'm using this code from
> > http://www.w3schools.com/xml/xml_http.asp using POST method. It
> > workds fine with IE but with firefox... it fails... can someone
> > please tell me what i need to do to meake it compatible with
firefox.
> >
> > Thanks
> >
> > <script type="text/javascript">
> > var xmlhttpfunction loadXMLDoc(url)
> > {
> > // code for Mozilla, etc.
> > if (window.XMLHttpRequest)
> > {
> > xmlhttp=new XMLHttpRequest()
> > xmlhttp.onreadystatechange=xmlhttpChange
> > xmlhttp.open("POST",url,true)
> > xmlhttp.send(null)
> > }
> > // code for IE
> > else if (window.ActiveXObject)
> > {
> > xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
> > if (xmlhttp)
> > {
> > xmlhttp.onreadystatechange=xmlhttpChange
> > xmlhttp.open("GET",url,true)
> > xmlhttp.send()
> > }
> > }
> > }function xmlhttpChange()
> > {
> > // if xmlhttp shows "loaded"
> > if (xmlhttp.readyState==4)
> > {
> > // if "OK"
> > if (xmlhttp.status==200)
> > {
> > // ...some code here...
> > }
> > else
> > {
> > alert("Problem retrieving XML data")
> > }
> > }
> > }
> > </script>
> >
>
>
>
>
>
>
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.
Great rates starting at 1¢/min.
>
I suggest you to read following things
http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_a_1.htmlhttp://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html
Hope that helps
Amit
--- In AJAX_2-0@yahoogroups.com, christopher andrada
<chrisandrada@...> wrote:
>
> I'm using 4 and still not getting the right value...
> thanks for the help.
>
> chris
>
> --- amsm_in <amit.s.mahajan@...> wrote:
>
> > hi Got your problem.
> > You are using Firefox 1.5?? Was that correct?
> > Then let me tell you that its a bug in 1.5 that it
> > doesnt work
> > properly on onreadystatechange .Are you giving it as
> > 3? try using 4.
> >
> > Hope that helps.
> > Amit
> >
> > --- In AJAX_2-0@yahoogroups.com, "chrisandrada"
> > <chrisandrada@> wrote:
> > >
> > > hi all, i'm using this code from
> > > http://www.w3schools.com/xml/xml_http.asp using
> > POST method. It
> > > workds fine with IE but with firefox... it
> > fails... can someone
> > > please tell me what i need to do to meake it
> > compatible with firefox.
> > >
> > > Thanks
> > >
> > > <script type="text/javascript">
> > > var xmlhttpfunction loadXMLDoc(url)
> > > {
> > > // code for Mozilla, etc.
> > > if (window.XMLHttpRequest)
> > > {
> > > xmlhttp=new XMLHttpRequest()
> > > xmlhttp.onreadystatechange=xmlhttpChange
> > > xmlhttp.open("POST",url,true)
> > > xmlhttp.send(null)
> > > }
> > > // code for IE
> > > else if (window.ActiveXObject)
> > > {
> > > xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
> > > if (xmlhttp)
> > > {
> > > xmlhttp.onreadystatechange=xmlhttpChange
> > > xmlhttp.open("GET",url,true)
> > > xmlhttp.send()
> > > }
> > > }
> > > }function xmlhttpChange()
> > > {
> > > // if xmlhttp shows "loaded"
> > > if (xmlhttp.readyState==4)
> > > {
> > > // if "OK"
> > > if (xmlhttp.status==200)
> > > {
> > > // ...some code here...
> > > }
> > > else
> > > {
> > > alert("Problem retrieving XML data")
> > > }
> > > }
> > > }
> > > </script>
> > >
> >
> >
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
I'm using 4 and still not getting the right value...
thanks for the help.
chris
--- amsm_in <amit.s.mahajan@...> wrote:
> hi Got your problem.
> You are using Firefox 1.5?? Was that correct?
> Then let me tell you that its a bug in 1.5 that it
> doesnt work
> properly on onreadystatechange .Are you giving it as
> 3? try using 4.
>
> Hope that helps.
> Amit
>
> --- In AJAX_2-0@yahoogroups.com, "chrisandrada"
> <chrisandrada@...> wrote:
> >
> > hi all, i'm using this code from
> > http://www.w3schools.com/xml/xml_http.asp using
> POST method. It
> > workds fine with IE but with firefox... it
> fails... can someone
> > please tell me what i need to do to meake it
> compatible with firefox.
> >
> > Thanks
> >
> > <script type="text/javascript">
> > var xmlhttpfunction loadXMLDoc(url)
> > {
> > // code for Mozilla, etc.
> > if (window.XMLHttpRequest)
> > {
> > xmlhttp=new XMLHttpRequest()
> > xmlhttp.onreadystatechange=xmlhttpChange
> > xmlhttp.open("POST",url,true)
> > xmlhttp.send(null)
> > }
> > // code for IE
> > else if (window.ActiveXObject)
> > {
> > xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
> > if (xmlhttp)
> > {
> > xmlhttp.onreadystatechange=xmlhttpChange
> > xmlhttp.open("GET",url,true)
> > xmlhttp.send()
> > }
> > }
> > }function xmlhttpChange()
> > {
> > // if xmlhttp shows "loaded"
> > if (xmlhttp.readyState==4)
> > {
> > // if "OK"
> > if (xmlhttp.status==200)
> > {
> > // ...some code here...
> > }
> > else
> > {
> > alert("Problem retrieving XML data")
> > }
> > }
> > }
> > </script>
> >
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hay can you tell me about in any Ajac debbuging s\w is there.
Thank you
amsm_in <amit.s.mahajan@...> wrote:
hi Got your problem. You are using Firefox 1.5?? Was that correct? Then let me tell you that its a bug in 1.5 that it doesnt work properly on onreadystatechange .Are you giving it as 3? try using 4.
Hope that helps. Amit
--- In AJAX_2-0@yahoogroups.com, "chrisandrada" <chrisandrada@...> wrote: > > hi all, i'm using this code from > http://www.w3schools.com/xml/xml_http.asp using POST method. It > workds fine with IE but with firefox... it fails... can someone > please tell me what i need to do to meake it compatible with firefox. > > Thanks > > <script type="text/javascript"> > var xmlhttpfunction loadXMLDoc(url) > { > // code for Mozilla, etc. > if (window.XMLHttpRequest) > { > xmlhttp=new XMLHttpRequest() > xmlhttp.onreadystatechange=xmlhttpChange > xmlhttp.open("POST",url,true) > xmlhttp.send(null) > } > // code for IE > else if (window.ActiveXObject) > { > xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") > if (xmlhttp) > { > xmlhttp.onreadystatechange=xmlhttpChange > xmlhttp.open("GET",url,true) > xmlhttp.send() > } > } > }function xmlhttpChange() > { > // if xmlhttp shows "loaded" > if (xmlhttp.readyState==4) > { > // if "OK" > if (xmlhttp.status==200) > { > // ...some code here... > } > else > { > alert("Problem retrieving XML data") > } > } > } > </script> >
hi Got your problem.
You are using Firefox 1.5?? Was that correct?
Then let me tell you that its a bug in 1.5 that it doesnt work
properly on onreadystatechange .Are you giving it as 3? try using 4.
Hope that helps.
Amit
--- In AJAX_2-0@yahoogroups.com, "chrisandrada" <chrisandrada@...> wrote:
>
> hi all, i'm using this code from
> http://www.w3schools.com/xml/xml_http.asp using POST method. It
> workds fine with IE but with firefox... it fails... can someone
> please tell me what i need to do to meake it compatible with firefox.
>
> Thanks
>
> <script type="text/javascript">
> var xmlhttpfunction loadXMLDoc(url)
> {
> // code for Mozilla, etc.
> if (window.XMLHttpRequest)
> {
> xmlhttp=new XMLHttpRequest()
> xmlhttp.onreadystatechange=xmlhttpChange
> xmlhttp.open("POST",url,true)
> xmlhttp.send(null)
> }
> // code for IE
> else if (window.ActiveXObject)
> {
> xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
> if (xmlhttp)
> {
> xmlhttp.onreadystatechange=xmlhttpChange
> xmlhttp.open("GET",url,true)
> xmlhttp.send()
> }
> }
> }function xmlhttpChange()
> {
> // if xmlhttp shows "loaded"
> if (xmlhttp.readyState==4)
> {
> // if "OK"
> if (xmlhttp.status==200)
> {
> // ...some code here...
> }
> else
> {
> alert("Problem retrieving XML data")
> }
> }
> }
> </script>
>
Hi,
'POST' does not make a ny sense with xmlhttp, coz it
can't submit a form. 'POST' is equivalent to the
request to a server - 'Please accept this form and all
the elements inside it'
Even if IE doesnt break with this code, it still cant
submit a form.
I would like you to try this in page where there are 2
forms and tell me which form/data got submitted.
Have e nice one !
Krishna
--- chrisandrada <chrisandrada@...> wrote:
> hi all, i'm using this code from
> http://www.w3schools.com/xml/xml_http.asp using POST
> method. It
> workds fine with IE but with firefox... it fails...
> can someone
> please tell me what i need to do to meake it
> compatible with firefox.
>
> Thanks
>
> <script type="text/javascript">
> var xmlhttpfunction loadXMLDoc(url)
> {
> // code for Mozilla, etc.
> if (window.XMLHttpRequest)
> {
> xmlhttp=new XMLHttpRequest()
> xmlhttp.onreadystatechange=xmlhttpChange
> xmlhttp.open("POST",url,true)
> xmlhttp.send(null)
> }
> // code for IE
> else if (window.ActiveXObject)
> {
> xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
> if (xmlhttp)
> {
> xmlhttp.onreadystatechange=xmlhttpChange
> xmlhttp.open("GET",url,true)
> xmlhttp.send()
> }
> }
> }function xmlhttpChange()
> {
> // if xmlhttp shows "loaded"
> if (xmlhttp.readyState==4)
> {
> // if "OK"
> if (xmlhttp.status==200)
> {
> // ...some code here...
> }
> else
> {
> alert("Problem retrieving XML data")
> }
> }
> }
> </script>
>
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Maybe try using the onload instead of onreadystatechange handler for the FF portion?
chrisandrada <chrisandrada@...> wrote:
hi all, i'm using this code from http://www.w3schools.com/xml/xml_http.asp using POST method. It workds fine with IE but with firefox... it fails... can someone please tell me what i need to do to meake it compatible with firefox.
Thanks
<script type="text/javascript"> var xmlhttpfunction loadXMLDoc(url) { // code for Mozilla,
etc. if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest() xmlhttp.onreadystatechange=xmlhttpChange xmlhttp.open("POST",url,true) xmlhttp.send(null) } // code for IE else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") if (xmlhttp) { xmlhttp.onreadystatechange=xmlhttpChange xmlhttp.open("GET",url,true) xmlhttp.send() } } }function xmlhttpChange() { // if xmlhttp shows "loaded" if (xmlhttp.readyState==4) { // if "OK" if (xmlhttp.status==200) { // ...some code here... } else { alert("Problem retrieving XML data") } } } </script>
http://groups.yahoo.com/group/AJAX_2-0/links
Let us know if the links in the above url dont work.
And suggest more if u know any good ones.
--- In AJAX_2-0@yahoogroups.com, pritesh loke <priteshloke@...> wrote:
>
> Hello to all
> I am new in this gourp i want some beginer
tutorials related to ajax if any body have that pls give me
>
>
> Thank you
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
hi all, i'm using this code from
http://www.w3schools.com/xml/xml_http.asp using POST method. It
workds fine with IE but with firefox... it fails... can someone
please tell me what i need to do to meake it compatible with firefox.
Thanks
<script type="text/javascript">
var xmlhttpfunction loadXMLDoc(url)
{
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
xmlhttp.onreadystatechange=xmlhttpChange
xmlhttp.open("POST",url,true)
xmlhttp.send(null)
}
// code for IE
else if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
if (xmlhttp)
{
xmlhttp.onreadystatechange=xmlhttpChange
xmlhttp.open("GET",url,true)
xmlhttp.send()
}
}
}function xmlhttpChange()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// if "OK"
if (xmlhttp.status==200)
{
// ...some code here...
}
else
{
alert("Problem retrieving XML data")
}
}
}
</script>
Hello
I am B.E. I.T. student.
I need urgently to write a seminar on Ajax as final year Seminar.
If you have some usefull link or some thing then plz send it to me.
my e-mail : amtprajapati@...
Thanking you
Amit Prajapati
Nope. It will show the image when the html and the image are in your
local machine. Try it with a browser supported image format like .jpg
or .gif.
- Rafiq
http://www.ajaxtoday.com
--- In AJAX_2-0@yahoogroups.com, Infoligence Associates
<gurudatta_raut-infoligence@...> wrote:
>
>
> So this link should not show image in Windows FireFox
> right ?
>
> file:///c:/windows/winnt.bmp
>
> <img src=file:///c:/windows/winnt.bmp></img>
>
>
> --- Abdul Qabiz <mail@...> wrote:
>
> > No because of security sandbox. You have to use
> > signed script, applet or
> > activex..
> >
> > -abdul
> >
> > logical_genius wrote:
> > > But I was asking about plain HTML+Javascript,
> > > without JAVA or ActiveX ?
>
>
>
> __________________________________________________________
> Yahoo! India Matrimony: Find your partner now. Go to
http://yahoo.shaadi.com
>
So this link should not show image in Windows FireFox
right ?
file:///c:/windows/winnt.bmp
<img src=file:///c:/windows/winnt.bmp></img>
--- Abdul Qabiz <mail@...> wrote:
> No because of security sandbox. You have to use
> signed script, applet or
> activex..
>
> -abdul
>
> logical_genius wrote:
> > But I was asking about plain HTML+Javascript,
> > without JAVA or ActiveX ?
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
No because of security sandbox. You have to use signed script, applet or
activex..
-abdul
logical_genius wrote:
> But I was asking about plain HTML+Javascript,
> without JAVA or ActiveX ?
>
> --- In AJAX_2-0@yahoogroups.com, "Steve Carl" <carl.steve@...> wrote:
> >
> > It's only a security issue if the user turns off their internet
> > restrictions. For my users, I set the intranet zone in IE so that
> they're
> > prompted to allow ActiveX components.
>
>
>
>
>
>
> Internet is the computer !
>
>
>
> SPONSORED LINKS
> Business application software
>
<http://groups.yahoo.com/gads?t=ms&k=Business+application+software&w1=Business+a\
pplication+software&c=1&s=35&.sig=Tt9dfBMfPdtZyRLmZJfkKg>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
> * Visit your group "AJAX_2-0
> <http://groups.yahoo.com/group/AJAX_2-0>" on the web.
>
> * To unsubscribe from this group, send an email to:
> AJAX_2-0-unsubscribe@yahoogroups.com
> <mailto:AJAX_2-0-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>
But I was asking about plain HTML+Javascript,
without JAVA or ActiveX ?
--- In AJAX_2-0@yahoogroups.com, "Steve Carl" <carl.steve@...> wrote:
>
> It's only a security issue if the user turns off their internet
> restrictions. For my users, I set the intranet zone in IE so that
they're
> prompted to allow ActiveX components.
But I was asking about plain HTML+Javascript,
without JAVA or ActiveX ?
--- In AJAX_2-0@yahoogroups.com, "Steve Carl" <carl.steve@...> wrote:
>
> It's only a security issue if the user turns off their internet
> restrictions. For my users, I set the intranet zone in IE so that
they're
> prompted to allow ActiveX components.
You need a browser on the client side - IE6 or Firefox 1.5 both work well. The client side code is JavaScript and DOM, and would have a script function that looks something like this:
function loadStates() {
var localXHR; if (window.XMLHttpRequest) { // for mozilla localHXR = new XMLHttpRequest(); } else if (window.ActiveXObject
) { // for ie localXHR = new ActiveXObject("Microsoft.XMLHTTP"); } if (localXHR) { // gets executed on the return localXHR.onreadystatechange
= function() { // this calls a php page that executes the sql required // and returns the contents of an html select var str = "<select name='selState'>";
if (localXHR.readyState == 4) { if (localXHR.status == 200) { str += localXHR.responseText + "</select>"; document.getElementById('state').innerHTML = str; } } }; var url = "DentistCountParms.php?parm=state";
localXHR.open("GET", url, true); localXHR.send(null); } }
The corresponding PHP executes the SQL required and formats the results into a string,
which it prints:
Sucheta, Here's a link to a brief explanation of AJAX: http://sanctumvoid.net/jsexamples/ajax/ajax.html
Most AJAX programming is client-centric (ie, client-side javascript) but of course you've got the server-side piece as well (pages that accept GET and POST requests and form an XML response).
Sucheta Kulkarni <suchetapar@...> wrote:
Hello all,
What softwares do I need to run an AJAX program ?
I have installed tomcat, ant and myEclipse. Can anyone explain me how to use it in order to run AJAX prgram? or send me some working AJAX code ?
Thanks,
Sucheta
Blab-away for as little as 1�/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
It's only a security issue if the user turns off their internet restrictions. For my users, I set the intranet zone in IE so that they're prompted to allow ActiveX components. For the extranet, the security remains high, and they're not even asked - nothing gets executed.
That is a good point, which I forgot to mention - you need to lower the security settings for th is to work.
If you're on the Windows platform, the FileSystemObject will allow
this. The following is from a windows script technologies help file:
omg,
this is serious vulnerability right? This allow the programmer to get
informations from any file from Windows, I hope that linux (firefox,
gecko, etc) don't allow to do this.... -- SDM - www.Garimpar.com/noticias
http://sdm.zapto.org/ -- "Orientacao a Objeto sempre existiu, mas no final tudo acaba em ponteiros" - Eliel Souza
If you're on the Windows platform, the FileSystemObject will allow
this. The following is from a windows script technologies help file:
omg,
this is serious vulnerability right? This allow the programmer to get
informations from any file from Windows, I hope that linux (firefox,
gecko, etc) don't allow to do this.... -- SDM - www.Garimpar.com/noticias http://sdm.zapto.org/ -- "Orientacao a Objeto sempre existiu, mas no final tudo acaba em ponteiros" - Eliel Souza
I have seen many HTML tutors that run off Harddisk without WebServer.
So is it possible to load a file/image from harddisk if we know its
path on clients harddisk, using javascript only ?
Please correct this question if its wrong.
- Logically Genius.