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 7513071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:03:49+00:00 2026-05-30T00:03:49+00:00

I want to create a simple bookmarklet to pass some information from javascript to

  • 0

I want to create a simple bookmarklet to pass some information from javascript to my Code Ignitor application.

This would need to use GET, but GET is disabled in CodeIgnitor and turning it on would require ment to re-write a few of the views and backend code which is out.

I want to pass 4 options (some are optional) into a method on my controller. Because some are optional it makes it a bit tricky to do

/controller/method/p1/p2/p3

but if p2 is optional, it throws it out a bit.

Ideally I was thinking I could do

/controller/method/p1 

Where p1 is a json array.

However since this is a bookmarklet only basic and standard javascript functions can really be used.

If I could just do

/controller/method?p1=foo&p2=bar

would make life easier.

Any suggestions?

  • 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-30T00:03:51+00:00Added an answer on May 30, 2026 at 12:03 am

    1.) You are not limited to “only basic and standard javascript functions” in a bookmarklet. You can use any library included already in the page, or you can use the bookmarklet to add the library first and then use it. To add a library to a page with a bookmarklet, simply append a script tag and use the onload attribute to execute the desired code after the library has loaded.

    Here is a bookmarklet generator that will let you use jQuery with any bookmarklet: http://benalman.com/code/test/jquery-run-code-bookmarklet/ – you can follow links there for details. Because it’s meant to create bookmarklets for nearly any type of page, the generator is creating code that is a bit more sophisticated than may actually be necessary in your case.

    2.) Why not do something like this: /controller/method/p1=foo&p3=bar and then very easily parse the string yourself. (Notice that this is not a get. There is no “?”.)

    Or similarly /controller/method/p1=foo/p3=bar or /controller/method/p1-foo/p3-bar.

    3.) You can use default place holders that will be ignored by the server side code, like /controller/method/P1/null/P3 or /controller/method/P1/-/P3.

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

Sidebar

Related Questions

I want to create a simple batch file that would perform some Visual Studio
I want to create a simple URL shortner that would do the following: http://example.com/code
I want to create a simple application which performs some calculations and then draws
I want to create a simple http proxy server that does some very basic
I want to create a simple bit of JS code that creates an image
I want to create simple custom control (derived from control and with look defined
I want to create a simple installation script. Below are simple code. <ul> <?php
I want to create a simple mvc application. It's typical task and very simular
I want to create a simple application using Jena and SPARQL, that inserts, deletes,
I want to create simple application like android image gallery but I don't want

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.