# How to get data from website load with ajax?

**URL:** <https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029>\
**Category:** Rails\
**Created:** [June 11, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029 "2010-06-11T18:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 11, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029/1 "2010-06-11T18:03:56Z")

</div>

Hi all,  
I want to get data from website load with Ajax.  
Looking forward soon.

Thanks all.

---

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 11, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029/2 "2010-06-11T18:16:09Z")

</div>

On 11 June 2010 17:03, Vuong H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,  
> I want to get data from website load with Ajax.  
> Looking forward soon.

I think you will give rather more explanation of what you are trying  
to do, ‘get data from website load with ajax’ does not mean much to  
me.

Colin

---

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 11, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029/3 "2010-06-11T18:31:51Z")

</div>

Colin L. wrote:

> On 11 June 2010 17:03, Vuong H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi all,  
> > I want to get data from website load with Ajax.  
> > Looking forward soon.
> 
> I think you will give rather more explanation of what you are trying  
> to do, ‘get data from website load with ajax’ does not mean much to  
> me.
> 
> Colin

Thanks Colin,  
I want to get all data on website (ex: “[http://priceonline.hsc.com.vn](http://priceonline.hsc.com.vn)”)  
but I can get some data because some data to load with Ajax, I can’t get  
them.

I have using “hpricot” and “nokogiri” but I only get some data, I can’t  
get all to load with Ajax.

Looking forward soon.

---

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 11, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029/4 "2010-06-11T19:15:17Z")

</div>

On Jun 11, 5:31 pm, Vuong H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Colin
> 
> Thanks Colin,  
> I want to get all data on website (ex: “[http://priceonline.hsc.com.vn](http://priceonline.hsc.com.vn)”)  
> but I can get some data because some data to load with Ajax, I can’t get  
> them.
> 
> I have using “hpricot” and “nokogiri” but I only get some data, I can’t  
> get all to load with Ajax.

Lookup “single origin policy”: browsers won’t usually let you make  
ajax requests to other hosts (if you control the other hosts and the  
browser supports cross domain ajax it can be done). What are you  
trying to achieve?

Fred
