How To Using Jquery at Javascript

How To Using Jquery at Javascript

  

Why i Always get error not define '$' in javascript call 

$( document ).ready(function() {
    document.getElementById("EndOfPage").scrollIntoView();
});

btw i call jquery in my required script,anyone can help? thx

Is this web or mobile?

Can you share a simple oml?



Hi Ricky,

Are you follow this steps?

  1. Download the plugin code, usually a zip archive with several files;
  2. Create a web block with the files in the archive;
  3. Add optional parameters to the web block to control the plugin;
  4. Add an un-escaped Expression to the web block to run JavaScript that activates the plugin;
  5. Include the web block in your web screens.
  6. If needed, assign CSS styles to the containers.

Check this link for more details.

I hope it help.

J. wrote:

Is this web or mobile?

Can you share a simple oml?



This Mobile,i can share screenshot about this,Thx

and i gett error $ not defined,like jquery not detected


Paulo Cação wrote:

Hi Ricky,

Are you follow this steps?

  1. Download the plugin code, usually a zip archive with several files;
  2. Create a web block with the files in the archive;
  3. Add optional parameters to the web block to control the plugin;
  4. Add an un-escaped Expression to the web block to run JavaScript that activates the plugin;
  5. Include the web block in your web screens.
  6. If needed, assign CSS styles to the containers.

Check this link for more details.

I hope it help.


My Problem is In My Mobile Application,Jquery like not detected in my javascript..so i can't use $ for javascript.Thx

Solution

Hi Ricky,

Try change your Javascript to On Render event.

Solution

Paulo Cação wrote:

Hi Ricky,

Try change your Javascript to On Render event.

Thx Is Work!


RICKY DWI HARYANTO wrote:

Paulo Cação wrote:

Hi Ricky,

Try change your Javascript to On Render event.

Thx Is Work!


You welcome! :)