Search the web
Sign In
New User? Sign Up
ria-india · RIA India
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 131 - 161 of 191   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#161 From: "Manish Jethani" <manish.jethani@...>
Date: Sun Nov 26, 2006 2:53 pm
Subject: Adobe Developer Olympiad: Flex development contest for students in India
manish_jethani
Offline Offline
Send Email Send Email
 
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

#160 From: "Manish Jethani" <manish.jethani@...>
Date: Sun Nov 26, 2006 2:50 pm
Subject: Talks on PHP, YUI and JavaScript
manish_jethani
Offline Offline
Send Email Send Email
 
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

#159 From: "akabhay" <akabhay@...>
Date: Thu Nov 23, 2006 11:26 pm
Subject: Matrix: The Instant Community - Just Add Water!
akabhay
Offline Offline
Send Email Send Email
 
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!

#158 From: "md_sagri" <md_sagri@...>
Date: Sat Nov 18, 2006 1:43 pm
Subject: how to access responseText or ResposeXML without status=200
md_sagri
Offline Offline
Send Email Send Email
 
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:

#157 From: "md_sagri" <md_sagri@...>
Date: Sat Nov 18, 2006 1:10 pm
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
--- 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:

#156 From: "Manish Jethani" <manish.jethani@...>
Date: Tue Nov 14, 2006 7:26 am
Subject: Admin: Responding to job postings
manish_jethani
Offline Offline
Send Email Send Email
 
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

#155 From: "thegautamiknow" <thegautamiknow@...>
Date: Mon Nov 13, 2006 10:42 am
Subject: Looking for Bangalore FLEX firms to execute project
thegautamiknow
Offline Offline
Send Email Send Email
 
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

#154 From: "Manish Jethani" <manish.jethani@...>
Date: Wed Sep 13, 2006 12:30 pm
Subject: Slashdot | The Future of Rich Internet Applications
manish_jethani
Offline Offline
Send Email Send Email
 
#153 From: "md_sagri" <md_sagri@...>
Date: Thu Sep 7, 2006 6:07 am
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
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
>

#152 From: "md_sagri" <md_sagri@...>
Date: Thu Sep 7, 2006 4:54 am
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
--- 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
>

#151 From: "md_sagri" <md_sagri@...>
Date: Thu Sep 7, 2006 4:43 am
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
--- 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
>

#150 From: "md_sagri" <md_sagri@...>
Date: Thu Sep 7, 2006 4:45 am
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
--- 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
>

#149 From: "Gaurav Bhatnagar" <gauravbhatnagar@...>
Date: Wed Sep 6, 2006 3:53 am
Subject: Re: Re: Solution to Ajax Prolem //Suggestion needed
gbhatnagar79
Offline Offline
Send Email Send Email
 
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, "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

#148 From: Sriram N <sriramx_2000@...>
Date: Tue Sep 5, 2006 4:15 pm
Subject: Re: Solution to Ajax Prolem //Suggestion needed
sriramx_2000
Offline Offline
Send Email Send Email
 
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

#147 From: "md_sagri" <md_sagri@...>
Date: Tue Sep 5, 2006 1:55 pm
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
--- 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
>

#146 From: "md_sagri" <md_sagri@...>
Date: Tue Sep 5, 2006 1:53 pm
Subject: Re: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
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
>

#145 From: "Gaurav Bhatnagar" <gauravbhatnagar@...>
Date: Tue Sep 5, 2006 12:19 pm
Subject: Re: Solution to Ajax Prolem //Suggestion needed
gbhatnagar79
Offline Offline
Send Email Send Email
 
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.



On 9/5/06, 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




--
-Gaurav
http://www.newdelhitimes.org

#144 From: "Manish Jethani" <manish.jethani@...>
Date: Tue Sep 5, 2006 10:55 am
Subject: Re: Solution to Ajax Prolem //Suggestion needed
manish_jethani
Offline Offline
Send Email Send Email
 
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

#143 From: "md_sagri" <md_sagri@...>
Date: Tue Sep 5, 2006 8:55 am
Subject: Solution to Ajax Prolem //Suggestion needed
md_sagri
Offline Offline
Send Email Send Email
 
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.

#142 From: Brajeshwar <brajeshwar@...>
Date: Wed Jul 19, 2006 2:54 pm
Subject: Re: Need guidence in AJAX based web application
flashactions...
Online Now Online Now
Send Email Send Email
 
> 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
________________________________________

#141 From: "lifeandcare" <noorul.sabiha@...>
Date: Wed Jul 19, 2006 10:01 am
Subject: Need guidence in AJAX based web application
lifeandcare
Offline Offline
Send Email Send Email
 
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="+ "&#2310;&#2346;&#2325;&#2368;
&#2358;&#2367;&#2325;&#2366;&#2351;&#2340; &#2325;&#2368;
&#2360;&#2306;&#2326;&#2381;&#2351;&#2366; &#2406;&#2407;&#2408;&#2410;
&#2325;&#2366; &#2344;&#2367;&#2360;&#2381;&#2340;&#2366;&#2352;&#2339;
&#2309;&#2343;&#2367;&#2325;&#2366;&#2352;&#2368; &#2325;&#2368;
&#2310;&#2326;&#2381;&#2351;&#2366; &#2327;&#2381;&#2352;&#2366;&#2350;
&#2357;&#2367;&#2325;&#2366;&#2360;
&#2309;&#2343;&#2367;&#2325;&#2366;&#2352;&#2368;
&#2342;&#2381;&#2357;&#2366;&#2352;&#2366; &#2360;&#2350;&#2351; &#2346;&#2352;
&#2344;&#2354;&#2325;&#2370;&#2346; &#2354;&#2327;&#2366;&#2344;&#2375;
&#2325;&#2375; &#2325;&#2366;&#2352;&#2381;&#2351;
&#2360;&#2350;&#2381;&#2348;&#2344;&#2381;&#2343;
&#2325;&#2366;&#2352;&#2381;&#2351;&#2357;&#2366;&#2361;&#2368; &#2325;&#2368;
&#2332;&#2366; &#2330;&#2369;&#2325;&#2368; &#2361;&#2376;&#2404;";
   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

#140 From: "Manish Jethani" <manish.jethani@...>
Date: Wed Jul 19, 2006 1:54 pm
Subject: Re: IF you want microsoft certification tutorial
manish_jethani
Offline Offline
Send Email Send Email
 
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.

#139 From: "Manish Jethani" <manish.jethani@...>
Date: Wed Jul 19, 2006 1:53 pm
Subject: Re: Need guidence in AJAX based web application
manish_jethani
Offline Offline
Send Email Send Email
 
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

#137 From: "lifeandcare" <noorul.sabiha@...>
Date: Wed Jul 19, 2006 10:16 am
Subject: Need guidence in AJAX based web application
lifeandcare
Offline Offline
Send Email Send Email
 
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="+ "&#2310;&#2346;&#2325;&#2368;
&#2358;&#2367;&#2325;&#2366;&#2351;&#2340; &#2325;&#2368;
&#2360;&#2306;&#2326;&#2381;&#2351;&#2366; &#2406;&#2407;&#2408;&#2410;
&#2325;&#2366; &#2344;&#2367;&#2360;&#2381;&#2340;&#2366;&#2352;&#2339;
&#2309;&#2343;&#2367;&#2325;&#2366;&#2352;&#2368; &#2325;&#2368;
&#2310;&#2326;&#2381;&#2351;&#2366; &#2327;&#2381;&#2352;&#2366;&#2350;
&#2357;&#2367;&#2325;&#2366;&#2360;
&#2309;&#2343;&#2367;&#2325;&#2366;&#2352;&#2368;
&#2342;&#2381;&#2357;&#2366;&#2352;&#2366; &#2360;&#2350;&#2351; &#2346;&#2352;
&#2344;&#2354;&#2325;&#2370;&#2346; &#2354;&#2327;&#2366;&#2344;&#2375;
&#2325;&#2375; &#2325;&#2366;&#2352;&#2381;&#2351;
&#2360;&#2350;&#2381;&#2348;&#2344;&#2381;&#2343;
&#2325;&#2366;&#2352;&#2381;&#2351;&#2357;&#2366;&#2361;&#2368; &#2325;&#2368;
&#2332;&#2366; &#2330;&#2369;&#2325;&#2368; &#2361;&#2376;&#2404;";
   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

#136 From: "Manish Jethani" <manish.jethani@...>
Date: Mon Jul 17, 2006 12:10 pm
Subject: flex_india: A group for Adobe Flex technology users in India
manish_jethani
Offline Offline
Send Email Send Email
 
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

#135 From: "Manish Jethani" <manish.jethani@...>
Date: Mon Jul 17, 2006 11:35 am
Subject: The Flex team in Bangalore is hiring!
manish_jethani
Offline Offline
Send Email Send Email
 
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.

#134 From: "Manish Jethani" <manish.jethani@...>
Date: Mon Jul 17, 2006 9:41 am
Subject: Top RIA projects on SourceForge.net: XUI, ZK
manish_jethani
Offline Offline
Send Email Send Email
 
These two RIA projects are in the Top 25 Projects list on SourceForge.net.

1) XUI

https://sourceforge.net/projects/xui
http://www.xoetrope.com/zone/index.php?zone=XUI

2) ZK

https://sourceforge.net/projects/zk1
http://zk1.sourceforge.net/

Check out the live demos!

Manish

#133 From: "raju_bb" <raju_bb@...>
Date: Sat Jun 24, 2006 1:29 pm
Subject: require all the plugins required to run .as and .mxml file in Eclipse
raju_bb
Offline Offline
Send Email Send Email
 
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

#132 From: "Manish Jethani" <manish.jethani@...>
Date: Wed Jun 21, 2006 4:28 pm
Subject: Re: FLV can't load in to videoDisplay component from remote machine
manish_jethani
Offline Offline
Send Email Send Email
 
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.

#131 From: Bhavin Padhiyar <bhavin_kp@...>
Date: Tue Jun 20, 2006 2:18 pm
Subject: FLV can't load in to videoDisplay component from remote machine
bhavin_kp
Offline Offline
Send Email Send Email
 
hi all,

Strange!!!

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.

Messages 131 - 161 of 191   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help