[help] InternetExplorer Object events... - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [help] InternetExplorer Object events... (/showthread.php?tid=93546) [help] InternetExplorer Object events... by whiz on 01-15-2010 at 09:06 PM
Reference: http://msdn.microsoft.com/en-us/library/aa752084.aspx RE: [help] InternetExplorer Object events... by roflmao456 on 01-16-2010 at 03:45 AM
yeah. pretty similar to how i do WMP events in WLMini Music Player. code: RE: [help] InternetExplorer Object events... by whiz on 01-16-2010 at 11:17 AM
js code: code:It seems that none of the events work. Any ideas? Edit: tried with variables, still didn't work. js code: RE: RE: [help] InternetExplorer Object events... by felipEx on 01-16-2010 at 10:15 PM
quote:this should do the trick JScript code:As for keeping track of the history list you could manually do it using the appropriate event RE: [help] InternetExplorer Object events... by whiz on 01-17-2010 at 01:37 PM
Works great, thanks! RE: [help] InternetExplorer Object events... by matty on 01-18-2010 at 04:27 PM
Have you looked at the MSDN page? It states that there are 2 parameters for the function... first one being the web browser object second being the URL... RE: [help] InternetExplorer Object events... by whiz on 01-18-2010 at 05:15 PM
quote:Surely the object parameter will just contain the browser object, regardless of frames? Edit: ah, hold on... quote:Fair enough. Ok, another question. The Browser::BeforeNavigate() and Browser::BeforeNavigate2() functions don't get called, and nor does the Browser::NewWindow(), Browser::NewWindow2() and Browser::NewWindow3() functions. Any possible reasons why? Are they not supported? RE: [help] InternetExplorer Object events... by matty on 01-18-2010 at 05:47 PM No the second parameter is the URL. A frame is going to have a different URL than the main page... RE: [help] InternetExplorer Object events... by whiz on 01-18-2010 at 05:52 PM
quote:Yes... but how do I tell the difference between a main page and a frame page, then? RE: [help] InternetExplorer Object events... by matty on 01-18-2010 at 05:54 PM Can you not get the url from the browser object? RE: [help] InternetExplorer Object events... by whiz on 01-18-2010 at 07:14 PM Yeah, but how can the script tell the difference between the URL of a main page and the URL of a framed page? RE: [help] InternetExplorer Object events... by matty on 01-18-2010 at 07:21 PM You can't not without reading the code of the page I would assume. If you just need to show the URL simply do browser.LocationURL RE: [help] InternetExplorer Object events... by whiz on 01-18-2010 at 07:48 PM
quote:Oh yeah, should have thought of that. Ok, but any idea why the BeforeNavigate and NewWindow functions don't work (original post here)? |