我传递网址时出现http://ajobis.brainiacstech.com/404_override错误

时间:2014-09-13 08:32:46

标签: ajax codeigniter

我传递网址时出现

http://ajobis.brainiacstech.com/404_override错误 当我点击“应用”按钮发送动作网址时显示的这条消息是404页面未找到我认为是因为使用了()带有测试工作的brakets,其他没有任何特殊字符的url正在成功传递,我的代码是

    <div id="content-wrapper" class="container">
            <div class="row">
                <div class="col-lg-9">
                    <div>
                        <div class="content-wrapper">
                            <!--                    <div class="content-header">
                                                    <script>
                                                        function goBack() {
                                                            window.history.back()
                                                        }
                                                    </script>
                                                    <div class="title"><h1><a onclick="goBack()"><img src="<?php echo base_url("resources/images/back-icon.jpg"); ?>" alt="">Back to Results</a></h1></div>
                                                </div>-->
                            <div class="content">
                                <div id="search-result-wrapper">
                                    <div class="title" style="color: #005580;"><h1><?php echo $job->job_title; ?></h1></div>
                                    <div>
                                        <p><?php echo $job->job_description; ?></p>
                                    </div>
                                    <?php if (!empty($job->question)) { ?>
                                        <div class="title text-blue"><h2>Application Questions</h2></div>
                                        <div class="question-awnser">
                                            <ul>
                                                <?php $counter = 0; ?>
                                                <?php foreach ($job->question as $question) { ?>
                                                    <li><?php echo $question->question;
                                            $counter++; ?> 
                                                        <span class="answers">
                                                            <input type="radio" name="answers" id="yes" value="yes">
                                                            <label id="answer_<?php echo $counter; ?>" for="yes">Yes</label>
                                                            /
                                                            <input type="radio" name="answers" id="no" value="No">
                                                            <label for="no">No</label>
                                                        </span>
                                                    </li>
            <?php } ?>
                                            </ul>
                                        </div>
        <?php } ?>
                                    <div class="section-row">
                                        <div class="pull-right">
                                            <div class="pull-left">
                                                <a href="javascript:check_killer_answers()" class="btn btn-blue"><img src="<?php echo base_url("resources/images/apply-icon.jpg"); ?>"> Apply</a>&nbsp;
                                            </div>

                                            <div class="pull-left" id="<?php echo $job->id; ?>">
                                                <button onclick="save_job('<?php echo $job->id; ?>')" class="btn btn-blue"><span class="glyphicon glyphicon-save"></span>&nbsp;&nbsp;&nbsp;Save</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>    


                            </div>
                        </div>
                    </div>
                </div>
        <?php $this->load->view('front/common/job_detail_widget'); ?>

            </div>


            <div class="row">
                <div class="col-lg-11">
                    <div class="title"><h3 style="color: #0a0;">Suggested Jobs</h3></div>
                </div>
            </div>

                <div class="suggestion-jobs"><div class="row">
            <!--suggestedJobs-->

            <?php if (!empty($suggestedJobs)) { ?>
            <?php foreach ($suggestedJobs as $suggestedJob) { ?>
            <div class="col-lg-3 suggestions">
                <input type="text" id="jobid" value="<?php echo $suggestedJob->job_url; ?>" style="display: none;">
                <input type="text" id="jobid" value="<?php echo $suggestedJob->id; ?>" style="display: none;">
                <div class="suggestions-info"><h4><a href="<?php echo base_url("job-detail/$suggestedJob->job_url"); ?>"><?php echo $suggestedJob->job_title; ?></a></h4></div>
                        <div class="suggestions-info"><span>Salary: </span><?php echo $suggestedJob->min_salary; ?> - to - <?php echo $suggestedJob->max_salary; ?></div>
                        <div class="suggestions-info"><span>Location: </span><?php echo $suggestedJob->location; ?></div>
                        <div class="suggestions-info"><span>Posted on: </span><?php echo $suggestedJob->start_date; ?></div>
                    </div>
                            <?php } ?>
                <?php } else { ?>
                    No Job Found
        <?php } ?>

            </div>
                    </div>

        </div><!--




        <!--</div>-->
        <script src="<?php echo base_url("resources/js/icheck.js"); ?>"></script>
        <script type="text/javascript">
                                                    function save_job(id) {
                                                        $.ajax({
                                                            dataType: 'json',
                                                            type: 'POST',
                                                            url: base_url + 'employee/add-to-favorite',
                                                            data: {
                                                                jobId: id
                                                            },
                                                            success: function(RESP) {
                                                                if (RESP.status == 200) {
                                                                    $('#' + id).html("<button class='btn btn-green' disabled='disabled'><span class='glyphicon glyphicon-save'></span>&nbsp;&nbsp;&nbsp;Saved</button>");
                                                                    displayUIMessage(RESP.message);
                                                                }
                                                            }
                                                        });
                                                    }
                                                    function check_killer_answers() {
                                                        var count = '<?php echo $counter; ?>';
                                                        var error = 0;
                                                        for (var i = 1; i <= count; i++) {
                                                            if ($('#answer_' + i).hasClass('active')) {

                                                            } else {
                                                                error++;
                                                            }
                                                        }
                                                        if (error == 0) {
                                                            window.location.href = '<?php echo base_url('employee/confirm-apply/' . @$job->job_url); ?>';
                                                        } else {
                                                            alert('Please answer all questions to apply.');
                                                        }
                                                    }
                                                    function report(id) {
                                                        $.ajax({
                                                            dataType: 'json',
                                                            type: 'POST',
                                                            url: base_url + 'employee/report-to-admin',
                                                            data: {
                                                                jobId: id
                                                            },
                                                            success: function(RESP) {
                                                                if (RESP.status == 200) {
                                                                    displayUIMessage(RESP.message);
                                                                }
                                                            }
                                                        });
                                                    }

        </script>

0 个答案:

没有答案