15,119 Topics
| |
I am using codeigniter 2.1.2 and Bootstrap. I am opening a form in a modal window. The form is inside a div with id status. The form has a few input fields and an upload file field. I am trying to submit the form with ajaxForm. In my controller I … | |
LEt's say there a certain phone number format. If someone types the correct format,it shows ok,if not it shows an error. I have done this but it only checks after user moves to the next textfield (onblur action). is there something like 'onButtonPress' or something | |
<html> <title>application</title> <style type= text/css> <!-- style1 font-family: Arial, Helvetica, sans-serif; color: =00000000; } --> </style> <head><script language="JavaScript">{ function upper( field ) { field.value = field.value.toUppercase(); } <!-- function validate() { var good = true; with( document.theForm ) { if( id.value =="") { alert("Please provide a student number combination of … | |
Not able to drag down baloonpopup extender in ASP.NET It shows black circle with line. (not allowing to drag on form) but when i drag it on text box it work but when i run the page textbox diappears. please help and also tell how to use baloonpopup extender. | |
Hello, I am trying to create a menu that slides up when a button is clicked. I looked at a lot of tutorials of animate and slide but nothing works for me. I hope someone can help. What I need is a button that says: Click for Menu and when … | |
I'm using **[Ascensor.js](http://kirkas.ch/ascensor)**. I need to detect which div section is visible in window to add animation effects to elements inside that visible div. For following code, <div id="ascensorBuilding"> <section> //floor one content here </section> </div> I'm using my code, <div id="wrapper"> <div class="section about" id="about"> </div> <div class="section home" … | |
| So I found this neat js for my site to make the video system much more streamlined. I was wondering if anyone knew how to change the carousel.js in the code, so that instead of circling around a few thumbnails, instead there would be a grid system of thumbnails underneath. … |
"httpError: The Http Transport returned a 0 status code. This is usually the result of mixing ajax and full requests. This is usually undesired, for both performance and data integrity reasons." I am getting this error in my web page form... how to get rid of this message ............ | |
This has been asked before in several places, but I keep finding the question and never a solution. If JavaScript on a page does window.print () I want to get back a status telling either 1) accomplished (which means there was some time elapsed, just like clocking does) or 2) … | |
Hi guy I was wondering how I would overwrite something written on my form using variables ie. my limerick is There was a fat butcher called Bill Who cooked more than he wanted to kill One day he sat down And said with a frown That his eating was more … | |
Hello, I have an idea which i need to turn into reality. I am trying to build a complete AJAX based Auction Web Portal. What I know - PHP, AJAX a bit & HTML, Javascript and XML. Few questions in my mind: 1. Where should i start? What all required … | |
It's a bit confusing to explain so I'll give an example instead and try my best. So let's say I have multiple blocks of DIV element with same class name (can't change class name for each DIV), but within each of those DIV, the content is different (specifically the a … | |
Hello, This is my first experience with C# Web Service & AJAX ... I would like to build a page like Facebook that will load the next set of records when we scroll down ... I'm trying to use the code but it's not working at all ... Can you … | |
All the characters in breaking down a string confuse me. I'm trying to understand how to find whatever number is in a string, and increment it up/down by one (unless it's a known last or first number?) $('#arrow_prev').click(function(){ var whichgallery = $('#div_id').attr('class'); // this could be .class_1 through .class_12 var … | |
Hello Everyone, How can I save the field id/name on a variable, once an user clicks on it, so that later I can use that variable as a parameter to retrieve data from the database? In the code below, you can see that I am selecting information from 'ac' in … | |
I wanted to know how cookie stored for each website? How they identify thei cookie? | |
I want to check if nickname contains only numbers and letters. It cant contain anything else. My current code is not working because as soon as I type in atleast one legal lettrer, the entire string evaluates to true every time I check, no matter how many illegal characters it … | |
Hi friends, I am using java applet that will perform some operations. Now it is independent of jsp or html page. So,if i close an applet my html page remains active and Vice-Versa. What i want to do is embed an java Applet in html page itself. When i click … | |
I have an onclick function for an <ul><li>, but I need to set a variable from the id of an <a href> tag insde the <li> and I'm not sure how. I have: $('#dropdown ul li').click(function(){ var picked = $(this).attr('id'); // this part I don't know. // var picked = … | |
i need to change background-color of a particular colum when the table header corresponding to that column is clicked.How to achieve this using html css & jQuery. | |
I have a session variable that I set to zero at every Page_Load beginning: Session["DoRefresh"] = "0"; On a dropdown value changed, in the event handler I do: Session["DoRefresh"] = "1"; On the end of aspx page I have a javascript added: function OnRequestEnd(sender, args) { if ('<%= Session["DoRefresh"] != … | |
Hi guys I'm fairly new to java script and was wondering if I could get some help with this, please forgive the probably messy code. <HTML> <HEAD> <TITLE>Limerick Generator</TITLE> <script type ="text/javascript"> function display(f) { f.result.value = eval((f.character.value) + (f.body.value) + (f.characterrhyme.value) + (f.occupation.value) + (f.task.value) + (f.verb.value) + (f.direction.value) … | |
Strange little glitch in a function. I need to replace a class for an element. I can add class, but I don't want that. I need to replace the class. And it's not working. The variable passes with .addclass. and not the other way. maybe there's some syntax I'm not … | |
Hello, I am making a Google Chrome extension. It checks if a Minecraft Server is online. To do so, it has to open a socket. As JavaScript can't do this, I made a PHP script that does the trick and I host it on my webserver. However, my code returns … | |
My desired effect is for a comment delete button like what Facebook has on mouseover. The parent element is inserting a new div that will be the "delete" button on mouseover, and removing it on mouseout. My problem is, when I try to mouse over the div being inserted, it … | |
Anyone can tell me if there is an automated tool to generate class diagram for javascript and php? | |
Hi Everyone, I am new to JQuery, Java Script & Ajax. Hope you dont mind the daft questions I may post. Here is my first Jquery, JS & Ajax question. I have the follow script inside my head section of a website I am testing with. <script type="text/javascript" src="jquery-1.9.1.js"></script> <script … | |
Hi all gud morning > I try in to implement table with pagination. Am using Jquery data table. In data table i have problem loading all data from database so time dealy more. so i want to implement in Ajax, jquery, Mysql. kindly gudience to me. | |
The form submits even when there are validation errors. How do I disable the submit button when there are validation errors? Here is the .js file ,submitFu:function(){ _.validateFu(_.labels) if(!_.form.has('.'+_.invalidCl).length) $.ajax({ type: "POST", url:_.mailHandlerURL, data:{ name:_.getValFromLabel($('.name',_.form)), email:_.getValFromLabel($('.email',_.form)), phone:_.getValFromLabel($('.phone',_.form)), //fax:_.getValFromLabel($('.fax',_.form)), //state:_.getValFromLabel($('.state',_.form)), message:_.getValFromLabel($('.message',_.form)), owner_email:_.ownerEmail, stripHTML:_.stripHTML }, success: function(){ _.showFu() } }) }, showFu:function(){ … | |
So what is going on is. For some reason if I just invoker "render();" the function does not run. But when I put it under the main(); function, and then invoke the main function under a "setInterval()" method then everythig works. Why is this? // Draw everything var render = … |
The End.