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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:11:06+00:00 2026-05-25T18:11:06+00:00

I am working in a software that generates awful code. I need to be

  • 0

I am working in a software that generates awful code. I need to be able to access a table cell using the PageName (URL). The pages are generated dynamically and the system adds no classes in the tables.

If the URL is /TicketingWelcome.aspx?stuff&otherstuff

And The third TD is what I need to affect I have this which works but removes the TD on subsequent pages

                     //remove right (3rd) td
        $('table td:eq(3)').hide();

and tried to work only if PageName==

if ( $(PageName=='TicketingWelcome') {
   $('table td:eq(3)').hide();
};

But I can’t get this to work and I know it’s either the complete wrong way to approach this or I have the syntax wrong. The bottom line is I need help or a lobotomy.

Thanks in advance for any assistance in learning how to do this.

Kind regards

  • 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-25T18:11:07+00:00Added an answer on May 25, 2026 at 6:11 pm

    What in the name of JavaScript is a PageName? Some .net object? The best way to do JS is to forget what the server has, it doesn’t matter once the browser starts rendering.

    So open the browser’s developer console and type in PageName, if it doesn’t exist, try this
    location.pathname as a substitute.
    The window.location object holds the info of the url in the browser so you should use it instead.

    For example, on this page:

    alert(location.pathname);
    

    displays

    /questions/7479780/jquery-add-something-if-pagename
    

    In the if statement you can try this:

    /*
    this regex will work with/without the trailing slash, but for url parameters it will take a
    more elaborate test
    */
    var rightPage = new RegExp('TicketingWelcome\.aspx\/?$').test(location.pathname);
    if(rightPage){
        $('table td:eq(3)').hide();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A software application that I'm working on needs to be able to assign tasks
I am working on a software development project that uses code written primarily in
I'm working on a piece of software that monitors other processes' system calls using
I'm working on a piece of software that would work well with an iTunes
I'm working on a plugin for Avogadro (chemistry software) that uses pyqt. I've some
Folks, I'm working on a little piece of rich client software that I'd like
I am working with a team that works on a very large software project,
I am using and working on software which uses MySQL as a backend engine
i need some help with c# and nhibernate. I'm working on a project that
I have a Crystal Reports project that I am working on where I need

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.