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/[email protected]
>
> [email protected]/[email protected][email protected]
>
> ','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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---