If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

what is the meaning of getElementsByTagName("input") in cognos

Started by inu, 01 Sep 2014 01:54:20 PM

Previous topic - Next topic

inu

HI
Please tell me , I m using javascript in checkbox prompt and this function getElementsByTagName("input"). what is the meaning of this "input" value . Can i use any name in place of that, or it is in built, that must be used .
Is for each prompt such as "select & search prompt", "Pick list prompt", "check box prompt" a different value is there.
OR
I can set any value for those prompts.

Pls guys, it is very important point for me, which will solve the big issue.


cheers!
Inam

navissar

Quote from: inu on 01 Sep 2014 01:54:20 PM

Pls guys, it is very important point for me, which will solve the big issue.

I doubt it. Whatever you are trying to do, you'd probably be better off asking for a solution or guidelines to the problem as a whole here, rather than trying yo break it down like this, without any context.
I'll demonstrate by answering your question: getElementsByTagName is a built in Javascript method which returns an array of all DOM objects identified by the HTML tag passed to the method. So, getElementsByTagName("input") will return an array of all DOM objects identified by the HTMl tag "input". The HTML <input> tag specifies an input field where the user can enter data.
Does that solve your problem? If I'm right and it doesn't, I suggest you try to post back your entire requirement, and let the good people of this forum see if they can give you a complete solution.

inu

Quote from: Nimrod Avissar on 01 Sep 2014 02:59:48 PM
I doubt it. Whatever you are trying to do, you'd probably be better off asking for a solution or guidelines to the problem as a whole here, rather than trying yo break it down like this, without any context.
I'll demonstrate by answering your question: getElementsByTagName is a built in Javascript method which returns an array of all DOM objects identified by the HTML tag passed to the method. So, getElementsByTagName("input") will return an array of all DOM objects identified by the HTMl tag "input". The HTML <input> tag specifies an input field where the user can enter data.
Does that solve your problem? If I'm right and it doesn't, I suggest you try to post back your entire requirement, and let the good people of this forum see if they can give you a complete solution.

MFGF

Quote from: inu on 03 Sep 2014 04:29:58 AM


Hi Inu,

Did you forget to add your message? You quoted Nimrod without adding anything to the reply?

I'm in full agreement with Nimrod - asking isolated questions without any context is not the best way to get helpful replies. What is the big issue you refer to? What are you trying to achieve? What exactly is it your client needs you to provide? Using javascript isn't necessarily the right solution to everything.

MF.
Meep!