Can i test YUI in yola ?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Is there any way by which i can test YUI (Yahoo User Interface ) library using yola ?
Any suggestion for alternate destination is welcome.
Photo of Shailesh Mishra

Shailesh Mishra

  • 3 Posts
  • 0 Reply Likes
  • unsure

Posted 9 years ago

  • 1
Photo of Christo

Christo

  • 95 Posts
  • 13 Reply Likes
Hi Shailesh

You can indeed use YUI from Yola. In fact, it's even easier because you can reliably load up the JavaScript files from their content servers.

To embed JavaScript using YUI, simply drag an html widget onto the page and place your code in the widget.

Tip: it is a good idea to edit your html on a test page first. Then copy the page to your real page after you are happy that it is working properly because incorrect JavaScript can cause issues with Yola.

Are you wanting to use YUI 2 or YUI 3 ?
Photo of Shailesh Mishra

Shailesh Mishra

  • 3 Posts
  • 0 Reply Likes
Thanks for reply.

I also thought on the same line. But when i tried , every space inside got replace with &nbfs.
Page got displayed but looked like style is not applied (i am also new to YUI), so i just wanted to confirm you guys.
I wanted to use YUI this way so that no extra support is needed at server side.
Photo of Christo

Christo

  • 95 Posts
  • 13 Reply Likes
Hi Shailesh

You can definitely use YUI, but sometimes when copy-pasting there can be some formatting issues with the html editor.

When you are copy-pasting from the YUI sample code, are you sure that you are copying from the "view plain" pop-up?

Sometimes when you copy code off a website the html editor can add some invisible markup which it gets from the the source that you copy from (these are the &nsbp;'s that you are seeing.

If that doesnt work, try pasting into a plain text editor like notepad (not wordpad) first and then into the html editor

Hope that helps!
Photo of Shailesh Mishra

Shailesh Mishra

  • 3 Posts
  • 0 Reply Likes
Thanks .

Your confirmation is more than enough for me to move forward.

I copied from plain text popup but still i will try once again.