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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:14:31+00:00 2026-06-08T11:14:31+00:00

i create one button in html <input type=button value=Simulate class=submit_btn id=stimulate /> and use

  • 0

i create one button in html

<input type="button"  value="Simulate" class="submit_btn"  id="stimulate" />

and use jquery onclick event and create iframe , i want to send lat, long and title to iframe and create dynamic map but i send get 10 % discount as a subtitle , i get following error

GET http://domain name/name of controller/name of function/57.643821505750964/12.180534033203116//get%2010%%20discount 400 (Bad Request)



$("#stimulate").click(function() {
var ad_lng = document.getElementById("longclicked").value;
var ad_subtitle = document.getElementById("ad_subtitle").value;
var ad_lat = document.getElementById("latclicked").value;

$('#iframeHolder').html('<iframe id="iframe" src="<?php echo base_url(); ?>index.php/admin/frame_stimulator/'+ad_lat+'/'+ad_lng+'/'+ad_subtitle+'" width="700" height="550" scrolling="no"  frameborder="0"></iframe>');
}

how can i send data to iframe . i dont want to use form and send data by post method..
without using form i can post data to iframe

  • 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-06-08T11:14:33+00:00Added an answer on June 8, 2026 at 11:14 am

    Pass them in the query string:

    var ad_lng = encodeURIComponent( document.getElementById("longclicked").value );
    var ad_subtitle = encodeURIComponent( document.getElementById("ad_subtitle").value );
    var ad_lat = encodeURIComponent( document.getElementById("latclicked").value );
    
    $('#iframeHolder').html('<iframe id="iframe" src="<?php echo base_url(); ?>index.php/admin/frame_stimulator?ad_lat='+ad_lat+'&ad_lng='+ad_lng+'&ad_subtitle='+ad_subtitle+'" width="700" height="550" scrolling="no"  frameborder="0"></iframe>');
    

    In codeigniter code you would retrieve them:

    $lat = $this->input->get("ad_lat");
    $lng = $this->input->get("ad_lng");
    $subtitle = $this->input->get("ad_subtitle");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 elements and one form with a button: <input type=submit value=Follow All
Here is my html form <div id=create> <form action=index.php method=get id=createform> <input type=text name=urlbox
Let's say you create a wizard in an HTML form. One button goes back,
For testing purpose I create simple html with one button. When you click on
I am trying to create buttons that play single sound files and one button
I have a button in one of my classes that i create it with
I want to create a button in one of my programs. When they click
Can any one tell me how to create the rounded button (Circular Button) in
How can I create a person photo button like the one in contact info
i am trying to create a Radio button using Cakephp like the one the

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.