I'm happy to announce that Adobe has set up a Flex development contest
for students in India. If you're pursuing a degree in any stream
(full-time) from a recognised university, you could spend some time
over the next four months building something cool in Flex and walk
away with a prize of fifty thousand rupees!
http://adobeindia.com/ado/index.html
Submissions can be in 3 categories: engineering (components),
applications, and ColdFusion integration. Each category has a prize of
Rs. 50,000. You can participate individually or as a team of upto 5
members.
Note these important dates in 2007:
1) Send us your proposal by the 10th of January.
2) Send us your prototype by the 31st of January.
3) Send us your complete implementation by the 27th of February.
4) Winners will be announced on the 10th of March.
If you have any questions or issues, check out the students forum:
http://groups-beta.google.com/group/adobe-india-students
Manish
Sorry about the last-minute notice, but I thought this might be
relevant. Yahoo has organised a public lecture at the Taj Westend
Hotel on the 27th (tomorrow) from 2 PM to 6 PM. There will be talks on
the following topics:
- PHP, by Rasmus Lerdorf (co-founder of PHP)
- YUI library, by Philip Tellis
- Performance in JavaScript, by Gopalarathnam V.
- JSON, by Sumeet Mulani
Join this group to give the organisers a sense of how many people are
going to turn up:
http://groups.yahoo.com/group/ydn-bangalore/
It's free and open to anyone.
Manish
Hi!
Check out the application we've built at http://www.matrixconnects.com
Matrix is an online AJAX based Web 2.0 application which converts
"any" web site into an instant community centre and connects people
who are on that website at that instance of time. So if you are
interested in art or science or music or movies or culture or dating
etc and you are accessing a website which has the same theme as your
interest, simply plug into the Matrix and you will be connected to
people who are using the same website as you are! There are no
downloads or installations or fee of any kind! Connect, share,
experience a new revolution...
Do let us know what you think of this experience!
Hi friends,
I am using the AJAX to call a method on the server which sends a
mail to the user.
my code if(status == 200) is evaluating to false yet the mail is
delivered. But because of the above status I am un able to display the
message to the user. Do any one hava an idea how to access
responseText or ResposeXML without status=200 because my prime target
is to display messages in the user interface.
I am returning action messages from my class, these action messages
need to be displayed in the user intrface. I am using spanElements and
replaceExistingElements to show these messages.
The problem is that the "req.status" is not becoming 200 in the
following code:
if (status == "ok" || status == "OK" || status == 200) { // OK response
reached now we can process the response
//Split the text response into Span elements
spanElements =
splitTextIntoSpan(req.responseText);
//Use these span elements to update the page
replaceExistingWithNewHtml(spanElements);
}
else {
alert("Problem with browser response:\n Response status "
+ req.statusText);
}
so, I am getting the alert even when the email is actually send.
any suggestions are welcome.
thanks:
--- In ria-india@yahoogroups.com, "Gaurav Bhatnagar"
<gauravbhatnagar@...> wrote:
Hi friends,
I am using the same AJAX to call a method on the server which sends a
mail to the user.
my code if(status == 200) is evaluating to false yet the mail is
delivered. But because of the above status I am un able to display the
message to the user. Do any one hava an idea how to access
responseText or ResposeXML without status=200 because my prime target
is to display messages in the user interface.
I am returning action messages from my class, these action messages
need to be displayed in the user intrface. I am using spanElements and
replaceExistingElements to show these messages.
The problem is that the "req.status" is not becoming 200 in the
following code:
if (status == "ok" || status == "OK" || status == 200) { // OK response
reached now we can process the response
//Split the text response into Span elements
spanElements =
splitTextIntoSpan(req.responseText);
//Use these span elements to update the page
replaceExistingWithNewHtml(spanElements);
}
else {
alert("Problem with browser response:\n Response status "
+ req.statusText);
}
so, I am getting the alert even when the email is actually send.
any suggestions are welcome.
thanks:
Hi all,
If you're responding to a job posting with your CV/resume, please
reply directly to the person concerned (not to the entire list).
Thanks,
Manish
Hello,
I work for a US-based engineering company. We are looking for
firms in Bangalore to help us with some of our FLEX and AJAX
development work. Please send me an email if you represent or know of
firms that might be interested. I look forward to hearing from you.
-gautam
I trid this and found that even this leads to same repetitive
calling of processStateChange in my case.
--- In ria-india@yahoogroups.com, "Gaurav Bhatnagar"
<gauravbhatnagar@...> wrote:
>
> Well simply wait for your HTTPRequest.Send() to return i.e for your
handler
> function to get called. From within that handler function, you can
then fire
> your next Send() rather than doing it in a timer. This way you call
Send on
> the State of the HTTPRequest object is Ready. Worth a shot.
>
> On 9/5/06, md_sagri <md_sagri@...> wrote:
> >
> >
> >
> > --- In ria-india@yahoogroups.com <ria-india%40yahoogroups.com>,
"Gaurav
> > Bhatnagar"
> >
> > <gauravbhatnagar@> wrote:
> > >
> > > This is a very common issue and so far I have not seen any one clear
> > > solution to this. Usually this happens when you use the same
HTTPRequest
> > > object to send a request when a previous request is pending. Dont
> > use AJAX
> > > in a timer but synch it so that next request goes out only when the
> > previous
> > > request has returned. See if that helps. It helped in our case.
> > >
> >
> > Synchronizing might be a good approach I did not tried.
> > Can you please be more specific what to synchronize.
> >
> > Thanks.
> >
> > >
> > >
> > > On 9/5/06, Manish Jethani <manish.jethani@> wrote:
> > > >
> > > > On 9/5/06, md_sagri <md_sagri@ <md_sagri%40yahoo.co.in>>
> >
> > > > wrote:
> > > >
> > > > > req.onreadystatechange = processStateChange;
> > > > > req.open("POST", url, true);//open the connection
> > > > >
> > > > > setTimeout('processStateChange()',199);//ATTENTION
> > > > >
> > > > > req.send(null); // make a call to the server
> > > >
> > > > First, I don't think there's a need for a timeout here.
Doesn't the
> > > > onreadystatechange function get called automatically when the
server
> > > > call returns? (I don't know much about how Ajax works)
> > > >
> > > > Secondly, there should be a clearTimeout function in
JavaScript, which
> > > > you can use to remove the timeout.
> > > >
> > > > Manish
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -Gaurav
> > > http://www.newdelhitimes.org
> > >
> >
> >
> >
>
>
>
> --
> -Gaurav
> http://www.newdelhitimes.org
>
--- In ria-india@yahoogroups.com, "Gaurav Bhatnagar"
<gauravbhatnagar@...> wrote:
>
> Well simply wait for your HTTPRequest.Send() to return i.e for your
handler
> function to get called. From within that handler function, you can
then fire
> your next Send() rather than doing it in a timer. This way you call
Send on
> the State of the HTTPRequest object is Ready. Worth a shot.
>
This is also a supurb idea but I think You must try out this
http://www.matthom.com/archive/2006/05/15/scary-ajax-error
I am sure You will be amazed to see how easy is it to achieve the same.
Thanx
(Please ignore that empty mail earlier)
> On 9/5/06, md_sagri <md_sagri@...> wrote:
> >
> >
> >
> > --- In ria-india@yahoogroups.com <ria-india%40yahoogroups.com>,
"Gaurav
> > Bhatnagar"
> >
> > <gauravbhatnagar@> wrote:
> > >
> > > This is a very common issue and so far I have not seen any one clear
> > > solution to this. Usually this happens when you use the same
HTTPRequest
> > > object to send a request when a previous request is pending. Dont
> > use AJAX
> > > in a timer but synch it so that next request goes out only when the
> > previous
> > > request has returned. See if that helps. It helped in our case.
> > >
> >
> > Synchronizing might be a good approach I did not tried.
> > Can you please be more specific what to synchronize.
> >
> > Thanks.
> >
> > >
> > >
> > > On 9/5/06, Manish Jethani <manish.jethani@> wrote:
> > > >
> > > > On 9/5/06, md_sagri <md_sagri@ <md_sagri%40yahoo.co.in>>
> >
> > > > wrote:
> > > >
> > > > > req.onreadystatechange = processStateChange;
> > > > > req.open("POST", url, true);//open the connection
> > > > >
> > > > > setTimeout('processStateChange()',199);//ATTENTION
> > > > >
> > > > > req.send(null); // make a call to the server
> > > >
> > > > First, I don't think there's a need for a timeout here.
Doesn't the
> > > > onreadystatechange function get called automatically when the
server
> > > > call returns? (I don't know much about how Ajax works)
> > > >
> > > > Secondly, there should be a clearTimeout function in
JavaScript, which
> > > > you can use to remove the timeout.
> > > >
> > > > Manish
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -Gaurav
> > > http://www.newdelhitimes.org
> > >
> >
> >
> >
>
>
>
> --
> -Gaurav
> http://www.newdelhitimes.org
>
--- In ria-india@yahoogroups.com, Sriram N <sriramx_2000@...> wrote:
>
> Perhaps this link might help :
> http://www.matthom.com/archive/2006/05/15/scary-ajax-error
>
This is an excellent link that worked for me in the single try.
This morning I did nothing to my code but commented my setTimeout()
and replaced <input type="submit"> to <input type="button">.
And this small change worked out for me.
Thank you Sriram N.
Thanx alot.
> Have you tried using Prototype for Ajax calls ? It saves you the
bother of
> making XMLHTTPRequests yourself, plus it's received a lot of testing
and fixes
> regularly.
>
> It's got convenient API for specifying timeouts, success and failure
handlers,
> etc. Ruby on Rails includes this library too, and I've worked on a
project
> where we used this library extensively to develop a touch screen app
based on
> Ruby On Rails.
>
> -- Sriram
>
> --- md_sagri <md_sagri@...> wrote:
>
> > Hi all,
> > I have been wondering days long to find a solution to, Ajax's error,
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--- In ria-india@yahoogroups.com, "Gaurav Bhatnagar"
<gauravbhatnagar@...> wrote:
>
> Well simply wait for your HTTPRequest.Send() to return i.e for your
handler
> function to get called. From within that handler function, you can
then fire
> your next Send() rather than doing it in a timer. This way you call
Send on
> the State of the HTTPRequest object is Ready. Worth a shot.
>
> On 9/5/06, md_sagri <md_sagri@...> wrote:
> >
> >
> >
> > --- In ria-india@yahoogroups.com <ria-india%40yahoogroups.com>,
"Gaurav
> > Bhatnagar"
> >
> > <gauravbhatnagar@> wrote:
> > >
> > > This is a very common issue and so far I have not seen any one clear
> > > solution to this. Usually this happens when you use the same
HTTPRequest
> > > object to send a request when a previous request is pending. Dont
> > use AJAX
> > > in a timer but synch it so that next request goes out only when the
> > previous
> > > request has returned. See if that helps. It helped in our case.
> > >
> >
> > Synchronizing might be a good approach I did not tried.
> > Can you please be more specific what to synchronize.
> >
> > Thanks.
> >
> > >
> > >
> > > On 9/5/06, Manish Jethani <manish.jethani@> wrote:
> > > >
> > > > On 9/5/06, md_sagri <md_sagri@ <md_sagri%40yahoo.co.in>>
> >
> > > > wrote:
> > > >
> > > > > req.onreadystatechange = processStateChange;
> > > > > req.open("POST", url, true);//open the connection
> > > > >
> > > > > setTimeout('processStateChange()',199);//ATTENTION
> > > > >
> > > > > req.send(null); // make a call to the server
> > > >
> > > > First, I don't think there's a need for a timeout here.
Doesn't the
> > > > onreadystatechange function get called automatically when the
server
> > > > call returns? (I don't know much about how Ajax works)
> > > >
> > > > Secondly, there should be a clearTimeout function in
JavaScript, which
> > > > you can use to remove the timeout.
> > > >
> > > > Manish
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -Gaurav
> > > http://www.newdelhitimes.org
> > >
> >
> >
> >
>
>
>
> --
> -Gaurav
> http://www.newdelhitimes.org
>
Well simply wait for your HTTPRequest.Send() to return i.e for your handler function to get called. From within that handler function, you can then fire your next Send() rather than doing it in a timer. This way you call Send on the State of the HTTPRequest object is Ready. Worth a shot.
<gauravbhatnagar@...> wrote:
>
> This is a very common issue and so far I have not seen any one clear
> solution to this. Usually this happens when you use the same HTTPRequest
> object to send a request when a previous request is pending. Dont
use AJAX
> in a timer but synch it so that next request goes out only when the
previous
> request has returned. See if that helps. It helped in our case.
>
Synchronizing might be a good approach I did not tried.
Can you please be more specific what to synchronize.
Thanks.
>
>
> On 9/5/06, Manish Jethani <manish.jethani@...> wrote:
> >
> > On 9/5/06, md_sagri <md_sagri@... <md_sagri%40yahoo.co.in>>
> > wrote:
> >
> > > req.onreadystatechange = processStateChange;
> > > req.open("POST", url, true);//open the connection
> > >
> > > setTimeout('processStateChange()',199);//ATTENTION
> > >
> > > req.send(null); // make a call to the server
> >
> > First, I don't think there's a need for a timeout here. Doesn't the
> > onreadystatechange function get called automatically when the server
> > call returns? (I don't know much about how Ajax works)
> >
> > Secondly, there should be a clearTimeout function in JavaScript, which
> > you can use to remove the timeout.
> >
> > Manish
> >
> >
> >
>
>
>
Perhaps this link might help :
http://www.matthom.com/archive/2006/05/15/scary-ajax-error
Have you tried using Prototype for Ajax calls ? It saves you the bother of
making XMLHTTPRequests yourself, plus it's received a lot of testing and fixes
regularly.
It's got convenient API for specifying timeouts, success and failure handlers,
etc. Ruby on Rails includes this library too, and I've worked on a project
where we used this library extensively to develop a touch screen app based on
Ruby On Rails.
-- Sriram
--- md_sagri <md_sagri@...> wrote:
> Hi all,
> I have been wondering days long to find a solution to, Ajax's error,
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--- In ria-india@yahoogroups.com, "Gaurav Bhatnagar"
<gauravbhatnagar@...> wrote:
>
> This is a very common issue and so far I have not seen any one clear
> solution to this. Usually this happens when you use the same HTTPRequest
> object to send a request when a previous request is pending. Dont
use AJAX
> in a timer but synch it so that next request goes out only when the
previous
> request has returned. See if that helps. It helped in our case.
>
Synchronizing might be a good approach I did not tried.
Can you please be more specific what to synchronize.
Thanks.
>
>
> On 9/5/06, Manish Jethani <manish.jethani@...> wrote:
> >
> > On 9/5/06, md_sagri <md_sagri@... <md_sagri%40yahoo.co.in>>
> > wrote:
> >
> > > req.onreadystatechange = processStateChange;
> > > req.open("POST", url, true);//open the connection
> > >
> > > setTimeout('processStateChange()',199);//ATTENTION
> > >
> > > req.send(null); // make a call to the server
> >
> > First, I don't think there's a need for a timeout here. Doesn't the
> > onreadystatechange function get called automatically when the server
> > call returns? (I don't know much about how Ajax works)
> >
> > Secondly, there should be a clearTimeout function in JavaScript, which
> > you can use to remove the timeout.
> >
> > Manish
> >
> >
> >
>
>
>
> --
> -Gaurav
> http://www.newdelhitimes.org
>
Well Manish,
If I remove that particular line my script exits arbitarily before
the server would return. By setting that timeout I wantto making the
request untill the server returns. I this case whenever the status
becomes == 200 it should exit requesting and proceed with
processStateChanged, which is not the case with me.
The loop continues even after the status==200, which is what I don't
like.
> Secondly, there should be a clearTimeout function in JavaScript, which
> you can use to remove the timeout.
Any link regarding this will be appreciated.
Thank you.
--- In ria-india@yahoogroups.com, "Manish Jethani"
<manish.jethani@...> wrote:
>
> On 9/5/06, md_sagri <md_sagri@...> wrote:
>
> > req.onreadystatechange = processStateChange;
> > req.open("POST", url, true);//open the connection
> >
> > setTimeout('processStateChange()',199);//ATTENTION
> >
> > req.send(null); // make a call to the server
>
> First, I don't think there's a need for a timeout here. Doesn't the
> onreadystatechange function get called automatically when the server
> call returns? (I don't know much about how Ajax works)
>
> Secondly, there should be a clearTimeout function in JavaScript, which
> you can use to remove the timeout.
>
> Manish
>
This is a very common issue and so far I have not seen any one clear solution to this. Usually this happens when you use the same HTTPRequest object to send a request when a previous request is pending. Dont use AJAX in a timer but synch it so that next request goes out only when the previous request has returned. See if that helps. It helped in our case.
> req.onreadystatechange = processStateChange;
> req.open("POST", url, true);//open the connection
>
> setTimeout('processStateChange()',199);//ATTENTION
>
> req.send(null); // make a call to the server
First, I don't think there's a need for a timeout here. Doesn't the
onreadystatechange function get called automatically when the server
call returns? (I don't know much about how Ajax works)
Secondly, there should be a clearTimeout function in JavaScript, which
you can use to remove the timeout.
On 9/5/06, md_sagri <md_sagri@...> wrote:
> req.onreadystatechange = processStateChange;
> req.open("POST", url, true);//open the connection
>
> setTimeout('processStateChange()',199);//ATTENTION
>
> req.send(null); // make a call to the server
First, I don't think there's a need for a timeout here. Doesn't the
onreadystatechange function get called automatically when the server
call returns? (I don't know much about how Ajax works)
Secondly, there should be a clearTimeout function in JavaScript, which
you can use to remove the timeout.
Manish
Hi all,
I have been wondering days long to find a solution to, Ajax's error,
Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
http://myhost:80/ajax/ajscripts.js :: processStateChange :: line 131"
data: no]
Source File: http://myhost:80/ajax/ajscripts.js
Line: 131
in my situation to print the result of a subscription (weather
subscription was successful or failed) in the left pane of my jsp page.
I used my call to server in the following way in my jsp page.
<input value="Subscribe" id="submit" type="submit" onclick =
"retrieveURL('SubscribeMail.do?name=subscriberReq','subscriberform');") >
This transfer my request to ajax script where I am making the
asynchronous call to my server.
var req;
function retrieveURL(url, nameOfFormToPost){
url=url+getFormAsString(nameOfFormToPost);
//Do the AJAX call
req = false;
if (window.XMLHttpRequest) {
try {
//Non-IE browsers
req = new XMLHttpRequest();
} catch(e) {
//alert("in catch for non IE");
req = false;
}
// branch for IE/Windows ActiveX version
}else if(window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
if(req) {
//Set a function to be called after the response from the server is
returned.
req.onreadystatechange = processStateChange;
req.open("POST", url, true);//open the connection
setTimeout('processStateChange()',199);//ATTENTION
req.send(null); // make a call to the server
}
}// end of retrieveURL ?
That is by setting a timeout to my processStateChange function
that will be processed after the XMLHttpRequest.status becomes equal
to 200.
function processStateChange(){
if (req.readyState == 4) {// Complete
// alert("check");
var status = "";
try{
status = req.status;
}catch(e){//alert(" exception ");
status = "Trouble accessing it";
}
if (status == "ok" || status == "OK" || status == 200) { //alert("
OK response reached now we can process the response");
// alert("Ajax Response"+ req.responseText);
//Function to split the text response into Span elements
spanElements =
splitTextIntoSpan(req.responseText);
//Function to replace these span elements to update the jsp page");
replaceExistingWithNewHtml(spanElements);
}
else {
alert("Problem with browser response:\n Response status "
+ req.statusText);
}
}
}//processStateChange ends.
With this approach, I am getting the desired output.
Ofcourse with a non-recomended way of delaying response at the client
end, by the use of set timeout().
Once again, if you uncomment the alerts, you will notice that
the looping of setTimeout(processStateChange()',199) is not stoped as
soon as the status == 200
Rather it continues to call back the function for a quite larger no.
times, approximately 20.
even though this process does not take more than seconds on my
system (local machine), when it is called by the use rit might be
problematic.
Is this approach is acceptable or can any one give me the
issues of setTimeout. Any links that I can find in.
Any suggestion welcome
Thanks.
> Kindly help me with aforesaid information at the earliest.
Even if you have said "kindly", your words sounds a bit like a demand.
I am sure it is not.
;-)
--
Regards
Brajeshwar
________________________________________
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
On 7/9/06, computertutorial2006 <computertutorial2006@...> wrote:
> IF you want microsoft certification tutorial
> For free
<snip>
Sorry, folks, I approved this off-topic message by mistake.
On 7/19/06, lifeandcare <noorul.sabiha@...> wrote:
> 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.
From a quick look at your code, I understand that what you're sending
is not a UTF-8 string but a bunch HTML entities (the '&#xxx;'). I
think you want to decode this on the server side using an HTML
decoder.
Manish
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
I've started a new mailing list for Flex users in India. This is for
Flex-specific discussions, especially for people to get connected to
form local user groups, have meetings, share contacts, etc.
http://groups.google.com/group/flex_india/about
I'm hoping this will be a low volume list like ria-india.
If you're using or planning to use Flex, or are simply interested in
learning more about the technology, please join this list.
Manish
The Flex team in Bangalore is looking for developers to work with us
on: (1) the Flex Framework, and (2) high-level Flex components.
Requirements:
- Basic CS fundamentals (data structures & algorithms, etc.)
- Experience in C++, Java, Python, or any other OO programming
language
- Framework/library/component design experience (API design,
optimisation, etc.)
- Understanding of web technologies: HTML/XHTML, XML, CSS,
JavaScript, etc.
- Experience developing components with object-oriented UI
frameworks like MFC, Swing, Qt, etc.
- Passion for RIA
Flex is one of the leading RIA frameworks out there. Now you get to
participate in its development! If you think this would be your dream
job, send me your resume at manish.jethani@... with a brief
paragraph about yourself (please feel free to include links to your
work viewable online, your technical blog, etc.)
--
Manish Jethani
Developer, Flex Framework
Adobe Software India Pvt. Ltd.
hi all,
i need all the plugins required to run .as and .mxml files in
Eclipse..This FlexBuilder runs really slow and it takes up all the
resoures..I tried installing few plugins and some were not working and
some links were currupted..Please help
If posssible then please upload in this yahoogroup or else you can
directly mail me on my yahoo id..Thank you in advance
On 6/20/06, Bhavin Padhiyar <bhavin_kp@...> wrote:
> I am making one prototype of online television application in flex. In that
I use video display component. I change source property to load different
movies this method works fine when I am working in to development environment
when I put data on server this method give shows me nothing.
Just a guess, but try calling stop() and close() on the object before
changing the 'source' property.
I am making one prototype of online television application in flex. In that I use video display component. I change source property to load different movies this method works fine when I am working in to development environment when I put data on server this method give shows me nothing.
I try out with some other examples that also give same kind of error even in flexstore example of adobe having same error.
Please help me is there my mistake or this is system problem.
Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.