This is a discussion on "Help: getURL not working on all browsers to access Javascript" within the Flash & Multimedia Forum section. This forum, and the thread "Help: getURL not working on all browsers to access Javascript are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help: getURL not working on all browsers to access Javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi everyone. This is my first post. I have a question regarding a website I am developing.
I had previously developed a navigation bar with rollover images in Dreamweaver to link to a javascript command in a seperate folder. However to reduce the download time and have a more uniform look I've redone the navbar in Flash which I like alot. However if I use the getURL command in the actionscript button to access the javascript it only works in Safari and NO other browser. The navbar exists on the same page as the html on a layer. This is the site without the Flash navbar: www.nibroctrilogy.com/WIP/ And this is the site with the Flash navbar that only works in Safari: www.nibroctrilogy.com/WIP2/ The javascript command is: <a href="javascript:;" onclick="dw_scrollObj.scrollTo('wn',0,0); return false" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/nav/home2.gif',0)"><img src="images/nav/home1.gif" name="home" width="67" height="26" border="0" id="home" /></a> The actionscript command is: on (release) { getURL("javascript:dw_scrollObj.scrollTo('wn',0,0) ; return false"); } Any help on this would be much appciated. I am working in Flash 8. Thanks! |
|
|
|
#2
|
|||
|
|||
|
Re: Help: getURL not working on all browsers to access Javascript
Okay got it to work in almost all browsers except Firefox for windows. The offending code was the "return false" parameter.
Anyone have any clues about how I can get it to work properly in Firefox for Windows? Thanks |
![]() |
| Tags |
| help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some javascript not working in Firefox | jonnymorris | Web Page Design | 4 | Sep 18th, 2007 14:02 |
| Some javascript not working in Firefox | jonnymorris | JavaScript Forum | 4 | Sep 18th, 2007 10:47 |
| Javascript not working in xhtml | adnanoner | JavaScript Forum | 0 | Aug 4th, 2007 23:24 |
| using JavaScript to open/access another sites | jayaramgussy | JavaScript Forum | 0 | Jul 5th, 2007 06:52 |
| javascript working fine in IE but cannot work in Firefox | web20tester | JavaScript Forum | 0 | May 21st, 2007 17:37 |