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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:11:57+00:00 2026-06-18T08:11:57+00:00

In my program i am using this jquery plugin to show notifications in the

  • 0

In my program i am using this jquery plugin to show notifications in the jsp pages.

What i want is to get a value from a html table and display it in the text inside the notification, What i tried is as below

<script type="text/javascript">
            $(document).ready(function() { 
            var table = document.getElementById("item");
            for (var i = 1; i<= table.rows.length; i++) {
               val=table.rows[i].cells[1].innerText;
                    if(table.rows[i].cells[10].innerHTML >= table.rows[i].cells[15].innerHTML)
                        {
                            //alert(val);
                            jNotify(
                            ' Re-order level' ,
                        {
                            autohide:false,
                            TimeShown:3000,
                            HorizontalPosition:'center'
                        });
                        }    
                }
                });
        </script>

the variable val in the code is getting alerted in a message box but not inside the jNotify notification.
Please Help.

  • 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-18T08:11:58+00:00Added an answer on June 18, 2026 at 8:11 am

    If I understood it right:

                        jNotify(
                            ' Re-order level. Cell 15 value: [ '+ val +' ]',
                        {
                            autohide:false,
                            TimeShown:3000,
                            HorizontalPosition:'center'
                        });
    

    will output you something like

    Re-order level. Cell 15 value: [ test ]

    basically: + character allows you to merge strings. So you can create a notification made of both: text and a variable (or any other value). It also forces a type, avoiding lots of mistakes that relate to objects. If for some reason your val was empty then you’ll get

    Re-order level. Cell 15 value: [ ]

    But if that’s the case you need to take a look at selector. As everything else should be working fine.

    Also use firebug net panel to see if everything is loaded, then you may try to debug it with firequery and firefinder (these are quite basic to use so I’ll skip the explanation).

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

Sidebar

Related Questions

I want to write a jQuery file uploading program, using this plug-in http://aquantum-demo.appspot.com/file-upload Despite
I wrote the below program to get notifications from the database and display it.
I'm using a plugin from jquery to use a multiple file upload to create
I am using DataTables plugin for jQuery for drawing table on my web app.
I recently launched some web pages using a jquery slideshow plugin which, of course,
I've got some html that looks similar to this jsfiddle: http://jsfiddle.net/npbvm/ Using some jquery,
I'm working on a picture select/crop program and using this code below: http://www.androidworks.com/crop_large_photos_with_android/comment-page-1#comment-969 As
I need to write this program using a loop https://i.stack.imgur.com/gko6T.jpg this is what i
this is a small program using Java Scanner which reads a file of double
I have this problem when trying to run hello world program using android SDK.

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.