jQuery Puzzler

My apologies in advance for posting this question purely jQuery here, but what I can say? I am stuck and desperate. So, please have mercy and help me anyway... sniffle... sniffle

I need to create a jQuery selector composed but, I need to be AND instead of OR. The goal is to add an extra class to two columns in a table where column A AND column B Val1 = = Val2.

For example:

"td [headers ="CLEARERID"] select option: selected:contains (013), td [headers ="MARGINING_ACCOUNT"] select option: selected:contains (H)'.

The selector above are the cells where the column is CLEARERID and the value is 013 OR the column is MARGINING_ACCOUNT and the value:

The problem with it being a RC, is that, in the lines where CLEARERID = 014 and MARGINING_ACCOUNT is H, the MARGINING_ACCOUNT becomes the extra class which is false.

Probably something simple, but it's been stuck on this during some time now.

Thank you

-Joe

Hello

If I understand well there is no switch that can do what you want.
http://docs.jQuery.com/selectors

You need to loop all lines, for example using jQuery each and check the values of column selection list.
http://API.jQuery.com/jQuery.each/
If your condition is met then apply/style class.

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • PlayBook - Webworks - Javascript and Jquery problems

    I have problems with my application compiled of Webworks.

    The application works very well "as source" in Firefox and as an AIR with Aptana Studio application.

    However, when I compile files HTML/Javascript app won't compile as expected.

    When using

    onclick="window.open('index.html?foo=bar')"
    

    It gives "network error" (see image below), then that is just opening with a query string.

    The $functions of Jquery get ignored too such as a piece of code like this:

           $(
                function(){
                    loadSelectedFoto();
                    setDiff();
                    loadHs();
                    $( "div.puzzle, p" ).puzzle( memdiv );
                }
                );
    

    Is due to the Webworks Beta status, or I'm doing something that just cannot be done this way (before the supply of PB )

    Ah... According to me, that there is a problem, as I also mentioned in the beta... It has since been corrected, but has not yet been published. Stay tuned for an update will be available soon.

    Fundamentally, I believe it's the parameters of query string on the end of the URL, which is the origin of the problem.  For now, you might be able to pass the data through cookies or other means until this bug is released in the next version of beta drop.

    This problem also manifests itself in local applications.  It also affects local AJAX or the filling of an iframe with a local URL that has query string parameters.

  • AJAX jquery get works but 500 error is thrown

    Hi guys, I have this issue where I use Jquery to get a simple string from a cfc and even if the string is returned correctly that I also have a bunch of unwanted HTML annexed to the response. The HTML code is error page 500 CF.
    Does not happen if I comment out the ajax call, but as soon as I put back it it happens.  It's driving me crazy.  There are no errors in the logs.  Initial demand was not written by me, and he's using application.cfm and onrequestend.cfm, I commented all the code in onrequestend.cfm where is what is causing it but no change.   I've attached screenshots of the alert pop up where you can see that the answer is there at the top.
    Been looking for a solution, but can't find it. Don't know where to start debugging.  It must be something so simple that I forget. Any help would be appreciated.
    Here's my simple JS:

    var thisEmail = $('#emailAddress').val ();

    $.ajax({)

    type: 'get ',.

    URL: "CFCs/subscribe. CFC? returnformat = plain & email = '+ thisEmail,

    data: {method: 'doSubscribe'},

    cache: false,

    normalizeJSON: true,

    success: {function (data)}

    Alert (Data);

    });

    Here is my simple function of CFC:

    < cffunction = "doSubscribe" returntype = access name "remotely" = "all" returnFormat = "plain" output = "no" >

    < name cfargument = "email" type = "string" required = "yes" >

    < cfreturn 'auscultation' >

    < / cffunction >

    Capture.PNGCapture2.PNG

    My suggestion would be to change the 'get' to a 'post', to get rid of the argument of the CFC and use the form field.

    I also have, suggest to delete the reminder of success since in the. ajax() and Add. end of the function done() of. ajax() with success within the part code. done().

    I must admit, however, I'm puzzled as to why HTML is returned with the chain.  Clearly, the cfc was found or you would not receive the string "response test".

    HTH,

    ^_^

  • Effect of Parallax JQuery suddenly stop working on some website.

    Nice day!
    Another day, I noticed the Parallax background effect jquery stops working on the site https://nplus1.ru (background photos in the middle of the pages like https://nplus1.ru/material/2015/11/06/twin-numbers ).
    I tried to clean new Firefox profile (result positive, everything works as expected); Restart in SafeMode on current profile has no effect. I don't want to reset my current profile, so please help me understand what is bad about: config or smth else.

    There was a parameter in Subject: config who broke the functionality of the site: dom.w3c_touch_events.enabled is set to 1 (instead of default 0value). At the time when I have to reset everything starts work as expected.

    UPD: it is more intelligent set the preference to 2 ('auto-detect', as we taught by DND ).
    Head tilting button "simulate the events of button" mode "Responsive design view" toggles. Pref value between 0 and 1, but never 2.

  • calendar for the week of jQuery does not work in the new version of firefox v42.0

    Hello
    Thanks for your reply.
    IAM develop on the issue that iam facing knowledge, events on the calendar for the week of jquery does not work in firefox version iam 42.0 faced to the problem that iam unable to change back or delete nominations that are displayed.
    For example if try clicking on one of the appointment generally a popup comes to change or to restore or remove the appointment but iam not getting that. But this feature does not work in lower versions of firefox (version 32.0 for example). Please check the jquery week calendar demo following URL looks like this:
    http://robmonie.github.IO/jQuery-week-calendar/full_demo/weekcalendar_full_demo.html

    I've just rescheduled lunch 12:00-12:15, so it seems to work on 42 Firefox on Windows.

    What is the latest version, where it has worked for you?

    Have you tested Mode Firefox safe to rule out the possibility of an extension conflict? See: Firefox in Safe Mode troubleshooting questions.

  • Secondary links won't work. Also puzzle in gray.

    Example: creating a card from American Greetings. I can't get past step 1. When I click on step 2, nothing happens. I get sent to my mail everyday Jigzone. Each puzzle is grayed out and will not work. This looks like a Java problem, but Firefox will not accept the update of Javascript.

    Discovered it was my router! Bought a new one and everything works fine.

  • 35 &amp; 36 on Mac Firefox selects listboxes (html select) created by javascript / jquery, unless I put the focus programmatically or I right click on it.

    I'm creating a single page app and newly created < select > < / select > does not work. It seems that the problem is that these select do not update when I click it. If I have (1) set focus programmatically; or, (2) rigth click once, it works normally. Firefox 35 / 36 on Mac OSX 10.10.2.

    I have it!

    I used the . deprecated function of jquery-ui disableSelection() . It should prohibit users to select text, but seems to give this collateral effect on FF.

    I'll try a suggested alternative CSS here .

    Thank you!

  • Can't hide from the elements without/with jQuery

    I created new Addon for my Firefox I use myself, but can't get it hide items with or without jQuery. It does not matter at all to use jQuery together.

    XUL file creates the toolbar with a button that have "oncommand ='Unlock ()" "" and it also includes the .js file that have function Unlock()

    Well. in any case, I think that my default files has been implemented correctly, because I have "alert ('Starting...');" before the line item to hide and he says 'go '. "with alert, but after that it is not made effects for the element in the example 'idofelement '.

    js file contains "document.getElementById('idofelement').style.visibility ="hidden"
    I tested different types of methods that hide the element in the example style.display = 'none', but none of them works.

    He always says 'go '. "so he runs the function properly, but nothing happens after that.

    Found the solution. I googled this for several days, but did not find a solution. Just used keywords "firefox addon getelementbyid" and selected "disorders" with it and found the solution. I had to use:

    content.document.getElementById ("id") so in other words I had to add the word 'content' in the front of the document.

    Thank you!

  • When I go on the Jigzone jigsaw site a mobile advertising appears and is distracting and so close to the puzzle so it is impossible to focus on the puzzle.

    For several weeks, an ad on the Jigzone jigsaw page right. It is great and the image is 'live' and moving. It is almost on the top of the puzzle and much too distracting to continue with the puzzle. I tried to scroll upward so that the puzzle shows, but the announcement is so close, I have to scroll to the top so it is very difficult to make the puzzle. I don't know if it's a pop up (I disabled the pop-ups) or a cookie or what. So I don't know how to get rid of it. You can enlarge, but you can't make it go away.

    His reference to my name. And I'm Canadian. And I do not see the resolved or the other. I am very pleased that this has helped you to be more courageous. I just hit my 5-0 and I'm NOT ANY DIFFERENT I HIT 0-5. Except that I DO not BITE MY NAILS TIL I got 20. There is once again the key. I'm sorry. In any case, I love music and wish I could play the piano! We all want what we have... his party! Just ENJOY what you have, and screw the rest. AND laughing so hard that make the people around you wish they knew the joke!
    [I hope that violate no rule.] TTFN.

  • Add my button to view ons had disappeared from my navigation bar. It was the CAP as a piece of the puzzle. How can I get it back?

    I am running Firefox 20.0.1 with Windows 7 on my laptop. Room button shaped puzzle that displays my Add ons has disappeared from my navigation bar. How can I get it back? I tried to go through the button "Customize" from the toolbar on the menu drop down, but the icon is not there. In addition, some other add ons that I downloaded appear anywhere, even on my toolbar add-on.

    You can also right click on the navigation toolbar and click 'Add on bar' in the context menu.

  • So congratulations. Your last update (19) beat Jquery selectors of dates on Web sites all over the world

    Millions of Web sites that do not call Jquery datepickers in fields of seizure with an attribute date no solitary work today for users who are viewing these sites with 19 FF. First jumps of Chrome date from the municipality and now Firefox. I guess that the rest of the browser will not want to be left for some great idea on the horizon which is the root cause of all this, but it's serious. MILLIONS of Web sites no longer work, and webmasters are scrambling to find solutions. All that was expected by all that you people of browser for entry with a date attribute fields, won't happen because you have forced people to call the dates by any other method selectors. This means that entry with a date attribute fields will disappear.

    Thanks a lot guys!

    For me at least, the question is now irrelevant. Apparently the built-in popup date picker that any serious web developers will not want, is here to stay.

    The only option now is to remove the type = "date" attribute of input fields where you want to call a date picker custom. Instead, you must define the field type = "text" and call the datePicker custom for fields with a specific class name.

  • Update the drop-down menus and jQuery sortable collide with the 16.0.2

    The drop-down menus that are contained in a table sortable jquery act as if they are disabled. By clicking on them, doesn't matter. I can tab in the menu drop down and control it with the arrow keys, but the mouse does nothing. The menus outside of the table still work very well. This problem only occurs in Firefox 16.0.2 on several computers, all equipped with Windows 7. The problem does not occur in IE9, Chrome or Safari. In addition, the problem does not occur in Firefox 15, but it occurs in Firefox 17 Beta. I did not see anything addressing this specific issue, so I guess this isn't a known issue.

    The problem has been resolved.

  • 10 Firefox &amp; jquery cycle plugin transparency issues

    We use the jquery cycle plugin on many sites and after only 10 of Firefox was released, we notice a strong black box appearing on the slides during transitions.

    What's happening:

       transition starts
       image area turns solid black
       next image fades in from black color
    

    In other browsers (FF9.x and less, IE7 +, Chrome, Safari) the transition would be one slide to another and not black to the next slide.

    Does anyone have an explanation for that? I thank in advance.

    Try announcement Web development / standards evangelism MozillaZine forum. The helpers there are better informed on the problems of development of web page with Firefox.

    http://forums.mozillazine.org/viewforum.php?f=25

    You will need to register and log in to post in this forum.

  • I have a puzzle game numbers worksheet.

    Numbers dear Experts,

    I have a puzzle game worksheet that I need help with this. Its related to indexing and extraction of specific data and necessary other sheets. So full of hope someone out there has the time and skills to help out me. Here we go...

    Here's an example simplified data in Sheet1:

           Wash Dry
    09:00 Jerry Susie
    10:00 Brian Joanna
    11:00 Joe Tim

    So, basically, I need to index the task and time by using the names of people, preferably in a menu drop-down.

    Name Time Task
    Joe 11:00 Washing

    I hope someone can help!  Thanks in advance!

    Joey

    Hi Joey,

    Here is one approach. Two tables extra where you can filter on a name.

    The 'File' table is where you type or paste details.

    The table "Choosing a name" has a context Menu in A2

    In the table "Wash."

    Formula in A2 (fill down)

    = Roster::A2

    Formula in B2 (fill down)

    = Roster::B2

    Formula in C2 (fill down)

    = IF(B=Choose a Name::A$2,"Show","Hide")

    In the table "in the dry."

    Formula in A2 (fill down)

    = Roster::A2

    Formula in B2 (fill down)

    = Roster::C2

    Formula in C2 (fill down)

    = IF(B=Choose a Name::A$2,"Show","Hide")

    I added the highlight conditional to add Green fill to no results 'Show', just to illustrate. It is not necessary, because we'll hide these columns.

    Now, apply a filter for the wash, then the tables dry:

    To see this:

    You can move (copy / paste) the list to another worksheet table 'hide' If you wish.

    Now hide the columns 'Show?' in the dry tables and washing.

    Choose a different name in the pop-up Menu

    Kind regards

    Ian.

  • After you have installed the 'Puzzle', it is not included in the menu click right when I open a photo, how can I include the add-on in my right click menu?

    I installed the add-on puzzle 0.4.6 which is supposed to add the issue of "Puzzle" to the context menu, but when right click on an image it does not give the option to open with the add-on puzzle.

    Make sure you do not right click on a background image.

    You should see a backup image and view image if this is a real picture.

    You can try to click with the right button on your avatar.

Maybe you are looking for