15,127 Topics
| |
Hello Everyone, I am trying to achieve pagination using jsp javascript and servlets. Here is my code below: SearchUserViews.java `package TestPackage; /** * * @author Sagar */ private String _userid; private String _firstName; private String _lastName; private String _emailAddress; public userProfile(){ _userid = ""; _firstName = ""; _lastName = ""; … | |
Hi, I am trying to create a jquery slider with navigation button and arrows, but my slider is not stopping at the last image nor stopping at the first image. See my fiddle for an example: [http://jsfiddle.net/c2mKp/](http://jsfiddle.net/c2mKp/) Any help is welcomed. HTML: <!-- Jquery Slider --> <div class="jquery-slider"> <div class="wrap"> … | |
| Howdy, I am looking to download a list of malicious JS code in order to test it on my localhost website I am developing. Is there any place to download such a list ? Thank you in advance for your answer. Begueradj |
I used Morris chart in my application project to show some details about quantity of sales. After executing the AJAX request, the chart is showing data in disordered way.It doesn't display sales for each city.I want to display them like this example with static data http://jsfiddle.net/marsi/LaJXP/1/ var json = (function … | |
I have this code which loads 10 divs from an external file into the main file. There's also a next / previous function to skip back and fourth between the divs. Demo: http://goo.gl/RFBN2E (Click load content to load the content via ajax, then the next / previous buttons will skip … | |
Both SetCookie() and GetCookie() works good. **Problem:** In bellow code how could i make condition IF cookie value NULL then BOX show otherwise HIde. I have run but condition not going true. $(document).ready(function(){ var first_name = getCookie("chat_name"); var user_id = getCookie("chat_id"); var img_src = getCookie("chat_img"); if(first_name !=="" && user_id !=="" … | |
Hi All, I'm trying to call data from a php script using getJSON. my php script, php/Validate.php: echo "Hello, World!"; die(); My getJSON bit: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("#ValidateButton").click(function(){ $.getJSON("php/Validate.php",function(result){ alert(result); }); }); }) </script> <input type="button" value="Validate" id="ValidateButton"/> I'm not having any luck getting anything output though. Could someone … | |
hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> … | |
I'm learning knockout.js and i trying to get data from a rest API. The rest API has two end points 1) '/posts 2) '/posts/<id> When i use the first endpoint, nothing happens and there is no error in my script. As a matter of fact, looking at the firebug console, … | |
Hello I am learn JS cookie my requirement is as under "There is One **Button** submit when i clicked button then **Cookie value store 1** and some **Msg display** in box. Every Time box **check cookie value** if there is **any value** then Msg display continue otherwise Not." Suggest me. … | |
After Relaoding the page my form is submitting with the values in it how can i stop submitting my values after reloading the page - Thanks for help | |
In HTML,CSS BLINKING TAG IS NOTWORKING?I NEED PROGRAM IN JAVASCRIPT FOR BLINKING THE TEXT.. | |
This is my code am getting the result as byte array. i want to print this byte array without saving as pdf in system. kindly note this is web application not window application Page p = new Page(); string fname = string.Empty; string filetype = string.Empty; ReportViewer rptvw1 = new … | |
function house (windows,doors,attic) { this.windows = windows; this.doors = wood; this.attic = stuff; } var parts = house_two ("glass","wood","spiders"); var house_parts = house_two.windows; document.write("I want" +house_parts+ "doors"); I want to understand objects in javascript, so far it hasn't been that exciting as learning other parts of the language. I want … | |
**i have finaly completed the javascript coding, but there seems to be an error "syntax tax, char:1, line:1", i cant figure out wat the problem is.... i have edited it so many times, but it still comes up with errors when excuting it.. HELP!!!!!!! **the following coding: @_@** <!DOCTYPE html> … | |
I want to print byte array using print() in javascript. Is there any way to implement this..? | |
I tried to validate my document, in order to be able to tell how bad I am. I was incredibly happy because I got 0 errors in CSS. I tried to validate `index.php` file with HTML5 validator (which I suppose can also check HTML4.01). And I got this error prompt … | |
My code works but my math is off! How can I get my code to find the sum of odd and even numbers? function getNum() { var div = document.getElementById("output"); div.innerHTML = "Numbers entered:<br>"; var score = 0; var sum = 0; var count = 0; var average = 0; … | |
In my ASP.NET MVC application, I am trying to put together a page where a user can both sign and print their name once at a workstation equipped with a Wacom. The signatures will be saved to PNGs with links in a database and then stamped in the designated area … | |
I am using an ajax to load form fields. When the you select the school, the grade fields load. When you select the grade, the show name check box appears. When the select all box appears, I have to click the select all box twice for it to work. I … | |
Is this code correct? function gotoPage(id) { ("html, body").animate({ scrollTop: $("."+id).offset().top }, 2000); } What I am trying to do is. That I created DIVs, with 100% of height, they have certain classes `.`. I included jQuery, and I wanted to click on anchor and scroll to that certain page. … | |
Hello I am using Jquery Cookie for that it given me **Error "$.cookie is not a function"** Used [Plugin](https://github.com/carhartl/jquery-cookie) And My code as bellow. $(window).load(function(){ if($.cookie('chat_user_name') !== 'undefined' && ($.cookie('chat_user_id') !== 'undefined')) { requestChat($.cookie('chat_user_name'),$.cookie('chat_user_id')); } }); In IF condition given error.How can i solved Suggestion Me , Thank you | |
Hi all I have a textarea I would like to validate the same for empty spaces and on no input. Please find my jsfiddle [here](http://jsfiddle.net/Varun_Krishna/jJh8q/). How do I validate for empty spaces in the text area? what am I missing in my fiddle? Thanks Varun Krishna. P | |
Hi all I have a json format which has two objects Created_date and Reply_date. Created_date has a date on which a message is created and the Reply_date tells when the user has replied to that messge. So I am getting the Created_date as follows var createDate = new Date(Created_date); var … | |
Hi I need to show coordinates from the map in the text box below. Can you make the code showing the latitude and longitude onmouseclick? I will be very grateful. <html> <head> <title>OpenLayers Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <body> <div id = "container" style = … | |
Hey you all I got a time calculation question. I'm attempting to do a lot of PHP and AJAX code appending to HTML. I want to know if my code below will accurately calculate the time of entire code being executed or solely just the PHP code. If it just … | |
I need to create select start point and end point between predefine route obn google map Please advise on this. | |
Trying to figure out how to have 2 sets of images display randomly on the same page. I know I have to rename something, but nothing I try is working. Any help would be greatly appreciated. Thanks. For now I just have the two scripts repeated back to back before … | |
Hi i am trying to perform a search on a json file called PCproducts.json which has in it various arrays with other data in it.I have seen various examples but seems that either i am doing something wrong in the code or calling the file in the wrong way. This … | |
Hi All, I'm trying to put together a "fade in", "fade out" segment for user comments on a website. The array of comments with key=>value (memberName=>comment) comes from php. I'm looping through using jQuery like so; $(document).ready(function(){ function swap() { <?php foreach ($memberTestimonials as $member=>$testimonial) : ?> $('#testimonialMessage').fadeIn(5000); $('#testimonialMessage').html("<p><?php echo … |
The End.