# Google chrome with prototype issue

**URL:** <https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727>\
**Category:** Rails\
**Created:** [March 25, 2010, 5:58am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727 "2010-03-25T05:58:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 25, 2010, 5:58am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727/1 "2010-03-25T05:58:38Z")

</div>

Dear all,

```
I am using prototype js in my rails application and making many ajax

```

calls using that. everything works fine in IE and FF but new  
Ajax.request() is not working in chrome and safari. any solution will be  
greatfull.

Thanks  
karthik

---

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 25, 2010, 9:54am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727/2 "2010-03-25T09:54:38Z")

</div>

On 25 March 2010 04:58, Karthikragunath B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Dear all,
> 
> I am using prototype js in my rails application and making many ajax  
> calls using that. everything works fine in IE and FF but new  
> Ajax.request() is not working in chrome and safari. any solution will be  
> greatfull.

I don’t know about Ajax.request but have often found that when  
something works in one browser and not another it is due to invalid  
html which is interpreted differently by the different browsers. Have  
you tried pasting the generated html into the w3c html validator to  
check? Or install html validator add-on to firefox which is great as  
it checks the html as you develop.

Colin

---

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 25, 2010, 10:18am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727/3 "2010-03-25T10:18:23Z")

</div>

I see, thanks colin i will try as you said.

Colin L. wrote:

> On 25 March 2010 04:58, Karthikragunath B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> I don’t know about Ajax.request but have often found that when  
> something works in one browser and not another it is due to invalid  
> html which is interpreted differently by the different browsers. Have  
> you tried pasting the generated html into the w3c html validator to  
> check? Or install html validator add-on to firefox which is great as  
> it checks the html as you develop.
> 
> Colin

---

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 25, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727/4 "2010-03-25T18:18:07Z")

</div>

On Wed, Mar 24, 2010 at 9:58 PM, Karthikragunath B. \<  
removed\_email\_address@domain.invalid\> wrote:

> Dear all,
> 
> I am using prototype js in my rails application and making many ajax  
> calls using that. everything works fine in IE and FF but new  
> Ajax.request() is not working in chrome and safari. any solution will be  
> greatfull.
> 
> Thanks  
> karthik

Karthik, have you checked the error console for both Chrome and Safari?  
If  
not, then I would  
highly recommend doing this when working with Ajax.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![karthikragu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Post date:** [March 26, 2010, 6:14am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727/5 "2010-03-26T06:14:10Z")

</div>

Hi Conrad,

Thanks, as you seggested i used error console and found  
“this.transport.send(this.body);” is where the issue occurs though the  
input paramaters are right. this line was not able to send request to my  
server. im blank still.

Conrad T. wrote:

> Karthik, have you checked the error console for both Chrome and Safari?  
> If  
> not, then I would  
> highly recommend doing this when working with Ajax.
> 
> Good luck,
> 
> -Conrad
