Welcome to TalkGraphics.com
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11

    Thumbs up Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by perseus View Post
    I think this particular implementation can be achieved easily with Xara without JQuery. But thanks for the first suggestion.
    Could you share your idea about it ?

  2. #12
    Join Date
    Nov 2009
    Location
    Miami, FL USA
    Posts
    14

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by ab29 View Post
    Could you share your idea about it ?
    Sure, here is a sample.
    Attached Files Attached Files

  3. #13

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by perseus View Post
    Sure, here is a sample.
    Ok, that's convincing. Thanks.

  4. #14
    Join Date
    Aug 2000
    Location
    Skødstrup, Denmark
    Posts
    251

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by perseus View Post
    Sure, here is a sample.
    This is actually a good example of what might be accieved using javascript/jQuery.

    If you in Xara choose to add a text tooltip to an object that will be implemented automatically by Xara to a SPAN tag with a TITLEattribute. Now excuse me for being a little technical, but using the brilliant selector engine of jQuery you can select all such elements and apply - for instance the mentioned tooltip plugin, and thereby get well, another tooltip type.

    Here is the selector (for the technical minded ):
    $('span[title!=""]')
    That will return all standard tooltips on the page, and from there it is easy using jQuery plug-ins to apply some behavior to each of the elements.

    Don't worrie if you are a graphical nerd - this coding related thread will soon relocate to some other place What I however hope to deliver to this forum are some easy-to-use new features for the program which we all love to use!
    Cheers,

    Sten
    "Everything has two sides"

  5. #15
    Join Date
    Aug 2000
    Location
    Skødstrup, Denmark
    Posts
    251

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by covoxer View Post
    ...I can not provide complete documentation as it would be too time consuming to create one. But I can answer any specific questions....
    Thanks! Could you perhaps make a list with a simple description of what the various function does? Or if you have a "less minimized" version of the roe.js, that would be nice!
    Cheers,

    Sten
    "Everything has two sides"

  6. #16
    Join Date
    Aug 2000
    Location
    Skødstrup, Denmark
    Posts
    251

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Here is the first code - and at the same time the place to share the code in this project.
    It should be saved along with "roe.js" and included (manually/placeholder) into a HTML file generated by Xara. It does nothing much, just locks the calls made from Xara. Oh and I have tried to turn off all the "document.onmousemove" eventhandler... Here goes!
    http://gist.github.com/239092
    Cheers,

    Sten
    "Everything has two sides"

  7. #17
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Why have you disabled onmousemove handler?
    John.

  8. #18
    Join Date
    Aug 2000
    Location
    Skødstrup, Denmark
    Posts
    251

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by covoxer View Post
    Why have you disabled onmousemove handler?
    Hi John,
    For starters - this first upload is done late last night and at this state I am only trying to get an overview of what is going on in the Xara javascript library.

    I find it bad practice to attach code to global code, unless you cannot do it smarter. Every time the mouse is moved a call is made to the global eventhandler (potentially slowing the page down).

    I expect that the elements on the page which needs attention should hook onto events as a situation occures. Like if you move over an element which shows a popup, at that time register a mousemove listener. When the mousemove listener is no longer relevant for that element, remove it again.

    Oh and please let me stress that I have not tried to do such collaborative coding before accross the web. I do not expect the discussion on how it should be done/implemented to take place here. Anyone have any experience how to do that?
    Cheers,

    Sten
    "Everything has two sides"

  9. #19

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    Quote Originally Posted by netsi View Post
    Anyone have any experience how to do that?
    Bugzilla is server software designed to help you manage software development.

    Could be a useful discussion/collaboration tool

  10. #20
    Join Date
    Aug 2000
    Location
    Skødstrup, Denmark
    Posts
    251

    Default Re: Anyone interested in joining af project: jQuery integration with HTML generated X

    I have decided to try another approach. I have created a Xara document which serves an a test page, project description and version history page.
    That also means that for now the github online source library will not be used (for now).

    The actual javascript library has a working title "XXExt.js" and resides beside the exported HTML files and is called "XXExt.js". A ZIP file containing everything you need to run it locally can be found here: http://www.netsi.dk/xara/xxext.zip

    You can view the alpha version () of the library here:
    http://www.netsi.dk/xara/xxext/index.html

    If you wish to add some code or have comments you are welcome to send them to me.
    Cheers,

    Sten
    "Everything has two sides"

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •