Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Can I use Javascript frameworks with Skylark?
Re: Can I use Javascript frameworks with Skylark? [message #38434 is a reply to message #38200] Sat, 15 December 2012 17:17 Go to previous messageGo to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Hi!

I think I detected some incompatibility between Skylark Witz and Jquery-Ui library.

Here's my index.witz:
<!doctype html>
 
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Button - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
        $(function() {
        $( "input[type=submit], a, button" )
            .button()
            .click(function( event ) {
                event.preventDefault();
            });
    });
    </script>
</head>
<body>
 
<button>A button element</button>
 
<input type="submit" value="A submit button" />
 
<a href="#">An anchor</a>
 
 
</body>
</html>


When I run my app and access this page I get:
Quote:

Internal server error
(12,11): function nor link not found 'function'


I think it's because of the $ character. Is there any way to escape it for JS code? Skylark is probably seeking for something like $for.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ on Android with Ubuntu
Next Topic: Is this a intended behavior for Upp widgets?
Goto Forum:
  


Current Time: Sun May 05 09:44:42 CEST 2024

Total time taken to generate the page: 0.03088 seconds