15,120 Topics
| |
Trying to display events on my website based on what my clients want to view. I have 3 checkboxes setup to toggle the connected events, but I can't seem to make the onclick handle more than 1 event at a time. Basically, I want to know 1) how to display … | |
I had a jquery-based code that messed up the slider on my page @ http://formidablehoops.blogspot.com Is there a way to have those two co-exist, or is there a way to toggle my calendar at the bottom with javascript instead? I've removed the code for now, but I think it's a … | |
I need to create layout like [this](http://steveandjacqs.com) It is not scrolling smoothly. I need to travel to 2nd div each time before going to div clicked by navigation **My full code is here** **css** @import url("reset.css"); html, body{ height:100%; width:100%; margin:0; overflow:hidden; background:url(images/4.png) repeat center top; color:#FFFFFF; } a{color:#FFFFFF} #header{float:left; … | |
**<iframe width="608" frameborder="0" id="mainframe" name="mainframe" onload="$(this).height($(this).contents().height());" src="mindex/forratt.php" scrolling="no" /></iframe>** So I have written this code to automatically adjust the iframe to its content and it works fine. The thing is that when I access a page with a lower height, the height from the previous page stays put. I want … | |
I am trying to insert input values into database with the help of form without refreshing the page.For this my form is <html> <head> <title>Jquery test</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $('insert').click(function() { $.post("test2.php", $(this).closest("form").serialize()); }); </script> </head> <body> <form id="test"> <table> <tr> <td>First Name</td> <td><input type="text" name="fname"></td> </tr> <tr> <td>Last Name</td> … | |
| Hi all, I have a table on a page that is generated from MySQL database entries via AJAX request. I have a `.live()` event for the table rows in that table, `$(#myTable tbody tr).live('click', func...)`, which opens a jQuery UI dialog window with extra information from the table row. In … |
I'm trying to see how to load jQuery at run time. I can't understand why the following code doesn't work (probably me making a silly error) <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <script> var script = document.createElement('script'); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(script); </script> </head> <body> <a href="#" id="main">click me</a> <script> … | |
I'm creating a website and I want to have a popup menu with additional links come up when a text image is moused over. I'm alright with HTML, but I know that this can't be done in HTML and I assume it's Javascript that I would need to use. Can … | |
I'm using [ScrollTo](https://github.com/balupton/jquery-scrollto). It is not scrolling to div having margin, **margin-left: -1160px;** or **margin-top: -600px;** I have following div <div id="home" class="content"> <h1>I'ts home</h1> </div> <div id="about" class="content" style="margin-left:-1160px;"> <h1>I'ts about</h1> </div> <div id="contact" class="content" style="margin-left:600px;"> <h1>I'ts Contact</h1> </div> <div id="services" class="content" style="margin-top:-600px;"> <h1>I'ts Contact</h1> </div> I want to … | |
Hi Guys I need to retrieve a value from the javascript below in my html code and inject this value into a webbrowser. how can I format and invoke this script ? $(function(){jQuery.liveviewWithTable({enableCountsTable:false,enableCountTable:true,countTableElement:$("#count"),directionIn:$.getParam("Counter.DirectionIn"),liveSumUrl:"/local/people-counter/.api?live-sum.json",loadingAnimationUrl:"/people-counter/images/ajax-loader.gif",dataTypes:["in","out"]})}); Thanks a lot | |
Hi I am trying to give some sense to this expression #container, #footer { width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto"); } found on here http://www.cameronmoll.com/archives/000892.html but I can't quite get it. Is it saying if the width of the page is less than 745 … | |
i want to add search box to my calender where many event goes. public can search here with 3 keywords. please help me. | |
i want to disable browsers refresh button & F5 as well as ctrl+R . | |
I have a form with a text input where I am trying to use 2 jquery functions together. However only one of them seems to work. So I am hoping their might be a jquery guru out there that can help What I have is a text input box called … | |
Hello! I'm creating a small little applications (command line type thing, got some ideas) and I was wondering how exactly I would portray loading of the sorts, I know the classic animation: -- \ | / -- I just wanted to know how to animate that in Javascript. Just change … | |
I'd like to create something like this: http://www.million-monkeys.com/tvcyo/ I'd love to use Google docs, but I wouldn't mind plugging it all in by hand. I've done so before when I used this site: http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html to create a searchable database. I'm just wondering, however, how would I go about doing that … | |
My slider works well enough in all browsers except for IE, where the overflow isn't hidden at all. I've tried adding position absolute to some parts and I've tried adding position relative to others, but nothing has worked. Any answer to this would be great. Thanks. <script type="text/javascript" src="http://dl.dropbox.com/u/5739741/OMAR/code/jquery.js"></script> <script … | |
Hi all. I have 2 pages: 1. that provides data from mysql in json encoding if a correct "key" is provided, in my case the "key" sent by method post should be "1". Link: http://semaffiliate.local/public/api/getemployees Code in Zend: public function getemployeesAction() { $key = $this->getRequest()->getPost('key'); if (isset($key)) { if ($key … | |
Hi there fellow daniweb programmers I have problem in running function in javascript <script type="text/JavaScript"> function toggle() { var e = document.getElementById('target_<? echo $id; ?>'); e.style.display = 'none'; } </script> I have button that generated in php code so its repeating itself <li><a id="target_<? echo $id; ?>" href="like.php" onclick="toggle()"><img src … | |
how do you manually add it when the link is www.somesite.com which i would want it to be added to index.html ? function setActive() { /*current page function*/ $('#menu a').each(function(index) { if(this.href.trim() == window.location) $(this).addClass("current"); }); this works for any pages that are in the navigation menu. | |
Anyone can please help in this. I need to assign a path for a text file in a variable to be shown later on in html here's my code: <html> <head> </head> <body> <!-- Header --> <header> </header> <!-- End Header --> <!-- Main --> <section id="main"> <script type="text/javascript"> var … | |
Hi Everyone, I've been looking for good javascript projects to join. Are there any projects you can advice? I've researched a lot. (with the help of Google. :D) But would also love to get advices from people who have/had worked at an opensource project here. I would also love to … | |
Friends I want to show results on my website from the other website. It uses the URLS to shows the result as for Roll number 123123 the results page is www.remotesite.com/B/Res/123123.html like wise for the number 124124 the results page is www.remotesite.com/B/Res/123124.html I want to add such a javascript in … | |
Hi, I've looked online for a few days but haven't been able to find an adequate solution. I'm just trying to use javascript to validate that a password doesn't contain user data (first name, last name, etc...) I really thought it would be simple. Here is what I'm using: function … | |
Hi, I am trying to make a click counter. The prolem is the onClick part in button code. If i made it so it was "click();" and placed the var clicks into the function click then it would kind of work. But when I pass a variable into it.. it … | |
running into an issue haven't seen this before where content during the encoding and decoding of an image looses byte count. I have an app taking the photo image and sending the file via: ----------------------- byte[] imageBytes = new byte[(int) imageFile.length()]; inputFile = new RandomAccessFile(imageFile, "r"); inputFile.read(imageBytes); String base64String = … | |
Hello guys! I'm trying to change an element background color when my mouse goes over another element. As far as I know CSS, this seems to be impossible to do only with CSS, so what kind of js I need to do this? My knowledge in JavaScript it too limited … | |
Guys help me with this code. I don't know what to do. I have 2 div the 1st is in the left and it has a button and on the other div is to show/display when I click the button on the 1st div. <html>// this is my index.html <head><title> … | |
Hi there, I'm reading a book on Javascript and trying to understand a few concepts that are about hasOwnProperty(), propertyIsEnumerable() and isPrototypeOf(). I don't understand when and how these methods are used. That would so appreciated if someone can explain them to me in a nutshell. This example is from … | |
Hi, I just started javascript. I want to put a radio button into an array I have done this so far: var blocks = new Array("<input type="radio" name="" value="1">","2","3","4","5","6","7","8","9"); however this isn't working. I suspect that I need to change the 'mode' to html somehow? <html> <head></head> <script type="text/javascript"> // … |
The End.