johnJohnston said
Interestingly I can't edit a script once I've called init. I can open the script wd but not type in it.
johnjohnston said
I don't know where you are going with this but Tomas' webkit external let SC 'trap' click on links, javascript etc
bookbuzz said
the page data doesn't update to reflect changes to the uploaded data - although I have revised the code on the URL I was calling, I don't see the changes within the project. The changes do show within Safari. Is there a way to purge the cached data?
haden_young wrote:I had a look for Tomas' webkit external but externals.net would not come up (Network Error).
What is the list of functions in this external.
Is it not now compatible with SC? That would save some work.
function WebKit_Start tWindow, tRect
on WebKit_Dispose webKitRef
on WebKit_setRect webKitRef, tRect
on WebKit_Focus webKitRef
on WebKit_Show webKitRef
on WebKit_Hide webKitRef
on WebKit_UnFocus webKitRef
on WebKit_LoadURL webKitRef, tURL
on WebKit_LoadSavedRequest webKitRef, tRequestRef
on WebKit_LoadHTML webKitRef, tHTML, baseURL
function WebKit_GetURL webKitRef
on WebKit_GoBack webKitRef
on WebKit_GoForward webKitRef
on WebKit_GoHistory webKitRef, relativePos
function WebKit_CanGoBack webKitRef
function WebKit_CanGoForward webKitRef
function WebKit_GetBackList webKitRef, maxCount
function WebKit_GetForwardList webKitRef, maxCount
on WebKit_Reload webKitRef
on WebKit_StopLoading webKitRef
function WebKit_GetProgress webKitRef
function WebKit_CanShowMIMEType mimeType
function WebKit_CanShowMIMETypeAsHTML mimeType
on WebKit_Cut webKitRef
on WebKit_Copy webKitRef
on WebKit_Paste webKitRef
on WebKit_Delete webKitRef
on WebKit_Undo webKitRef
on WebKit_Redo webKitRef
function WebKit_CanUndo webKitRef
function WebKit_CanRedo webKitRef
function WebKit_UndoActionName webKitRef
function WebKit_RedoActionName webKitRef
on WebKit_ClearUndos webKitRef
on WebKit_StartSpeaking webKitRef
on WebKit_StopSpeaking webKitRef
on WebKit_MakeTextSmaller webKitRef
on WebKit_MakeTextLarger webKitRef
on WebKit_SetTextSizeMultiplier webKitRef
on WebKit_FindText webKitRef, theNeedle, isForward, isCaseSensitive, doWrap
on WebKit_SetJavascriptEnabled webKitRef, isEnabled
on WebKit_SetJavaEnabled webKitRef, isEnabled
on WebKit_SetPluginsEnabled webKitRef, isEnabled
function WebKit_RunJavaScript webKitRef, javascriptCode
function WebKit_GetTitle webKitRef
function WebKit_GetSource webKitRef
function WebKit_GetDOMSource webKitRef
on WebKit_SetUserAgent webKitRef, uaString
on WebKit_SetEditable webKitRef, isEnabled
on WebKit_ReplaceSelectionWithHTML webKitRef, html
on WebKit_ReplaceSelectionWithText webKitRef, theText
on WebKit_SetAlignment webKitRef, alignStyle
function WebKit_Snapshot webKitRef
on WebKit_SetUserProperty webkitRef, propName, propValue
on WebKit_AppendUserProperty webkitRef, propName, propValue
on WebKit_DeleteUserProperty webkitRef, propName
function WebKit_GetUserProperty webkitRef, propName
function WebKit_MakeXMLTreeFromDOM webKitRef
on WebKit_Focus webKitRef
haden_young wrote:The SCWebView obtains focus (SC loses it) when the mouse enters the view area and similarly when the mouse leaves the view SC regains focus.
I have not decided whether this is the best arrangement?
Dave Higgins wrote: I can't think of much outside of mouse clicks that a user might do that would require SC to regain focus (other than the script editing thing). But, then again, you may bump into a case where SCWebView has focus and the user wants to click on a SC button...
haden_young wrote:SCWebView("WebViewA","goBack")
SCWebView("WebViewB","goForward")
With regard to SCWebView I would like to first add more functionality into the external before trying to add this feature.
haden_young wrote:setFocusToSC
setFocusToWebView
haden_young wrote:Cookies:
You can add and omit and get a list. Implementing access to add,delete and get a list is someway down the road.
haden_young wrote:Errors:
There is in WebView a means to access errors. Will implement this, probably for the next update.
haden_young wrote:Hovering over a link to obtain the path.
If you right click on a link you can already copy the link to the clipboard. This is already built-in for free. At least the last time I tried it.
haden_young wrote:Reload:
Will be in the next update. Trivial looking at the docs.
on openProject
open window "anchor"
open window "SCWebView"
--These 3 lines are only required for my testing
put projectPath(this project) & "SCWebView.bundle" into bundlePath
put bundlePath into cd fld 1 of window "SCWebView"
load external bundlePath
end openproject
put projectPath(this project) & "SCWebView.bundle" into bundlePath
put bundlePath into cd fld 1 of window "SCWebView"
load external bundlePath
haden_young wrote:Yes, you install the external as per other externals.
Return to XCmds, XFcns, and XRtns
Users browsing this forum: No registered users and 1 guest