Forum Discussion

BenjaminGolden's avatar
BenjaminGolden
Qrew Cadet
6 years ago

Save and Scooby Doo on Mobile?

SASD is an incredibly helpful technique for desktop programs when you want to save and keep working, but it seems to stop at the "Save and Close" desktop button. On mobile, both the "Save" and "Save & New" buttons don't respond, and I'm at a loss as to how to rewrite the script. Anyone have any clues? If you need the source to look at, Dan Diebolt put it here.
  • I don't recall if the SASD technique uses global variables like the normal IOL technique... older version of the app variables use QB global variables which the mobile version doesn't have... it's an easy change though.
  • So what would you propose?

    I have been using global variables for the surrounding image tag for iol per Dan's method (i.e. [iol] & "saveandscoobydoo.js" & [/iol]), but even switching out global variables for text just gives the exact same result. 

  • For the iol variable... just need to update to:


    <img qbu='module' src='/i/clear2x2.gif' onload="if(typeof QBU=='undefined'){QBU={};$.getScript(document.location.pathname.substr(4)+'?a=dbpage&pagename=

    mainly there's a variable at the $.getScript(

    just change that variable to document.location.pathname.substr(4) and it should work on mobile.
  • Still only seems to kick in on desktop. Is there something else I need to change?
    • RyanStanford1's avatar
      RyanStanford1
      Qrew Captain
      That's all I had to change... might be because SASD uses an iframe the mobile browser doesn't want to play nicely with it.

      I haven't used SASD myself, so that's strictly theory.
    • BenjaminGolden's avatar
      BenjaminGolden
      Qrew Cadet
      Gotcha, I figure for now it's not a critical enough issue to spend any more time on than I already have, so making people save and click the edit button is gonna have to work for now. Thanks anyway for the help!