|
From: creecode <icr...@us...> - 2006-03-03 19:31:15
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/webBrowser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8681 Modified Files: openURL Log Message: on Windows for Firefox, Mozilla, and Netscape, use the parameters as suggested by < https://bugzilla.mozilla.org/show_bug.cgi?id=255196 > (enclose url in quotes) for WWW_OpenURL, < http://help.netscape.com/kb/consumer/19980502-2.html > Index: openURL =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/webBrowser/openURL,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** openURL 1 Mar 2006 00:43:29 -0000 1.2 --- openURL 3 Mar 2006 19:31:09 -0000 1.3 *************** *** 3,6 **** --- 3,8 ---- on openURL (s, openURLIn = nil) { «Changes + «3/3/06; 8:47:39 AM by TAC + «on Windows for Firefox, Mozilla, and Netscape, use the parameters as suggested by < https://bugzilla.mozilla.org/show_bug.cgi?id=255196 > (enclose url in quotes) for WWW_OpenURL, < http://help.netscape.com/kb/consumer/19980502-2.html > «2/28/06; 10:38:13 AM by TAC «minor script formatting tweaks *************** *** 17,25 **** "Win95"; "WinNT" { ! if string.lower (id) contains "firefox" { ! s = s + " "}; ! if string.lower (id) contains "netscape" { ! return (webBrowser.callBrowser (id, "WWW_OpenURL", s + ",,-1"))}; return (webBrowser.callBrowser (id, "WWW_OpenURL", s))}}} \ No newline at end of file --- 19,48 ---- "Win95"; "WinNT" { ! local (lowerId = string.lower (id)); ! local (parameters = "\"%1\",,-1,0,,,,"); // winRegistry.read ("HKCR\\http\\shell\\open\\ddeexec\\"), this can be used to read the registry for the current browser parameters, we don't use it now because there are some issues our scripts ! case true { ! lowerId contains "firefox"; ! lowerId contains "mozilla"; ! lowerId contains "netscape" { // netscape 8.1 seems to be deaf, need code to check version and break? ! ! «bundle // parameters, this might be useful if we need to replace params ! «local (i, newParameters, s) ! « ! «for i = 1 to string.countFields (parameters, ',') ! «if i == 3 ! «s = "-1" ! «else ! «s = string.nthField (parameters, ',', i) ! « ! «newParameters = newParameters + s + "," ! « ! «delete (@newParameters [string.length (newParameters)]) ! « ! «parameters = newParameters ! ! parameters = string.replace (parameters, "%1", s); ! ! return (webBrowser.callBrowser (id, "WWW_OpenURL", parameters))}}; return (webBrowser.callBrowser (id, "WWW_OpenURL", s))}}} \ No newline at end of file |