15,127 Topics

Member Avatar for
Member Avatar for SagarSe7en

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 = ""; …

Member Avatar for stultuske
0
3K
Member Avatar for programmer12

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"> …

Member Avatar for iamthwee
0
352
Member Avatar for begueradj

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

Member Avatar for iamthwee
0
283
Member Avatar for marse.haka91

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 …

Member Avatar for marse.haka91
0
5K
Member Avatar for Mr.Pink

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 …

0
160
Member Avatar for ravi142

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 !=="" …

Member Avatar for ravi142
0
92
Member Avatar for Tinnin

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 …

Member Avatar for Tinnin
0
3K
Member Avatar for nadiam

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> …

Member Avatar for nadiam
0
657
Member Avatar for azdonald

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, …

0
118
Member Avatar for ravi142

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. …

Member Avatar for ravi142
0
54
Member Avatar for hemanth_3

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

Member Avatar for JorgeM
0
86
Member Avatar for narendra75

In HTML,CSS BLINKING TAG IS NOTWORKING?I NEED PROGRAM IN JAVASCRIPT FOR BLINKING THE TEXT..

Member Avatar for frankjames018
0
206
Member Avatar for Anto_1

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 …

Member Avatar for ddanbe
0
1K
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
323
Member Avatar for qudsiyah.sherrief

**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> …

Member Avatar for Bogomil
0
272
Member Avatar for Anto_1
Member Avatar for Anto_1
0
237
Member Avatar for RikTelner

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 …

Member Avatar for pritaeas
0
162
Member Avatar for lordofkingz

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; …

Member Avatar for lordofkingz
0
117
Member Avatar for IndyItMan

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 …

Member Avatar for Ewald Horn
0
297
Member Avatar for danarashad

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 …

0
194
Member Avatar for RikTelner

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. …

Member Avatar for Bob Hensley
0
119
Member Avatar for ravi142

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

Member Avatar for ravi142
0
234
Member Avatar for Varunkrishna

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

Member Avatar for Varunkrishna
0
2K
Member Avatar for Varunkrishna

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 …

Member Avatar for Varunkrishna
0
182
Member Avatar for firedesire

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 = …

Member Avatar for Alberto Bucur
0
1K
Member Avatar for RazorRamon

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 …

Member Avatar for diafol
0
365
Member Avatar for jigar.patel

I need to create select start point and end point between predefine route obn google map Please advise on this.

0
130
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
342
Member Avatar for powerson65

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 …

Member Avatar for Purkinje
0
3K
Member Avatar for Tinnin

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 …

Member Avatar for Tinnin
0
364

The End.