• By: Don Sevcik

    Date: 2014-04-14

    Views: 1244

    Votes: 0

  • I'm on an https page sending a request to an http page. I've read through the jsonp and https posts and it's still throwing an error when not on localhost, where it works like a charm. One of the stack threads suggested adding a trailing slash to keep the https request as well as adding the empty contact= parameter on the url. Outside of localhost, I get this: The page at https://development.mysite.com/contact displayed insecure content from...
  • Tags: drupal-6 jsonp getjson
  • Category: Programming
  • Last Update: 2015-09-20
  • By: JmRag

    Date: 2015-03-26

    Views: 1205

    Votes: 0

  • Hello I have an object in js with a field date. I try to stringify it at an ajax request but the result is inconsistent. After stringify the new object is one day earlier. To be more specific this is the code on my file: console.log(reservation.checkin); console.log( JSON.stringify(reservation.checkin)); And this is the outcome: Thu Jan 01 2015 00:00:00 GMT+0200 (EET) "2014-12-31T22:00:00.000Z" Am I doing something wrong? Is that output what it should be? Thx in advance! edit : From...
  • Tags: javascript jquery json
  • Category: Programming
  • Last Update: 2015-09-20
  • By: Now2407

    Date: 2015-01-26

    Views: 2026

    Votes: 0

  • i am coding a ajax page that when a jquery selector id is fired it passed the parameter via onclick and does a $.getJSON then returns the data on the div. it works but it requires two clicks to load the content! it is suppose to only load with one click! any help would be appreciated. heres the code: function services(theid) { $('#open').on('click', function(){ $.getJSON('process_serv.php',{thevar: theid}, function(data){ $('.services').html(data.name + "-" + data.charge); ...
  • Tags: javascript jquery html ajax onclick
  • Category: Programming
  • Last Update: 2015-09-20
  • By: Richard Peach

    Date: 2013-07-15

    Views: 1234

    Votes: 4

  • Background: I have a self-signed java applet which communicates successfully with A trial web server on my local net using build 1.7.0_21-b11 and FireFox (or Opera) Running on a windows XP (32 bit) virtual machine. The Applet is being used solely as a 'pass through' to transfer encrypted data to and from a special USB TTL232R-3v3 device. All the encryption and database manipulation is performed by PHP , and Javascript is being used to communicate with the server. Like this, I can minimise...
  • Tags: java security applet
  • Category: Programming
  • Last Update: 2015-09-20
  • By: Unname

    Date: 2013-09-26

    Views: 1210

    Votes: 3

  • Here is my problem I am trying to add a Select query in where condition how can i achieve this in Jooq? selectQuery.addFrom(DefaultInfo.DEFAULT_INFO); selectQuery.addConditions(DefaultInfo.DEFAULT_INFO.FOLDER_TYPE=+"(Select FolderType From Folder Where Folder.FolderRSN = folderRSN )" ); I know this is wrong but how to add a Select Query output in another query where condition?...
  • Tags: java sql jooq
  • Category: Programming
  • Last Update: 2015-09-20
  • By: Laurie Young

    Date: 2008-10-07

    Views: 1619

    Votes: 6982

  • I wrote the wrong thing in a commit message. How can I change the message? The commit has not been pushed yet...
  • Tags: git git-commit git-rewrite-history amend
  • Category: Programming
  • Last Update: 2015-09-14
  • By: Mark Rajcok

    Date: 2013-02-21

    Views: 2038

    Votes: 4109

  • Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary? Here are a few questions that might help you frame an answer: How do I architect and design client-side web applications differently? What is the biggest difference? What should I stop doing/using; What should I start doing/using instead? Are there any server-side considerations/restrictions? I'm not looking for a...
  • Tags: javascript jquery angularjs design architecture
  • Category: Programming
  • Last Update: 2015-09-20
  • By: Unname

    Date: 2014-12-25

    Views: 821

    Votes: 3546

  • Like the old Albert Einstein said: If you can't explain it to a six-year-old, you really don't understand it yourself. Well, I tried to explain JavaScript closures to a 27-year-old friend and completely failed. How would you explain it to someone with a knowledge of the concepts which make up closures (for example, functions, variables and the like), but does not understand closures themselves? I have seen the Scheme example given on Stack Overflow, and it did not help...
  • Tags: javascript closures
  • Category: Programming
  • Last Update: 2015-09-15
  • By: Philip Morton

    Date: 2008-10-07

    Views: 1215

    Votes: 3459

  • In jQuery, it is possible to toggle the visibility of an element, using the functions .hide() , .show() or .toggle() . Using jQuery, how would you test if an element is visible or hidden?...
  • Tags: javascript jquery visibility
  • Category: Programming
  • Last Update: 2015-09-18
  • By: alex s

    Date: 2008-10-24

    Views: 1612

    Votes: 3195

  • What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code (**): def node._get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightchild and distance + max_dist >= self._median: yield self._rightchild And this is the caller: result, candidates = list(), [self] while candidates: node = candidates.pop() ...
  • Tags: python iterator generator yield
  • Category: Programming
  • Last Update: 2015-09-16

Advertisment

New + Updated Questions

  • Can't print to console in c++ eclipse kepler

    By: user3427168

    Running this code on windows using eclipse kepler #include <iostream> int main() { std::cout << "Hello World!"; } I've built it and run it with no errors, but I get nothing on the console. I've tried flushing the stream as well and that did not change anything...

  • Adding the source code to eclipse does not showing .java files

    By: reddy

    I have attached the source code of rt.jar file ie src.zip to my Eclipse. My problem is that, After adding the source code of rt.jar to eclipse, when I open any class,for Example "String" class, The eclipse itself showing ".class" file for "String" only,It does nopt showing ".java" file for "String". How can I see the ".java" file? please suggest me...

  • User Permission check on ioctl command

    By: Nishith Goswami

    I am implementing char driver ( Linux) and there are certain IOCTL commands are there in my driver which needs to be only executed by ADMIN. My question is how can I check user permission under my ioctl command implementation and restrict unprivileged user from accessing IOCTL. ...

  • If conditional not branching correctly

    By: Nikhil Pujari

    My problem is with the two if statements in the finally block. The second if statement - if(out!=null) - evaluates to true and "out.close()" is executed even though "out" is equal to null. The problem, however, corrects itself when I put the if(out!=null) statement above the if(in!=null) statement. Why is the result changing based on the placement of the if statement? Here's the code: import java.io.FileInputStream; import java.io.FileOutputStream; import...

  • Displaying files in a directory with PHP

    By: susanv

    Good afternoon everyone, I need to display files in a directory and have the following code, which works great: <?php $dir = "documents/"; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo '<a href="documents/'.$file.'">'.$file.'</a><br />'; } closedir($dh); ?> The results I get is: De Beer 01.doc De Beer 02.doc . .. Engelbrecht 01.doc Can anyone please tell me how to remove the . and .. ? Any help would be much appreciated...