I am trying to enable the movie by the title or actors (for example, if they forget the name of the movie But he remembered that actor / actress in that movie, he can find the movie by typing the name of the actor). I used jQuery AutoComplete to get the name of the movie or actor's name.
The auto complete parts work fine (i.e., when the user chooses a movie by the title and starts writing the title, then the auto-complete suggestion works, the name of the actor
Problems:
When the user name of the actor is complete, it works fine, besides a dynamic dropdown menu will appear, but the problem is that it is < Strong> Dropdown does not display anything : Does anyone help me figure out what's the problem with this code? Thanks,
"<"> "<"> "; / Option & Lt; option value = "Bye actors"> Bye actor & Lt; Script type = "text / javascript" src = "http://code.jquery.com/jquery-1.9.1.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://code.jquery.com/ui/1.10.1/jquery-ui.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ {Document} .ready (function () {// Create a widget with default data source $ ("# tag"). ({Source: "actorsauto.php", minlength: 2}); $ ("# selecttype" ) .change (function () {// Assign to this new data source: if ($ (this) .val () == "byTitle") $ ("# tags"). Autocomplete ("option", "Source", "movies auto.php"); and if ($ (this) .val () == "by_actor") {$ ("# tag"). (Fully "{{source:" actorsauto.php ", Minlength: 2, select: function (Event, UI) {var selectedVal = $ (this) .val (); // This will be your chosen value from AutoComPeptay // Here AJAX calls. $ (' #movies Dbid '.) Show (); $ .post ("actions.php", {q: selected value, q2: $ ("# selecttype"). Val ()}, function (response) {// in the above response variable Option tags. Just put it in the dropdown. $ ("# MovieImdbId") HTML (response)}}}}}}}}});}); & lt; / script & gt;
and here actions.php:
Get All (PDO :: FETCH_OBJ); While ($ result as $ line) {$ option = '& lt; Option value = "'. $ Row [' movieImdbId ']." & Gt; '. $ Line ['movie imdbid']. '& Lt; / Option & gt; '; $ Html = $ Option; } $ Html echo; Go out; }? & Gt; Update
I am trying to use the ASP.NET signal for the first time - here's what I did: created a new web Has been added to the project and the following signal R packages: I have created the following category: [Hub-name ("chat")] Public class ChatHub: Hub {Public Zero Halo () {Clients.All.hello ( ); }} and the following startup configuration: public partial class startup {public zero configuration (IAppBuilder app) {configure (app); App.MapSignalR (); }} However, whenever I navigate localhost: (port) / api / signalr / chat I get the following error: Protocol error: Unknown transport. I am running a new browser and trying different people so remove it from the API / URL, and just use the localhost: (potter) / signaller / Chat
To some degree, this is a bit of a shot in the dark, but we have a process that is dramatically slow One day's course we have found that all the things running on the fuses begin to draw, but when we are running a specific process, JPPropellers are going on, I have found that the increase in magnetic usage increases over time. . Org.apache.camel.ProductTemplate.Send So my main question is, is the way in which the manufacturer product is being used here which is wrong / can this be a problem? exchange foo = new DefaultExchange (getCamelContext (), ExchangePattern.InOnly); Foo.getIn () setBody (obj). Root R = Exchange .getContext (). GetRoute ("do_something_fun"); Creator Template Template = exchange.getContext () CreateProducerTemplate (); Template.send (r.getEndpoint (), foo); Generally, you should not create a productive template on each request as described here: / P> However, because I do not have a complete picture of your application, so you can cr...
I get several recommendations to compile a maximum of 80 characters when writing javascript, e.g. Google, NPM, Node. JS, Crockford In some cases, though, I do not think how best to do this. MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase', function (mistake, database) {if (err)} {throw error;} db = database;}); This will throw a jshint warning because it exceeds 80 characters. Now, do you choose to ignore the warning in this example, or instead choose an option for a solution like MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase' , Function (err, database) {if (err) {throw error;} db = database;}); If you can reuse the url variable So, great option if this is a shot, as is often such a call, I would probably do something like this ... / * jslint sloppy: true, white: true, browser: True, maxlen: 80 * / / * global mongo client * / var dbarhh, db; DbErrHand = function (mistake, database) {if (err) {throw error; } ...
Comments
Post a Comment