Posts

javascript - hasClass jQuery isn't working -

I am working on a navigation system where the left and right arrows extend the LIs. & lt; a href = "#" square = "icon-arrow-left active" & gt; & Lt; / A & gt; & Lt; Ul & gt; & Lt; Li class = "contracted" & gt; & Lt; A href = "#" & gt; 1 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "extended" & gt; & Lt; A href = "#" & gt; 2 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "active placement" & gt; & Lt; A href = "#" & gt; 3 & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "extended" & gt; & Lt; A href = "#" & gt; 4 & lt; / A & gt; & Lt; / li & gt; & Lt; Li class = "contracted" & gt; & Lt; A href = "#" & gt; 5 & ​​lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & ...

jquery - Change image upon click, revert on click anywhere -

I am trying to create a script which: the image changes when the image is clicked , br> Then return back to the original image, whenever clicked anywhere on the screen. Currently, my script only changes when the exact image is clicked. Changes to Image Clicks: & lt ;! - Cardstats - & gt; & Lt; Img src = "toggle-on page" class = "img-swap" /> Click the jQuery script to change the image: / * ToggleOn & amp; Toggleoff * / $ (function () {$ (".img-swap"). Live ("click", function () {if ($ (this) .attr ("class") == "img-swap" } {This.src = this.src.replace ("toggle-on", "toggle-off");} and {this.src = this.src.replace ("toggle-off", "toggle-on") ;} $ (This) .toggleClass ("toggle-on");});}); Here is an updated code that can be used by .bind ( ) as suggested by Joel , as it is right, its best support if the image is clicked, then it...

c++ - ERROR: cannot open source file x11\xlib.h -

I am using OpenCV 2.4.8 and Visual Studio Express 2012. I have included all environmental variables PATH and additional libraries etc. I get this error when I run the code: Error: source file x11 \ xlib.h p> Can not open I tried in Google but I can not be able to get the proper solution. #include & lt; X11 / Xlib.h & gt; #include & lt; X11 / Xutil.h & gt; You can not just use that code on windows While OpenCV itself is very portable, the code is not clearly above it. Instead of using cv :: imshow (), jujojujo2003 was using the native XWindo call for the pirate.)

How to connect Oracle Advance Queue (AQ) from Oracle ADF? -

How do I connect to Oracle Advance QEW (AQ) from Oracle ADF? I want to show advance QE data (ie Payload XML) in table format on ADF UI page. Is there an adapter available? You may want to use messenger beans (as is the implementation of Oracle AIM JMS) . I think these links can help you: (Here you will get a sample of ADF Fusion App)

remove view duplicate data in sql database -

SELECT टिकट_आईडी, धागा_प्रकार, ost_ticket_thread से where thread_type = 'एम' यह मेरा एसक्यूएल स्टेटमेंट है नीचे की तरह एसक्यूएल स्टेटमेंट से परिणाम। ----------------------- | ticket_id | thread_type | ----------------------- | 4 | एम | | 4 | एम | | 5 | एम | ----------------------- मैं उसी ticket_id और thread_type के बिना डेटा को कैसे देखना चाहता हूं? मैंने ग्रुप द्वारा स्टेटमेंट किया है लेकिन मुझे एक समस्या का सामना करना पड़ता है जब मैं सभी टिकट_आईडी की गणना करना चाहता हूं यह 2 होना चाहिए। लेकिन यह 3 लौटता है। कोशिश करें GROUP BY : SELECT टिकट_आईडी, धागा_प्रकार से ost_ticket_thread WHERE धागा_प्रकार = 'एम' ग्रुप द्वारा टिकट_आईडी, धागा_प्रकार OR का प्रयोग करें DISTINCT : का चयन करें टिकट टिकट_आईडी, धागा_प्रकार से ost_ticket_thread जहां thread_type = 'M' परिणाम: TICKET_ID THREAD_TYPE 4 M 5 M नमूना परिणाम। संपादित करें: गिनती प्राप्त करने के लिए: SELECT टिकट_आईडी, थ्रेड_प्रकार, COUNT (टिकट_आईडी) ost_ticket_threa...

python 2.7 - Scrapy Request callback method never called -

I am creating a crawlpidder using Scrapy 0.22.2 for Python 2.7.3 and I request that The callback method that I have never referred is called. Here is a snippet from my parsing method that initiates a request within an alief block: elif current_status == "Superseded": # There is a lot of work to do here. It is to check whether the replacement unit is available or not. If not, download whatever is the outline # where we have a & lt; Td> The element in which "has been installed by" and update the link, which is updated_unit = hxs.xpath ('/ html / body / div [@ id = "page"] / div [@ id = "layoutWrapper"] / div [@ id = "twoColLayoutWrapper"] / div [@ id = "twoColLayoutLeft"] / div [@ class = "layoutContentWrapper"] / div [@ class = "external"] / div [@ class = "fieldset"] / div [@ Class = "display-row"] / div [@ class = "display-row"] / div [@ class = "display...

asp.net mvc - Error displaying database values in dropdown box in c# -

I have a problem on how to display a dropdown list of values ​​in my database in my database table (Categories) There are 2 columns, which are category IDs and titles. The goal is to provide a dropdown list where a user can select the title stored in the table. Model: received a public partial category category {Public Entity}; Set; } Public string title {get; Set; }} Controller: Public Action Index () {Private Reference DB = New Context (); ViewBag.Category = new selection list (db categories, "id", "title"); See Return (); } See: @ Model MyApp.Models.Category & lt; P & gt; Categories: @ Html.DropDownList ("ID", "Choose a Category") & lt; / P & gt; The error I get is in the scene that says: 'IEnumerable & lt; SelectListItem & gt; ' There is no ViewData item of type, whose key is 'ID' strong> viewbag and you see that the "id" is going through you class ...