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

  • Home
  • SEARCH
  • 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 6205151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:13:15+00:00 2026-05-24T05:13:15+00:00

Javascript Section: var token = $.cookie(csrf_cookie_name); var tx = document.getElementById(tx+working_row).value; var mods =document.getElementById(mods+working_row).value; var

  • 0

Javascript Section:

var token = $.cookie("csrf_cookie_name");
var tx = document.getElementById("tx"+working_row).value;
var mods =document.getElementById("mods"+working_row).value;
var pos = document.getElementById("pos"+working_row).value;
var startdate = document.getElementById("startdate"+working_row).value;
var enddate = document.getElementById("enddate"+working_row).value;
var fordx = document.getElementById("4dx"+working_row).value;
var qty = document.getElementById("qty"+working_row).value;
var price = document.getElementById("price"+working_row).value;
obj = new Object();
obj={'csrf_token_name':token,'tx':tx,'mods':mods,'pos':pos,'startdate':startdate,'enddate':enddate,'fordx':fordx,'qty':qty,'price':price};
alert(obj.csrf_token_name);
$.post("index.php/auth/fee_schedule",obj, function(data){
    alert(data);
});

The issue I’m having is that the token variable isn’t being included in the post. I’m not sure why. The Alert is [Object Object] so, null. The header of the page has the following:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Medata Preauthorzation System</title>
    <link rel="stylesheet" href="<?php echo base_url();?>css/screen.css" type="text/css" media="screen">
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery.sexy-combo.min.js"></script>
    <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.8.13.custom.css" type="text/css" media="screen">
    <link rel="icon" type="image" href="/medata/favicon.ico">
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery.impromptu.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/cookie.js"></script>
</head>

So the Library and Cookie Functions are included. I use the cookie function 10 other times on the same page to do posts and it works fine, but I don’t put any of them into objects with other variables, so it’s just inline alla

$.post("index.php/auth/tx_history/"+tx_code, { csrf_token_name: $.cookie("csrf_cookie_name") }, function(data){
    //alert(data);
        $("#price"+rowid).val(data);
});

I’d Love some Suggestions, i’ve been hitting my head against this code most of the afternoon for non-stop issues.

  • 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-24T05:13:16+00:00Added an answer on May 24, 2026 at 5:13 am

    Maybe:

    var token = $.cookie("<?php echo $this->config->item("csrf_cookie_name"); ?>");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

JavaScript does funky automatic conversions with objects: var o = {toString: function() {return 40;
How do I create an SVG anchor through JavaScript? Please see relevant section and
I've got the following in my <head> section: <script type=text/javascript> $(function(){ $(h5).live(click, function(){ alert($(this).tmplItem());
JavaScript post request like a form submit shows you how to submit a form
JavaScript allows functions to be treated as objects--if you first define a variable as
Javascript: The Good Parts is a great book. Often I find myself reading passages
In Javascript: How does one find the coordinates (x, y, height, width) of every
My JavaScript is pretty nominal, so when I saw this construction, I was kind
In JavaScript, the this operator can refer to different things under different scenarios. Typically
What JavaScript keywords (function names, variables, etc) are reserved?

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.