Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 909629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:54:43+00:00 2026-05-15T16:54:43+00:00

I am writing a bookmarklet in which I want to use the jquery forms

  • 0

I am writing a bookmarklet in which I want to use the jquery forms plugin.

The problem I am having is that a web page on which the bookmarklet might be used could be using a different js lib, which already uses ‘$’. No problem, I can tell jQuery to use noConflict()

However, the forms plugin of jQuery also uses ‘$’ which I have no control over. Is there a way for me to specify to this plugin to not use $ and use jQuery instead?

More details..

As TNi suggests, I might be misunderstanding the problem.

Here is what I do

I am using Safari 5. Here is what I do
(jquery already loaded)
….

var scriptElem = docEl.createElement('script');
scriptElem.setAttribute('src',"http://localhost:81/p/a2b/jquery.form.js");
scriptElem.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);

and then

jQuery(docEl).ready(function() {
    jQuery('#a2b_cart').ajaxForm(function () { alert (" yo");});

});

What I see on the javascript console:

jQuery("#a2b_cart").ajaxForm is not a function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:54:44+00:00Added an answer on May 15, 2026 at 4:54 pm

    Chances are, your code initializing the form is called immediately after adding the script element, but before it has loaded. Since jQuery is already loaded, call the forms file via getScript:

    jQuery.getScript("http://localhost:81/p/a2b/jquery.form.js", function () {
        jQuery('#a2b_cart').ajaxForm(function () { alert("yo"); });
    
        // Rest of your code here, or call out to another function
    });
    
    // Don't place code here, form.js hasn't loaded yet.
    

    The callback function will only be run once the script file has loaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing this bookmarklet in Javascript, which is also calling some JQuery objects. The
I am writing a simple bookmarklet that runs on youtube page and fetch some
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the
I'm writing a bookmarklet which needs to work in the context of pages whose
I'm currently writing a bookmarklet that loads and executes a remote js file by
Writing an iPhone app in which I want to save the user the grief
Writing a plugin for [top-secret] (not really :P) and I decided that one best
Writing a small HTML web page with some very simple Javascript in it, I
I'm writing a bookmarklet, i.e. a bookmark that contains javascript instead of a URL,
I'm writing a bookmarklet for a jQuery-based product listing site, and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.