javascript in textfield

This is a discussion on "javascript in textfield" within the Flash & Multimedia Forum section. This forum, and the thread "javascript in textfield are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 25th, 2005, 06:55
Junior Member
Join Date: Jul 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
javascript in textfield

hi there

i got to open a javascript popup with standard size in a website from flash. i.e. it should be able to click in flash, and open up a popup window displaying the content of the URL.

i tried the fscommand method from macromedia but it doesnt work. ( btw my published file is asp.net although i dun think that makes any difference from html in terms of javascript) i think the main thing is that my link in this case comes from html text in rxtfield. whereas javascript opens in buttons.. i wonder if theres a way of using html textfield to open up a javascript popup?


Code: Select all
 _root.Movie.textfield.htmlText += "" + Works[j] + "
"
theres this line i input into flash.. but it doesnt work either even though there is no error.

Is there any way of doing this?

Any help is appreciated. Thanks
Reply With Quote

  #2 (permalink)  
Old Aug 25th, 2005, 15:43
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
You need to edit the published (base) HTML file from flash by adding Javascript in the head.

Code: Select all
<script language="JavaScript"> 
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
Then on the flash page add the javascipt to your button/link:

Code: Select all
on (release) {
	getURL ("javascript:openNewWindow('openpage.htm','thewin', 'height=500,width=425,toolbar=no,scrollbars=yes')");
}
hope this helps
Reply With Quote
  #3 (permalink)  
Old Aug 26th, 2005, 00:42
Junior Member
Join Date: Jul 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
hey there..
thanks for your reply. However, the links are in a movie, which contain a textfield. They are not buttons so i cannot use on(release) or getURL.

Im currently using
Code: Select all
_root.Movie.list.htmlText  += " " + titles[j]+ "
"
to make them in html links. However, this doesnt work.. even though the popup appear when im previewing it in flash mode. It does not appear when im in the real website mode.

The links for the website appear like this :

Code: Select all
javascript:openWindow(../file/file/link.swf,openWindow,height=480,width=640,toolbar=no,scrollbar=no,resizable=no)
I wonder if theres any problem with the codeS? or is it coz of the enviroment?

Appreciate any help.Thanks
Reply With Quote
Reply

Tags
javascript, textfield

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] help with checkbox and textfield in form BRONIC JavaScript Forum 8 Apr 22nd, 2008 16:08
Textfield problem marSoul Flash & Multimedia Forum 0 Oct 21st, 2007 22:54
Javascript dharvesh JavaScript Forum 4 Oct 21st, 2007 01:28
Why and what in javascript?? 1840dsgn JavaScript Forum 5 Aug 23rd, 2007 01:14
JavaScript cbrams9 JavaScript Forum 1 Sep 20th, 2006 17:35


All times are GMT. The time now is 07:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43