Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

$ with jQuery plugins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    $ with jQuery plugins

    I'm using noconflict when combining jQuery and A5... but what about plugins that other people write.

    One I'm trying right now is an MP3 player with functions and code written using $. I can't get it working and I'm wondering if that's the problem. The player works on an HTML page, but not in an a5w page.

    If I assign $j to use jQuery, would I have to change the javascript code from the plugin?

    Thanks,
    David

    #2
    Re: $ with jQuery plugins

    you should ask the js library developer/community for a workaround
    Cheers
    Mauricio

    Comment


      #3
      Re: $ with jQuery plugins

      Originally posted by Davidk View Post
      I'm using noconflict when combining jQuery and A5... but what about plugins that other people write.

      One I'm trying right now is an MP3 player with functions and code written using $. I can't get it working and I'm wondering if that's the problem. The player works on an HTML page, but not in an a5w page.

      If I assign $j to use jQuery, would I have to change the javascript code from the plugin?

      Thanks,
      David

      jQuery uses the dollar sign as a function name, followed by a “query” used to “find things” to “do stuff” to. The problem with this is that other widely used javascript libraries use the dollar sign for their function names as well. One such library is Prototype. Prototype uses the dollar sign as a shortcut to document.getElementById. So, when I need to use both JQuery and Prototype, what do I do? Well, jQuery has provided a handly little method called noConflict() to deal with just such an issue. To remedy an issue where the dollar sign function names conflict, you simply assign Jquery.noConflict() to something such as $j and then use that instead of the dollar sign.




      optional you have to change the code your using, but other Jquery script I used do not have a conflict with A5.
      Last edited by bea2701; 02-02-2011, 09:11 PM.

      Comment


        #4
        Re: $ with jQuery plugins

        Understood... but...

        When I download a plug-in such as swagg-player which contains javascript files and those files use $ does that cause a problem.

        I've attached one of the swagg-player javascript files. Thanks for looking at this.

        I don't care if I have to change them... just want to make sure that I need to... it kinda makes sense.

        Comment


          #5
          Re: $ with jQuery plugins

          I am confused on how to go about replacing the $ sign in order to use Jquery on a a5w page that contains a dialog component.

          Would the line of code be changed from var $content = $('#content') to
          var jQuerycontent = jQuery('#content') ? Does there need to be a space between jQuery and content? Is this correct?

          Cufon.now();
          var $content = $('#content'),
          $contentDD = $('#content>dd');

          $(document).ready(function(){
          $content.css({marginTop:'164px'});

          $("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
          clearInput('contact_form');
          $contentDD.css({display:'none'})
          });

          Comment


            #6
            Re: $ with jQuery plugins

            I'm going to take a stab at this...

            It depends on what you're doing... and in the sample code you provided you have two things going on. You're declaring variables, or objects, which are nothing special to jQuery... and you're using jQuery to refer to objects.

            And this assumes you've got the noConflict stuff in your a5w page...

            Code:
            <script>
            	if(typeof jQuery != 'undefined')
            	 jQuery.noConflict();
            </script>

            I think I would write your code as follows... (there's an error on the 2nd line... you have a comma... not a semi-colon... and on the last line as well... no semi-colon)

            Code:
            Cufon.now();
            var $content = jQuery('#content');
            $contentDD = jQuery('#content>dd');
            
            jQuery(document).ready(function(){
            
                 $content.css({marginTop:'164px'});
            
                 jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
                 clearInput('contact_form');
                 $contentDD.css({display:'none'});
            
            });
            $content is just a variable... you could call it anything you want. If you want to use $ it's because you'd like to distinguish variables set with jQuery from other variables.
            $contentDD is the same.

            jQuery('#content') is the jQuery way of getting at an element.

            jQuery(document)... is jQuery.

            $content.css is just getting at the properties of the $content object you established.

            I hope I have this right... but I'm not sure... and I don't think I would do it this way...

            What about not assigning $content and $contentDD. Use jQuery to get at the element and css that you want... directly. I haven't tried this... but I believe it should be ok...

            Code:
            jQuery("#content").css("marginTop","164px");
            I don't think you need the { braces to set one property... but I believe you need them to set multiple properties... as in...

            Code:
            css({"propertyname":"value","propertyname":"value",...});
            Note the difference between the use of the "," for a single property... and the ":" for multiple properties.
            Last edited by Davidk; 02-10-2013, 01:03 PM.

            Comment

            Working...
            X