15,127 Topics
| |
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 … |
The End.