Coldburn Posted July 20, 2006 Share Posted July 20, 2006 If possible, how can I navigate javascript menus? Here's some of the sites code, truncated for your pleasure; expandcollapse popupfunction goAccountSearch () { goUrl('AccountSearch'); } <truncated> if( taskname == 'AccountSearch' ) { var custnum = parent.Context.getByPrecedence('IAF_customerNumber'); param['sql_custnum'] = custnum; task = new parent.Task('/csr/searchAccountScreen.jsp', CustnumUser, param ); } <more truncation> <APPLET CODEBASE="/IAFMenu" CODE="Menu1.class" WIDTH="760" HEIGHT="96" MAYSCRIPT> <PARAM NAME="APPLICATION_MODULE" VALUE="Customer Care"> <PARAM NAME="NUMBER_OF_IMAGES" VALUE="105"> <PARAM NAME="MAIN_MENU_OVER" VALUE="/IAFMenu/images/Nav/nav_neutral_over.gif"> <PARAM NAME="MAIN_MENU_UP" VALUE="/IAFMenu/images/Nav/nav_neutral_up.gif"> <PARAM NAME="MAIN_MENU_NONE" VALUE="/IAFMenu/images/Nav/nav_no_button.gif"> <PARAM NAME="MAIN_MENU_DOWN" VALUE="/IAFMenu/images/Nav/nav_neutral_down.gif"> <PARAM NAME="MAIN_MENU_DOWN_POOL_0" VALUE="/IAFMenu/images/Nav/Down_State_Colours/nav_blue_down.gif"> < it goes on and on> <PARAM NAME="MENU0" VALUE="Accounts|goAccountSearch|~ Create|goAccountCreate| Maintain|goAccountMaintain| Order Entry|goOrderEntry| Service Attributes|goUserMaintain| Service Status|goUserServiceStatus| Summary|goAccountSummary| Notes|goAccountNotes| Trouble Ticketing|goAccountTT| TR User Mgmt|goTrafficReport| Contract Renewal|goContractRNE| "> That 'VALUE="Accounts|goAccountSearch ... " is what i'm after. Thanks for the help! Link to comment Share on other sites More sharing options...
Squirrely1 Posted July 21, 2006 Share Posted July 21, 2006 (edited) I bet there is someone on the forums who could help you easier if you frame the question more carefully and explain exactly from where in your program you wish to access the Javascript and just where the Javascript is (in an existing page online? or just some code embedded somewhere locally?) Edit your post and if you can, attach a .zip file to it with the set of files you are working on. Another idea is to resolve web addresses or show folks the <base href=...> tag that is in your html. However, I myself would be hard pressed to help you with how to accomplish the substance of your question about such access generally, except to say that it will have to do with using AutoIt beta functions such as are found in the beta includes file "IE.au3" and some objects like you get with the AutoIt beta function ObjCreate() . Edited July 21, 2006 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted July 21, 2006 Moderators Share Posted July 21, 2006 We can't do anything with the actual php source. Navigate to the page click View-> Source, save that as a .txt file and post it here. Then we should be able to help you. Link to comment Share on other sites More sharing options...
DaleHohm Posted July 21, 2006 Share Posted July 21, 2006 Also, your menu looks like it is Java, not Javascript. Your success here will depend on what methods the Java applet exposes to the browser/Javascript environment it is running in. There will be no generic answers to your question... they will be dependant on the applet itself. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now