views:

35

answers:

0

Hi there,

I'm trying to do something like that:(ruby in rails) I got an Iframe with content of two text lines example:

**"bla bla

Http://tt.tt"**

How I read this content of the Iframe and set them as two keys in session. example:

*session['firstline'] = "bla bla"

Session['secondline'] = "Http://tt.tt"*

I try'd to get the content from Javascript and it was fine but i don't know how to transform the data from the javascript to the controller(if it possible)

what I can do? any ideas? If you know about another way to read the content beside javascript i will glad to see.

Thank, T