On Sat, Apr 16, 2011 at 11:06 AM, goluhaque <[email protected]> wrote: > No, the image is not to be uploaded. Rather, it is to be linked. I mean, say > the image is hosted at some other website at say, > http://url.com/image/cheese.jpg . This link will be submitted but the user > and will be stored in the db. On the profile page(assume it's a sig or an > avatar), it is displayed by using $this->html->image() . My question is > that whehter the function only displays images(meaning to say that it won't > allow the js script to be executed, if such a link has been submitted) or > will it execute the js script?
It just creates an img tag with the supplied path/URL. If the src attribute points to a JS file nothing will be displayed unless the remote server is configured to output an image for that URL. In which case, the URL needn't be to a JS file but anything at all. The bottom line is that, if it's pointing to a JS file, the script will not be executed in the user's browser. Well, but then there's IE. Who knows? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
