Hello... when i use below code to open a google page it works. <INPUT type="button" value="New Window!" onClick="window.open(''http://www.google.com'',''mywindow'',''width=400,height=200'')"> But i have html file in my application folder.to open that file i tried this Code. <INPUT type="button" value="New Window!" onClick="window.open(''http://192.168.0.82:3000/ACMServer_exe/ChatHistory/2009-01-11/parthiban-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org'',''mywindow'',''width=400,height=200'')"> When i click this, new window opens but i get routing Error like No route matches "/ACMServer_exe/ChatHistory/2009-01-11/parthiban-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org" with {:method=get} Pls Help me .i m troubling with this for the past two days . nothing works .pls help.how can i open local html file -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What do you want it to do? What is the path supposed to load? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 03/02/2009, at 5:37 PM, Newb Newb <rails-mailing-list@andreas- s.net> wrote:> > Hello... > > when i use below code to open a google page it works. > > <INPUT type="button" value="New Window!" > onClick="window.open(''http:// > www.google.com'',''mywindow'',''width=400,height=200'')"> > > But i have html file in my application folder.to open that file i > tried > this Code. > > <INPUT type="button" value="New Window!" > onClick="window.open(''http://192.168.0.82:3000/ACMServer_exe/ChatHistory/2009-01-11/parthiban-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org'',''mywindow'',''width=400,height=200'' > )"> > > When i click this, new window opens but i get routing Error like > No route matches > "/ACMServer_exe/ChatHistory/2009-01-11/parthiban-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org > /jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org" > with {:method=get} > > Pls Help me .i m troubling with this for the past two days . > nothing works .pls help.how can i open local html file > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Julian Leviston wrote:> What do you want it to do? What is the path supposed to load? > > Blog: http://random8.zenunit.com/ > Learn rails: http://sensei.zenunit.com/ > > On 03/02/2009, at 5:37 PM, Newb Newb <rails-mailing-list@andreas-as like google page opens ,i want to open my local file from application folder That HTML file''s Actual path D:\Projects\inProgress\ANGACM0908\re\Back Ups\acm_administration-31-jan-09_2\ACMServer_exe\ChatHistory\2009-01-22\martin-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org\jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
put the file in your ''public''-folder of your rails app or make it accessible by other means (= webserver). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Before you do rails driven sites work out about how webservers work first. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 03/02/2009, at 6:01 PM, Newb Newb <rails-mailing-list@andreas- s.net> wrote:> > Julian Leviston wrote: >> What do you want it to do? What is the path supposed to load? >> >> Blog: http://random8.zenunit.com/ >> Learn rails: http://sensei.zenunit.com/ >> >> On 03/02/2009, at 5:37 PM, Newb Newb <rails-mailing-list@andreas- > > as like google page opens ,i want to open my local file from > application > folder > That HTML file''s Actual path > > D:\Projects\inProgress\ANGACM0908\re\Back > Ups\acm_administration-31-jan-09_2\ACMServer_exe\ChatHistory > \2009-01-22\martin-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org\jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org > ~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 3 Feb 2009, at 7:37 AM, Newb Newb wrote:> when i use below code to open a google page it works. > > <INPUT type="button" value="New Window!" > onClick="window.open(''http:// > www.google.com'',''mywindow'',''width=400,height=200'')"> > > But i have html file in my application folder.to open that file i > tried > this Code. > > <INPUT type="button" value="New Window!" > onClick="window.open(''http://192.168.0.82:3000/ACMServer_exe/ChatHistory/2009-01-11/parthiban-2DSrjwymGrfc+919tysfdA@public.gmane.org > ~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org > '',''mywindow'',''width=400,height=200'')">Do you see what you''re doing here? You''re not opening a local file, you''re asking a web server for a file. So either you need to put this file in the public folder of your project (so the web server can find it), configure your web server so it can find the file elsewhere, or, if you really want the file to remain local, change the url to a local path ("file:<full path>"). But unless this is for personal use only, I don''t think that''s what you''re looking for. Then again, if this is not for personal use, you might want to learn a bit more about web servers first. mcv. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Martijn Vos wrote:> On 3 Feb 2009, at 7:37 AM, Newb Newb wrote:thanks for the reply. ok if i put my folder in public how can i open that file. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
pls kindly help me up. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
pls kindly help me up. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 3 Feb 2009, at 9:40 AM, Newb Newb wrote:> Martijn Vos wrote: > >> On 3 Feb 2009, at 7:37 AM, Newb Newb wrote: > > thanks for the reply. > ok if i put my folder in public > how can i open that file.Same way you''d load anything else in the public folder, like images or css files. Take a look at an example Rails site. mcv. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---