Jump to content

Simon Law

Former Frog Staff
  • Posts

    59
  • Joined

  • Last visited

Posts posted by Simon Law

  1. 5 hours ago, Chay said:

    Hi all,

    I'm having trouble getting the twitter feed working with Internet Explorer 11. It works fine with Chrome, Safari and Firefox, but it just doesn't seem to work with explorer. Has anybody else come across this or know of a work around? I've tried both the custom built twitter widget and putting the extra code in as shown in the tutorials.

    Many thanks

    Chay

    Looks like Twitter is not supporting IE11, I found this link on their site https://help.twitter.com/en/using-twitter/twitter-supported-browsers . . They support Edge, Chrome, Safari, Firefox and others built off Webkit/Chromium but no mention of IE11

    I have had a breif look over their code and it will not work for IE6, IE7, IE8, IE9, IE10 or IE11

    • Thanks 2
  2. var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
           // Action to be performed when the document is read;
        }
    };
    xhttp.open("GET", "/app/file/......validdays.js", true);
    xhttp.send();

    that's just a quick google

    Have you tried saving it a XML? that will be seen as data file to the browser, not code. If that works the browser can take XML and parse it into data you can use

  3. On 7/3/2019 at 9:58 AM, pconkie said:

    I have the following validdays.js file in a frogcode project

    
    var validDays = [
        {from:'03/09/2018', until:'26/10/2018'},
        {from:'05/11/2018', until:'21/12/2018'},
        {from:'07/01/2019', until:'15/02/2019'},
        {from:'25/02/2019', until:'05/04/2019'},
        {from:'23/04/2019', until:'24/05/2019'},
        {from:'03/06/2019', until:'23/07/2019'}
    ]

    It looks like terms dates, but only because it is test data.  It will list valid days that detentions can take place on.

    It will be used in a couple of different widgets and a couple of apps too.

    While developing the js file was referenced in the project as other assets are e.g. 

    
    Com.Frog.Utils.require(
        '//package/applications/189607D420048EA5819BDFE3CD8C91047FD735DC518F1808/assets/styles/main.css',
        '//package/applications/189607D420048EA5819BDFE3CD8C91047FD735DC518F1808/validdays.js',
        '//package/applications/189607D420048EA5819BDFE3CD8C91047FD735DC518F1808/assets/views/thumb.ejs',
        '//package/applications/189607D420048EA5819BDFE3CD8C91047FD735DC518F1808/assets/views/popover.ejs',
        '//package/applications/189607D420048EA5819BDFE3CD8C91047FD735DC518F1808/assets/views/main.ejs'
    ).then(function() {

    This worked fine until I deployed! I have realised that the require doesn't allow js to be loaded for a published app/widget.

    I really don't want to put the code into the app/widgets as this will duplicate it and require me to update it in multiple places.

    Any suggestion please for getting around this?

     

    hi Paul, Mr Quince ask me to have look, what does it do when you try to use it? does it break Frog, show a horrible console log?

    I am also looking through the code base to see what else you could use

  4. 2 hours ago, gbligh said:

    I might be being really basic here, but how do I actually get to it?!

    I've missed 3 pages of conversation, so I could be missing something obvious,

    The Frog MIS Linked Documents is within the Parent category of widgets and the FrogCode version is within the 'My Widgets' category

  5. 6 hours ago, Sue Busher said:

     

    I have been asked to get our new website live in the next day or so, but this is still holidng is up. 

    I am confused about what I need to do (or my IT colleagues). Can you help @Simon Law

     

    Hi Sue,

    I have looked at your cover site and there seems to be several attempts to use a FileDrop and a link and a network drive widget.

    The links will not work as the browser forbids you to open files on your system from a web page.

    The FileDrop has no files, so I can't see it working, I have changed the HTML widgets to use the right FileDrop

    In setting the above, the save removed the network file share and directory, so that will need setting again.

    So, to move forward, add the files to the filedrop so we can see if we can get the HTML widget working,

    Reset the Network Widget to point to the MIS directory, so we can see if you can use the index file in there

  6. 21 hours ago, pconkie said:

    Great widget @Simon Law but I don't think it works on iOS - at least I can't get it to work (desktop browsers all fine).

     

    It is this bit that fails on iOS.....

    
    '.nav-navigation-container li a {click}': function(el, ev) { 
    	$menu = this.element.closest('.sites_core').find('.sites_menu');
    	$menu.find('a[data-uuid='+el.attr('data-uuid')+']').click();
    },

     

    Safari on iOS inspector and Chrome inspector report slightly different objects if you console out $menu and $menu.find('a[data-uuid='+el.attr('data-uuid')+']'), so perhaps this is why?

    I found that this fixed the issue...

    
    '.nav-navigation-container li a {click}': function(el, ev) {
    	$menu = this.element.closest('.sites_core').find('.sites_menu');
    	$menu.trigger('sites.changeLocation', {
    		uuid: el.attr('data-uuid')
    	});
    },

    Is this 'safe' to use?

    Paul

     

    22 hours ago, pconkie said:

    $menu.trigger('sites.changeLocation', { uuid: el.attr('data-uuid') });

    Hi Paul,

    yes, that could be the way forward. the menu click event calls the 'sites.changeLocation' trigger, so we are just circumventing calling the menu tab..

    • Thanks 1
  7. 23 minutes ago, ADT said:

    Just discovered something strange.... if I open the KS3 template manually....  then hit the blue create site button...  cancel it...  close the template... the button works as expected??

    image.png.7600ea9e274d8bd6e8993e9b38c3aaac.png

    Found the little critter!!

    OK, your observation was strange until you realise what was happening. 

    The sitecreationwizard is a whole load of javascript that is dragged into the platform on demand, unfortunately in the case of the widget, it was not loading it in prior to trying to call it.

    A bit like trying to eat a pizza before you've actually ordered it.

    So, if you log out then log in again, go to the plus circle, select site, wait for the site wizard to appear, then cancel it, then go to your button, it will work

    That can be fixed ... but next week

    • Haha 1
  8. 21 minutes ago, ADT said:

    Tired calling you but  you were in a meeting!!  Sometimes it easier to explain over the phone!!!

    If you hop onto our platform and from the staff dashboard check out the Classroom>New Workspaces>KS3 page! The button used to skip to the "Site Details bit" of the wizard (using the KS3 Template), giving staff a chance to name/theme the workspace before its added to the site list on that page!  It doesn't seam to want to do anything anymore?

    I did ask for a button I could put on a site so it could be deleted directly rather than having to go through Frog drive but I never got that...  just you know... while  you are on!! :P

    we Dev's are kept in much the same environment as mushrooms, cool, dark and surrounded by soil,

    looking now

    • Haha 1
  9. 1 hour ago, Simon Law said:

    That sounds like it's not broken, care to divulge what it does that is not what it should be doing? HWSNBN's stuff tends to land on my plate now

    ok, I have had a look at the widget code and it launches the site creation wizard, with the given site/template you selected.

    I can see a failure point if you have selected a site rather than a template as the wizard can only select a template from school templates that you can see, otherwise it defaults to the default template.

    I don't know whether it 'missed out' the whole wizard process and just created the site, a kind of fast track?

     

  10. 4 minutes ago, ADT said:

    While I'm on about broken things....  can someone fix the Template Creator Frog Code Widget that "he who shall not be named" made for me before he left!!!

    When clicked it automatically uses a template I have selected and just creates a site!!!

    Thanks in advance!! :P

    @Graham Quince @Simon Law

    That sounds like it's not broken, care to divulge what it does that is not what it should be doing? HWSNBN's stuff tends to land on my plate now

  11. 2 hours ago, ADT said:

    Sorry mate... an internal Frog site ;)!!

    Link to another site
    In order to link to another site, we need the Site's alias (named link in the developer tools).  To get this link, we have create a bookmarklet for Google Chrome browsers.   

    so the link that looks like /adriantate/somesitehere/ 

     

    are you trying to use my frogcode widget or the HTML widget code?

     

  12. 16 hours ago, adamw said:

    I'll have to dig into the code and have a look, but off the top of my head, you could try listening for the 'app.resize'  trigger,. it's possible that it get's fired when you push the min/max button. As for the width... I'll have to get back to you on that, probably some jquery to get the calculated width of the new element. @Graham Quince may know a sneaky way?

    'app.resize': function(el, ev, dialog) {
    
    //do something fancy in here
    
    }

    The dialog object contains details of previous/current position, width and height

  13. 3 hours ago, kjc said:

    Hi,

    Does anyone have any code I could use to re-position the dashboard switcher?  It currently sticks to the bottom of the window. I would like to move it to under the dashboard site title instead.

     

    Thanks

    Kieran

    Hi Kieran,

    The short answer is that it's complicated, 

    The bar is positioned by javascript which is activated when the screen width is altered. and then what is is viewed on.

    <style>
      .ui-os-desktop-navigation {
      left:5px !important;
      top:65px !important;
      bottom:unset;
      }
    </style>

    The above styling would bring the navigation to top left but I could not guarantee it would stay there! 

  14. 3 hours ago, Corinne said:

    Yes I tried the meta tags but googles site would not recognise it when I pasted it into that box

    The instructions given are here https://support.google.com/webmasters/answer/35179?hl=en 

    If you click through to the  'Search Console home page' that is where it shows you the available methods, each one I try throws up an error. 

    Hi Corinna,

    you've pasted too much in to the field (see image), just paste in the bYNMc_9HjibIXm5akuVQDI7tlLOWkSEypiJO3q-0XBE code into the field

    image.thumb.png.32c7f2194ac9fef2c0d8e46e06d1ded1.png

    then try again

  15. 15 hours ago, Guesty81 said:

    Thanks for the tutorial and screenshots. I have a code in the Google Verification - what do I do with this?

    Thanks in advance for all the help.

    Chris

    Hi Chris, you have the google verification code in the settings now, that means you can now verify that you are the owner of the public facing site(s) to google analytics.

    You should now be able to go onto the google webmaster pages (where you got your verification code from) and be able to view the analytics.

    You may need to request that google re scans the site (to pick up the verification code)

    image.png.ba0c919a69960d14293a1427195ae6d6.png

    That is the data that google will use

  16. 32 minutes ago, Corinne said:

    Hi,  

    Sorry should have explained, it it on the site we use as our school website that I am trying to set this up for. I am just not sure how to make it work at the moment as the guide on google suggests uploading files to the site, which I cannot get to work. and then I find this box and I am not sure what to put in there to make it work.

    Thanks! 

    Corinne, if you can paste the text google gives as instructions, perhaps I can make sense of it.

  17. 3 hours ago, Corinne said:

    Can someone tell me how I can get Google Verification to work? 

    I have just updated out meta data and other things in here and seen the verification, what is meant to go in the settings for this? 

    Hi Corinne,

    That setting if for when Google Analytics is used for your public facing sites.

    It allows you to validate that you are the owner of the site(s) to google, so that you can look at the analytics provided through them.

    If you don't use them, just leave the field blank.

    I hope that helps.

  18. 1 hour ago, ADT said:

    It has been suggested that a A UDF could be set up for this purpose and would be far more suitable whatever that is...  I though the UDF was a NI terrorist group!!!!  Unfortunately our SIMs lady is off on the sick...  and even if we could set one up I doubt Frog pulls that in!!

    my searches suggest a UDF is a User Defined Field within SIMS,

    So the field has a number of different type eg Date, Number, Text

    The Number for example could be called 'Gold' and have a range eg 1500 - 2000

    But as My MIS hero is on annual leave, I can't ask him either.

     

    The idea of the paperless praise is excellent for both the trees, the printer, the lady printing and of course your head's hand.

    I will ponder

    • Thanks 2
×
×
  • Create New...