Anchor tag passing "this" as a parameter not working

i have an anchor tag that is calling a javascript function passing in the parameter 'this'. it seems that 'this' is undefined and not the anchor object, why is this? how do i pass the anchor object in a similar way to using 'this'?
this is my code i am using
href="javascript:show_region(this);
whatever i do to the passed in object it says it is undefined

managed to get it working by using onclick instead of href

Similar Messages

  • Onclick of anchor tag inside the search suggestions div not working in Control_SearchBox display template

    Hi,
    I have added an anchor tag highlighted below in the Suggestion section of Control_SearchBox display template.The requirement is to display an anchor tag inside the div which displays suggestions and redirect the anchor tag to a predefined URL value.The problem
    here is the onclick of the anchor tag is not getting redirected to the href value.
    Can anyone help me out with this?
    <!--#_
                if (showQuerySuggestions) {
    _#-->
    <div ms-shadow" id="AutoCompContainer">
    <div id="_#= $htmlEncode(suggestionsListId) =#_">                  
    </div>
    <a  target="_blank" id="test" title="testing" href="http://www.google.com">Suggestions</a>                
    </div>
    <!--#_
    Thanks,
    Saranya

    This one had me pulling my hair out. For someone's future reference, I may have found a solution via google, using this page:
    http://www.ejeliot.com/blog/59. I added an empty div below my floated child divs and added clear:both
    to it. I think I may be okay on this issue now.

  • HT1409 I have done this but it does not work with one of my albums and I dont know why??

    I have done this but it does not work with one of my albums and I dont know why??

    That would be it. Sometimes you can tweak the album & artist names enough for iTunes to download matching art from the store, or you could add a bonus track featuring 1 second of silence and attach artwork to that, or you could convert the files to Apple Lossless.
    tt2

  • Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file bu

    Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file but not working. What is the matter and how can I deal with it?

    I am trying it on Adobe Acrobat Reader 9.2.1. Tried to fix Hex code, and also tried 'edit-preference-trust manager'. I focusing on Adobe registries but still couldn't fix the problem.

  • Why this character \ it is not working in action scrip?

    Hi...
    Why this character \ it is not working in action scrip? And
    how can I solve it?
    on (release) {
    text.text = text.text + "l"
    Please your help ASAP
    thank you

    yea, that's true, but I don't think that is the problem.. I
    use it every once in a while, and it doesn't break the script.
    "I’m trying to make bush button if i press it, the
    action script it well write the text in text area and I’m
    using Flash MX 2004"
    This statement makes
    zero sense.. please clean it up and make it understandable,
    and tell what version of Actionscript you are publishing to.

  • I have a trial version of Photoshop and Lightroom installed with a view of taking out a subscription. Some of the features in this trial version do not work is this just because it is a trial version.

    I have a trial version of Photoshop and Lightroom installed with a view of taking out a subscription. Some of the features in this trial version do not work is this just because it is a trial version.

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • HT5096 This procedure absolutely does NOT work

    Because of the sparse storage format of the Backups.backupdb directory, the Finder thinks the directory is much larger than it actually is. In fact, in many cases, such as mine, it thinks that it is MUCH larger than the physical drive on which it resides.
    For example, I have a 1TB drive and the Time Machine directory claims to be more than 5TB. When I go to copy it over to another 1TB drive it says that it cannot execute the copy because the size is too large and there is not enough room. Although there actually is enough room.
    In any case, the procedure outlined in this memo ABSOLUTELY DOES NOT WORK.

    Try running Firefox in [[Safe Mode]] and see if that helps!

  • My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    My iphone 5 has 7GB, went to apple store the guy said my backup that I was restoring from was corrupted so I have to restore it as a new phone wondering that if I do this and it does not work, will iTunes have my old backup saved?

    Yes, if you have been backing up on a regular basis.
    If this is your first time backing up, then no.
    you can check edit - preference - backup - see what is listed

  • TS2972 I got a new computer.  Apple TV states "to access your itunes on apple TV, turn on home sharing using..  I have done this. Still does not work

    I got a new computer.  Apple TV states "to access your itunes on apple TV, turn on home sharing using..  I have done this. Still does not work.  Can anyone advise me on why - it was all working great before i switched computers

    You mention doing all of the above, what would that be exactly?
    The article linked above is for airplay, have you checked home sharing tips?
    http://support.apple.com/kb/ts2972

  • FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow.

    FireFox auto updated to 6.0 this weekend and has not worked properly since. I have uninstalled and reinstalled. Made sure all windows componets were up to date and still no joy. Any idea? Windows 7, 64 bit, normal configfuration. It is extreamly slow and never finishes loading ANY page.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • How to pass this multi-value parameter via GoURL?

    Currency is equal to / is in 'USD', 'GBR', 'RUR'. How to pass such multi-value parameter via GoURL?
    P0=1&P1=eq&P2=Measures.Currency&P3=?

    Found. P0=1&P1=eq&P2=Measures.Currency&P3=3+USD+GBR+RUR

  • SET/GET Parameter not working? pls hlp

    hi i am using a transaction variant on transaction LT01 - create transfer order. using the transaction variant i have greyed out 3 fields on the initial screen. for the greyed out fields i am passing the values using a SET PARAMETER. This is working fine for 2 fields but it does not work for the third field. any idea where i am going wrong?? the first field is warehouse number which is working fine. the second field is movement type and the third field is storage location. the first 2 works fine and the data gets populated in the greyed out field but the storage location field does not work. The field has a parameter id. pls help its urgent.
    promise will reward points if its resolved

    Hi american,
    1. but the storage location field does not work.
    In such cases, we have to follow another approach.
    (CALL TRANSACTION USING BDCDATA
    2. Just copy paste in new program.
      (it will populate the STORAGE LOCATION field)
    3.
    report abc.
    data : bd like table of bdcdata with header line.
    bd-program  = 'SAPML03T'.
    bd-dynPRO = '0101'.
    bd-dynbegin = 'X'.
    append bd.
    CLEAR BD.
    bd-fnam = 'LTAK-BWLVS'.
    bd-fval = 'AAA'.
    append bd.
    bd-fnam = 'LTAK-LGNUM'.
    bd-fval = '015'.
    append bd.
    STORAGE LOCATION
    bd-fnam = 'LTAP-WERKS'.
    bd-fval = 'AAA'.
    append bd.
    CALL TRANSACTION 'LT01'
    USING BD.
    regards,
    amit m.

  • Password parameter not working while Installing the certificate hosted on a Web Application Server

    Hi,
    We are trying to secure our SAP BI Mobile connection with certificates. According to the manual we are storing a password protected certificate on a network location.
    On our ipad when I open the link: (according to manual: Administrator and Report Designer's Guide , chapter  4.14.2.1 Installing the x509 Certificate on Device)
    SAPBI://action=downloadcert&certurl=<Download URL>&Password=abc123
    It should open and install the certificate in the app without asking for the password. But thats not working. It does ask for the password. So I can access the certificate location and after entering the password it works. But I am giving the password parameter in the link so why is this not working?
    The guide is a bit contradictory, and I quote:
    "If you access the second link above: The application is launched and the certificate file is downloaded from the URL location (certurl).
    The certificate is directly installed on the device."
    But second quote:
    "NOTE:
    Since the password is already included in the URL, the application does ask the user for the password...."
    My question: what is the use of this password parameter if you still have to enter it manually?
    Does anybody know if this should work, and what I  might be doing wrong?

    Hi , i am facing the same issue. I'll open a incident.
    Martin

  • REST Web Service Output Parameter not working in POST Handler

    I've created a RESTful Web Service in Oracle Apex, using a POST method as "handler".   I've setup 11 input parameters which all work fine, it is my one output parameter that does not return successfully.
    Here is detail on the Output Paramter
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    The actual source is a call to a pl/sql package that returns a value that I set :returns equal to (eg :returns := v_result).   I've tried this with Source Type Header and still the same result, 'no output'.
    I see APEX is calling wwv_flow_api.create_restful_param to generate the parameters (for importing), is there any documentation on this procedure?
    How can I get this output parameter to return something in the response?
    The request accepts a Json payload.
    Any help greatly appreciated
    Thanks,
    James

    Solved my own problem :returns does not work needs to be returns
    Does Not Work
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    Does Work
    Name:  returns
    Bind Variable Name:  returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String

  • Returning Clause out parameter not working

    I have Oracle 11g (I think?) and VS2010.
    I am using an insert statement with the returning clause to return an identity value that is created by a Sequence/Trigger. The problem I am having is that it is not updating the out parameter in C#. Here's some sample code. I have tested the insert statement in SQL Developer and it works. The C# statement does do the insert, but the out parameter remains null. I have tried ParameterDirection as ReturnValue, InputOutput, and Output. None of those worked. The output value remains null no matter what I try to do. I even lifted this example (Oracle Sequences), ran it, and it also errored and is not returning out parameters. (Error Msg: Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.Couldn't store <null> in ID Column.  Expected type is Int32.).
    I have searched and searched the web over and I cannot figure out why this does not work. Any help would be most appreciated!!
    MyTable
    MyTable_ID  Number (38)
    Note            Varchar2 (500 byte)
    =================================================
                    try
                        if (insertCmd.Connection.State == ConnectionState.Closed)
                            insertCmd.Connection.Open();
                        int recs = insertCmd.ExecuteNonQuery();
                        this.Id = Convert.ToInt32(insertCmd.Parameters[":Id"].Value);
                    catch (Exception err) {  }
                    finally {  insertCmd.Connection.Close(); }
    private OracleCommand insertCmd
                get
                    OracleCommand insCmd = Context.DataBaseConnection.CreateCommand();
                    insCmd.CommandText = string.Format(
                        @"Insert into MyTable (Note)
                          Values (:Note)
                          Returning MyTable_ID into :Id");
                    insCmd.Parameters.Clear();
                    OracleParameter noteParam = new OracleParameter(":Note", OracleDbType.Varchar2, Note, ParameterDirection.Input);
                    OracleParameter idParam = new OracleParameter(":Id", OracleDbType.Int32, 38, "Calibration_Session_Id");
                    idParam.Direction = ParameterDirection.Output;
                    insCmd.Parameters.Add(idParam);
                    insCmd.Parameters.Add(noteParam);
                    insCmd.BindByName = true;
                    return insCmd;

    Okay, I changed my insert command text to this...
    insCmd.CommandText = string.Format(
                        @"Begin
                             Insert into MyTable (Note)
                             Values (:Note)
                             Returning MyTable_ID into :Id;
                             Commit; End;");
    There was no change. Am I doing an explicit transaction wrong?

Maybe you are looking for

  • Thoroughly Disappointed By your lack of understanding!!

    Dear Sirs,  On September 4th this year my Partner, Anastasia and I went to your Champaign, IL Store on Prospect Ave and we specifically asked for a Color Laser Printer that had Duplex facility, we were sold an HP Laser Jet Pro 200, which does not hav

  • Itunes 9.02.25. in Windows 7 won't display CD Drive or play CD

    Hi guys I've done some searching on the forum and checked the Gear driver in registry and updated the gear driver but to no avail. I still don't see an audio CD in iTunes. Any other ideas? Here's my diagnostic info: Microsoft Windows 7 Home Premium E

  • Cs6 photoshop extended 3D problems with

    my englisch is not good.When i try 3D en click on making there is a message photoshop cs6 don,t working anymore.I,m not the only one with this problem Luc

  • Moved all music files

    I recently moved all of my music files to an external hard drive. Since now they are in a different location, itunes can't play the song because it can't find the original file. All my music files are in the same folder, but I have only been able to

  • Seperate iCloud accounts share music and apps?

    My wife, son, and I have iPhones. How can we all have seperate iCloud log ins on the accounts but share our iCloud music and apps we buy?