15,699 Topics
![]() | |
hey people. i am asking if it is posible to check for the user status using php. i mean to know if the user if online or offline. i am trying to build a chatting system that alow me to know who is online and who is offline. | |
I have an array of links that when clicked will show a corresponding hidden div element. Every link has it's own div. I'm trying to use an image to close each div as well (which isn't working yet). More importantly, when I click on the first and second links, two … | |
[CODE] <html> <body> <div style="width:500; height:200; border:1px solid black;"> adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br> adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br> adsf<br>adsf<br>adsf<br>adsf<br> </div> </body> </html> [/CODE] ello I'd like to have a div with minimum height of 200px. but if we add more data in to the div the height should be increased not totally fixed you know? what can … | |
hi gays, I ask you some details about javascript what is javascript and tell me where he use. | |
Hi guys, I am trying to display validation error messages when form validation fails. Currently it does display the error messages but then disappears straight away. How can I stop the page from refreshing when validation fails? I have return false in my code when validation fails but still having … | |
So i'm transferring all the files from my mom's website and on a very important javascript file, I'm getting an unknown error on line 9. Here's the code: [CODE] /** * @package Kinetic Template - RocketTheme * @version 1.5.3 March 18, 2010 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) … | |
Hello, I'm trying to understand a very simple example of using html + servlets using Eclipse EE. I have an [B]index.html [/B]: [code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Ze title!</title> </head> <body> <form action="MyServlet" method = post> <input type= text name … | |
Hi Is there a way that I can define read-only variable (Boolean, String, ...) in Javascript class? (I really don't want to use GET and SET method, basically defining them in Constructor, as every instance of my class wouldn't have the same SET and GET method) Maybe this would be … | |
I have a page on which I have 2 dropdowns. Both are similar. I have a piece of code that whill make a textbox appear if we select "list Box" as the option in the drop down. But for some reason, the first dropdown works fine, but for the second … | |
I'm new to javascript and need to know how to store variables in cookies so that I can later use them later in php code. Here is the basic javascript I want to use: [CODE] function alertSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == … | |
[ICODE]<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>PicNet Table Filter Demo</title> <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript" src="picnet.table.filter.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // Randomly Create Data Rows for (var i = 0; i < 50; i++) { var tr = $("<tr>" + "<td>Value" + Math.floor(Math.random() * 500) + "</td>" + "<td>" + Math.floor(Math.random() * … ![]() | |
Greetings, I was wondering if any of you could help solve this issue... I am using lightbox2 on a photo gallery page to display images. I also have flash files that I am displaying using another system called lightwindow. Both do generally the same thing (darken b/g of page and … | |
Hi everyone! I'm using the editor CKEditor [url]http://ckeditor.com/[/url] for my forum that I developed. When I create a new topic in my forum is so good, now when I see the issue that the images you upload do not see and I look at Funt code looks like this: [CODE] … | |
[CODE] <script type="text/javascript"> //<![CDATA[ function cbUpdate() { var opt; var sel = document.info.cbShow; sel.style["display"] = "block"; sel.length = 0; opt = document.createElement( "option" ); opt.setAttribute("value", "0"); optTxt = document.createTextNode(document.info.cbSelected.value); opt.appendChild(optTxt); sel.appendChild(opt); for(i = 0; i < document.info.cbHold.length; i++)//or use ajax { if ((document.info.cbHold[i].text).indexOf(document.info.cbSelected.value) != -1) { opt = document.createElement( "option" … | |
Hello! I'm fairly new to HTML and CSS, but I have the concepts down and I can do many things. I also know some very basic XHTML. I am looking to learn Javascript, mainly so I can do an effect like the advertisement that drops down on [URL="http://www.knabstruppers4usa.com/index.php"]this[/URL] website. I … | |
In Jsp page some Java Script code is there . When I run the JSp file then java Script code is shown in the browser. Please suggest. | |
Hi I just started java scripting yesterday, and seem to like it, please can anyone help me on the books i could use and how to get them, please will prefer them free, or opensource. Thanks in advance. | |
I am trying to make a form and send all the entered fields directly into an email to a specific email account. if any one knows how to do this or can point me to a site that can help me i would be extreamly grateful thanks!! | |
I have this code for a hover effect, it was working, but now won't. jQuery is working, but events from jquery aren't... [CODE] $(document).ready(function () { $("#logoimg").hover(function () { $("#logoimg").attr("src", "Media/imgover.png"); $("#logoimg").animate({ width: 420 }, 300); }, function () { $("#logoimg").attr("src", "Media/imgout.png"); $("#logoimg").animate({ width: 400 }, 300); }); });[/CODE] | |
How to detect if a browser supports iFrames? [CODE] <script type="text/javascript" > var e = document.createElement("iframe"); if('src' in e){ alert("Your browser supports IFRAMES"); }else { alert("Your browser DOES NOT support IFRAMES"); } </script> [/CODE] WHen you use createElement(), if you pass it 'iframe' it will contain specific iframe properties, like … | |
I have a ul and I would like to animate each li in descending order, and I'm having no luck on this. my current code it, [CODE]function menuItemsIn(){ $(".ac_menu ul li").each(function(){ $(this).animate({marginTop : '0px', opacity : '100'}, {duration : 'slow', easing : 'easeInBack'}).delay(200); }); }[/CODE] It animating all the li's … | |
hello , Iam trying to add google map fuctionality in website dynamicallly. Iam sucessfull in but noe i want my map to be opened in lightbox .i have googled and found various results but of no use .any kind of help appreciated thanks ![]() | |
![]() | I have a quantity field where I'm only allowing a max of 3 numbers (numbers only) in addition to the tab and backspace keys. I want to include the delete key, but it appears both the delete key and the "del" key on the numeric keypad share the same charcode … ![]() |
I need to ask the user for which layout they prefer and then change the stylesheet attributes according to that. Below is what I have done so far with prompting the user for their preferred layout. I'm not sure how to change the attributes for the different layouts like if … | |
[CODE] <html> <head> <script> function A() { var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.a.b.value; var e = oas.getFile(d); var f = e.size; alert(f + " bytes"); } </script> </head> <body> <form name="a"> <input type="file" name="b"> <input type="button" name="c" value="SIZE" onClick="A();"> </form> </body> </html> <html> <head> <script> function A() … | |
I will have a page with about a 100 or so different links and I would like each one to toggle the visibility of its corresponding hidden div. For instance, if I have a county 'Johnson' when it's clicked I would like the hidden div associated with that county to … | |
I have a database of invoices that have multiple attachments(which are stored in a different table) per each invoice. I have it returning the row of invoices just fine. But now I want a way to click the "view" link to call a php script to open up a jquery … | |
Hey, Just a quick question. My webpage is all working fine in IE9, new Firefox, Safari, Opera, and Chrome, but in IE7 it's flagging errors to do with the Facebook share buttons (javascript). When you click them nothing shows up. I was wondering if you could tell me what I … | |
Hi , I want to confirm a delete function using javascript .. In detail I want to display a list using php Mysql as follows No + Name + ---------------------------------- 1. + Raj + Delete 2. + Raj2 + Delete ---------------------------------- When user clicks on Delete button that will leads … | |
hello, I have build an code for opening a map in thick box but i have problem closing it ,i have to click outside a thickbox please help | |
Hello everyone I'm using dreamweaver CS5. I have widgets like slideshow filmstrip; youtube; and twitter im trying to upload unto my server go daddy, but it doent reconize my spry can anyone help. Aposse | |
Hi, I am trying to use AJAX to pull back mysql table information. I tried to alter an example I found (w3 schools) where they showed how use a selection table to pull a specific line out of a mysql table, using the "q" (not really sure if the "q" … | |
I know this is kind of a jquery/ajax question, but I figure it wouldn't hurt to ask here since someone may have done something similar. I have a database of invoices that have multiple attachments(which are stored in a different table) per each invoice. I have it returning the row … | |
guys i am having problems with my jquery code . the slider that has the words "portfolio , service , contacts" etc . doesn't seem to be working here is my site here [url]http://homejobsinc.t35.com/test2.html[/url] here is my source code [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" … | |
I have a jQuery form in which I create a series of checkboxes: <?php <form method="post" id="b-form" action="../createb.php"> for ($i=0; $i<$request_count; $i++){ <div class="request-check"> <table> <tr> <td><input type="checkbox" name="show_request[]" value="request".$i." checked="checked"/>select request</td> </tr> </table> </div> } javascript $.ajax({ type: 'POST', url: '../createb.php', data: $('#b-form').serialize(), success: function (msg){ alert(msg); } }) … | |
Hello friends! Suppose I have something similar to this HTML (this is not my exact HTML, rewritten to simplify): [CODE] <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> <a onclick="ShowHide(); return false;" href="#">show/hide</a> <div> <div id="summary">Summary of info below</div> <div id="enclosure" style="display:none;">Information</div> </div> … | |
(I know this is the wrong forum to ask this but I haven't got any help on any of the Javascript forums I've asked this on so maybe someone here can help - or you can go to the Javascript section and answer it there if you like.) I'm new … | |
Hi guys, i'm doing my FYP, and facing the following problem. below is my code for the javaScript [CODE] <script language="JavaScript"> function deleteAccount(ckId){ [COLOR="Green"]alert(ckId);[/COLOR] var index = document.getElementById(ckId).value; document.getElementById('hiddenind').value = index; var conf = confirm("Are you sure you want to permanently remove this account?"); if(conf == true) { [COLOR="Red"]document.form.action = … | |
Hello everyone, I have one container div with several <div>About</div>, <div>More Info</div> etc. in it. on the main container I applied onmouseover to execute a JAVA function. Apparently, every time I hover a <div> in the container it runs the JavaScript again. What is it, I'm doing wrong? Thanks in … | |
hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the … | |
hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the … | |
Hey guys, quick question. I am new to Jquery and just need a bit of assistance. I want to create an image gallery with one div holding all of my thumbnails (.thumbs) and the second div (which would be to the right of the thumbnails) would be an enlarged image … | |
Hi All, I am having an issue with the top part of my site turning COMPLETELY black in IE 8 on the portfolio page. If you scroll to the bottom of the page it says an image is loading throughout the visit of the page. Has anyone else had a … | |
I have been experiencing a problem with a menu tree created in JavaScript. It has been in use for years with previous versions of IE with no problems but when I tried to put it into a new web page and loaded it on IE8 the appearance changed dramatically. Has … | |
Here is my ajax call: [CODE] new Request.HTML({ url: 'users.html', method: 'get', update: 'go', evalScripts: true, /* !! Why isn't this working!? */ onComplete: function(){console.log('ajax complete!')} }).send()[/CODE] I even check eval scripts! users.html: [CODE]<label><h3>Save data here:</h3> <br /> <section id="load" style="display:none;"> <img src="progress.gif" /> </section> <section id="log"> </section> <table> <tr><td>Data:</td><td> … | |
I have some images 5 or 6 that are 800 x 300 i use in my website banner. The start loading but when number one is 1/3 of the way teh next one starts then the next, it looks real messy nee some way to preload them ... like black … | |
I have a site the generated a row of data from MySQL db. The parent element DIV is called "enclosure". This shows up as hidden when page loads. I have a link "show/hide" that I'm using to show the data when click using jQuery. My problem: Since all the rows … | |
![]() | [CODE]<script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID) { if(XMLHttpRequestObject) { var obj = document.getElementById(divID); XMLHttpRequestObject.open("GET", dataSource); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { … ![]() |
Hello all, I am very new to JQuery and thought I'd go about teaching myself. I took three different codes I found online and combined them for my site. I used: accordion menu ([url]http://www.i-marco.nl/weblog/jquery-accordion-3/[/url]) a sliding menu and coda-slider2.0 ([url]http://www.ndoherty.biz/demos/coda-slider/2.0/#1[/url]) The combined menu works great for my main navigation but … | |
hello , I am writing a validation code in which i have validate two feilds and check if the feild username and email already exist in the database. please help |
The End.