15,700 Topics
![]() | |
Hi there,, I am trying to get my hea around this simple line of code and trying also to make it work. The ball doesn't move to any direction.. thanks for the help.. <script type="text/javascript"> function moveRight(){ document.images['ball'].style.left = parseInt(document.images['ball'].style.left)+5 +"px"; } </script> </head> <body> <img id="ball" src="ball.jpg" alt="ball bouncing" … | |
Hello everyone I have been learning about Web system design and I'm in a kind of interest,attached is my 1st web page so far with some little css and javascript.But I cant make my Scroll Down Navigationbar work properly it just stuck without annimating on mouse over effect can any … | |
Hello I have a quick question. I can launch javascript code like this through arrays: arrayLinks[13]="javascript:LaunchKeyboard()"; ** but how do I launch jQuery code through an array?** arrayLinks[8]="??????????????";` My jquery code is $(function() { var ele = $('#div1'); var speed = 25, scroll = 5, scrolling; $('#scroll-down').mousedown(function() { etc } … | |
I am trying to setup what would be a tabbed order form witch would also contain a jquery image upload and preview function. However what is happeing is if I just have the jquery code for the tabbed content function the file works but when I add the jquery code … | |
Hi peeps, I wonder if you can help me at all undertanding this code. Unfortunately I don't have it live anywhere, it is something I have seen somebody working on Here's the code and I will explain breifly what it does and what's not clear (which needless to say is … | |
Hi all. Please help. How is it possible to transfer a variable from PHP to JavaScript. I have the following code. <?php $id = 5; ?> <script>window.location.href = 'view_topic.php?id=**VAR**'</script> Instead of VAR should come the value of $id from PHP. Thanks in advance. | |
I am having trouble getting this example to work. I posted exactly like it is put on the google documentation but it just won't work for some reason. Some please help me, am I doing something wrong. The link to the documentation is https://developers.google.com/youtube/iframe_api_reference#Getting_Started The code I am using is … | |
###Hello Developer,### I started with a small projeckt and now i come to a small problem. Where i need to use Ajax/Jquery. And since i dont have the most experience with Jquery / Ajax, Would I like to ask for help. ###The problem:### I have some search criteria as **Category, … | |
I've been developing software for over 25 years and have been doing web development for the past 10. I'm an entrepreneur with several web services, some commercial, some not. While putting together a new service this week, non-commerical, I reached my breaking point with Internet Explorer and made a conscious … | |
Hi! I have the following table: <table width="63%" border="0" align="right" cellpadding="0" cellspacing="0" class="findUsResults"> <tr> <th align="left">Company</th> <th align="left">Location</th> <th align="left">Products offered</th> <th align="left">Distance</th> </tr> <tr> <td rel='1'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=3" class="various fancybox.ajax">Click to view</a></td> <td>0.9 mil</td> </tr> <tr> <td rel='2'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=5" class="various fancybox.ajax">Click to view</a></td> <td>11.56 … | |
Hi there, Can anyone explain what is wrong with my code? I get an error message saying null value from innerHTML. <script type="text/javascript"> var sub1 = document.getElementById("input1") ; var sub2 = document.getElementById("input2") ; var sub3 = document.getElementById("input3") ; var sub4 = document.getElementById("input4") ; var GPA = (sub1+sub2+sub3+sub4)/4; var para = … | |
Hi all, I want to create a login page modal window. Steps are as follows : 1. There will be a login icon(small image). 2. On clicking the icon , a modal window will open having three options (i) Distributor login (ii)Client login. (iii) Employee login .If Distributor login is … | |
Hi, I have used the following code to load data from a php page using AJAX with JQuery.The script running well in all browsers except Firefox. The script I used is as follows. test_ajax.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript"> function … | |
Hi, I'm currently working on a site's HTML code and am wondering how can I achieve this: I need to make certain images change, in a form of a slideshow, randomly and with random intervals; this means I will need it to start with a certain image and to go … | |
Hi guys, quick question, I need display search result on another page in page-result div tag, not sure where to implement page adrees like result.php if ( xmlhttp.responseText ) { document.getElementById( 'page-result' ).innerHTML = xmlhttp.responseText; } any idea? thanks | |
Hello, I read an article on "how to prevent users from submitting a form twice." at the url http://www.4guysfromrolla.com/webtech/100406-1.shtml I was able to freeze the web page but was not able to unfreeze the web page. I am using PHP with javascript. Nothing happens when my code executes the "unfreeze" … | |
Hi there, I am trying to come up with an instant price quote calculator in javascript. it would be a simple one with six fields: Quantity of mounts Outside Top = Free type box Outside Side = Free type box Window Top = Free type box Window Edge = Free … | |
![]() | Hello, I'm trying to implement a grid from Ext Js 4. I have index.php, which is the main page that has the main html (<html><head></head><body></body></html>) and a div inside the body. everything on my application is displayed inside that 1 div. in other words I'm using OOP PHP and Ajax. … |
how to code a jscript similar to fb that click the image and a layer pop out? i would like to see some example on how it is done. thanks! | |
Hi! Does anyone know how to upload a file, say in a form, with input type="file". But what I want is to display the uploaded file in an iframe in the same page. Best Regards | |
What is the quick and easy way to update a navigation bar on a multipage website. I want the page to show where you are as well, currenly I am using a css id to keep track of what page you are on. <div class="nav"> <ul> <li id="current"><a href="some_url/">Home</a></li> <!-- … | |
How do I push new values to the following javascript array? json = {"cool":"34.33","alsocool":"45454"} I tried json.push("coolness":"34.33"); but it didnt work | |
I am trying to push to the javascript array after looping 200 times through the member array to push every member that matches the department selected description into the javascript array., However it fails <? $i = 0 ; while( $i < 200) { if ($members[$i]['department'] == $depttts){ break; echo … ![]() | |
hi everyone im new in ajax and i currently studing ajax. my problem is $('#current').click(function() { var id = $(this).attr("id"); var sellitem=$('#spid').val(); $.ajax( { type: "POST", url: "updatecurrentsp.php", data:{ 'itemid' : id ,'sellitem' : sellitem }, success: function(data) { $('#sellprice').css("display","block"); //Changes the style of table from display:none to display:block $('#sellprice').html(data); … | |
Hi I am getting value from another page by sending it as part of url query. I want to know how to set that value to textbox or any component in current html page. I tried document.getElementById().value. But it is not working. Is there a way in javascript where I … | |
How can i export the values of the text box in html to a csv or a excel .I have created an HTML Form which will be used from a local computer and want the form data to be saved in CSV file. Each time the form is submitted, it … | |
Hello All, I badly need a solution. We have invoice system which take the text fields as s.no, particular, qty, price and amount. the next rows with the same will be created dynamically. the problem for us how to sum amount and display these at the end of the rows. | |
ok have a problem in a chat i have made, everything is working but the user list , in my assets file in swf i have the following under a config xml <?xml version="1.0"?><config musicPlayer="true" multipleCamBroadcast="true" webcamToWebcam="true" userHasList="true" userListDefaultOpened="true" autoAcceptPrivateInvitations="false" showTipInChat="true" showTipToViewersInPopUp="true" topicEnabled = "true" > then in the same … | |
I have created pages to comping some content and adding it into db. Here they are composing.php <html> <head> <title>Composing news</title> <script type="text/javascript" src="includes/jquery/jquery.min.js" ></script> <script type="text/javascript"> function reset_form() { document.getElementById("title").reset(); } </script> <script type="text/javascript"> $(document).ready(function(e) { // ready method make funtion available after the document has been loaded $("#submit").click(function(){ … | |
Hello, i am working on PHP and jQuery trying to do a post with jquery. It seems to work in FF but IE is giving me several error: The follwing is the code i am using: <script> $(function() { $("#mainForm").submit(function() { dataString = $("#mainForm").serialize(); $.ajax({ type : "POST", url : … | |
I am in need of incrementing through a php array with the javascript variable "i" instead of where i have 0 in the $members array call var i = 0; while (i<5) { if (<?php echo json_encode($members[0]['department']); ?> == "CHE"){ contacts.push({"NAME":"Sir Saula","TITLE":"John","CONTACT":"bab","RESEARCH":"Ph.D."}); } i++; } | |
http://bearpaw.emeraldcode.com/news/lookbook I have a scrolling js called jBond Slider that moves when you click and drag. And I am also using prettyPhoto when they are click to open in a "pop up" window. This is copied over from an older site using lightbox: http://bearpawshoes.com/lookbook.shtml My issue is when you scroll, … | |
Is it possible to do something like this? [icode]<div id="btn1" onclick="//somehow call page2Link here"><a href="page2.html" id="page2Link">Page 2</a></div>[/icode] Basically it's to try and make the text work with the a:hover text effect I have whilst making the whole layer sensitive to clicks. i tried this already: [icode]<a href="page2.html" id="page2Link"><div id="btn1" ><a … | |
Good Day Guys This is an MVC , JQuery, KNockout.js Question. i have a Controller Action that is being Defined like this [HttpGet] public JsonResult SearchCars(string searchString) { string[] searchTerms = (searchString).ToUpper().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); string[] searchTermSounds = new string[searchTerms.Length]; var list = (from r in Cache.CarSearchItems … ![]() | |
![]() | I'm trying to figure out how to implement one of the charts from the Ext JS framework.. where I get stuck is- I can't find the code that has the data inside the chart. like on exis x- Hits per Month and exis y- month, where is the code that … |
![]() | I was looking at using the Ext JS 4.1 (http://www.sencha.com/products/extjs/) , it promisses to enable developers to use the model-view-controller (MVC) architecture when building their app. can someone give me an example of how I can use the Ext JS 4 with MVC? if I wanted to create a form … ![]() |
I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time? This is my code: string PDFPath = folderpath + filename; string PopupName = "popUp"; … | |
Hey, I have the following code and I am trying to get Google Maps API to add a parker to each location and thats working fine! However, I cant seem to get my tab's working in each info window? Here is my code: <script type="text/javascript"> var locations = [ ['Jackson … | |
Hai guys, I need to enable the phone gps in order to get accurate geolocation from the web browser... I have this Javascript.. but the script did not enable the gps.. it only obtain using network method.. triangulation ... anyone please help me on this..? // this is called when … | |
Hi, I have this script here: Enter Chat and press enter <div><input id=input placeholder=you-chat-here /></div> Chat Output <div id=box></div> <div id=pubnub pub-key=demo sub-key=demo></div> <script src=http://cdn.pubnub.com/pubnub-3.1.min.js></script> <script>(function(){ var box = PUBNUB.$('box'), input = PUBNUB.$('input'), channel = 'chatlllll'; PUBNUB.subscribe({ channel : channel, callback : function(text) { box.innerHTML = (''+text).replace( /[<>]/g, '' ) … | |
Hi everyone, I'm using jquery in this piece of script and also trying to call the functions. But, they aren't working at ALL and the firefug is saying that there is an error in the script. The error is [QUOTE]missing ) in parenthetical [Break On This Error] $.post('ajax/like_add.php', (article_id:article_id), function(data){ … | |
Hi everybody, i have problem in image resizable and draging. what is the problem in my code. plz help me. var c; var crop_api; $(document).ready(function(){ var uploader = new qq.FileUploader({ //var list=document.getElementById('fileList'); element: document.getElementById('upload_button'), // element: $('#upload_button'), action: upload_url, // action: "http://localhost/public_html/web/meetnewpeople/upload" , params: { meetnewpeopleid: 1 }, allowedExtensions: ['jpg','webm','png','gif'], … | |
Hi peeps, I was thinking to develop something similar to this http://www.toyota.co.uk/cgi-bin/toyota/bv/generic_editorial.jsp?navRoot=toyota_1024_root&noLeftMenu=true&edname=See-the-range&zone=Zone+See+the+Range&id=SeeTheRange_Link It is in flash now, and I would like to have something similar in jquery, what would be the best way to proceed do you think? Any advice? thank you | |
Hi everyone. A friend of mine has a web store at bigcartell(HTML,CSS,JavaScript) and needs an extra textbox (which can be created within div or form) on specific products where costumers can add their personalised message to the product. I wonder how could I add this message to the order or … | |
peeps, given the following markup <link rel="stylesheet" type="text/css" href="assets/style_images.css"><!-- MY CSS --> <script type="text/javascript" src="assets/big_images.js"></script> <div class="car_model_description"> <div class="compare_button"> <a href=#><img src="assets/compareBTN.png" alt=""></a> </div> <p id="caption">Default text</p> </div> <div class="image_container"> <img src="wathever.jpg" alt="" id="placeholder_image" > <img src="wathever1.png" alt="" class="image_invisible"> <IMG SRC="wathever2.png" alt="" class="image_invisible"> <IMG SRC="wathever3.png" alt="" class="image_invisible"><!--to change --> <IMG … | |
Hi All, I have code that dynamically retrieves data with jquery AJAX. when i want to insert data into database via PHP **$_POST** method it cannot grab `select tag` (option) value in Mozilla and Chrome. But it works perfectly in IE. Below is my code. <?php if($_GET['func'] == "drop_1" && … | |
Hi, i have a dropdown list where i have 3 options like <tr> <td><?php echo $entry_shippingtype; ?></td> <td><select name="type"> <option value="free">Free Shipping</option> <option value="flat">Flat Rate Shipping</option> <option value="weight">Weight Based Shipping</option> </select></td> </tr> <tr> <td><?php echo $entry_shippingamount; ?></td> <td><input type="text" name="shippingamount" value="<?php echo $shippingamount; ?>" /></td> </tr> When i select free … | |
I am using the following code to select a date range using 2 inline datepickers. There are two date fields (**div**, with class **dateheader**). When a date is selected, that datepicker slides up. Basically when the date **div** is **clicked**, first it is checked whether the corresponding datepicker is already … | |
good day, Im quite new with ASP and is still studying it Im just wondering why everytime I use Javascript codes the error Language 'JavaScript' is not supported at this moment! is appearing in my browser but then when I use VBScript it works out just fine. | |
![]() | Hello all, I have a drop down that is populated using php and mysql. when the user makes a selection, I run the function showUser(), however, nothing happens when i make a selection, can anyone help with what I'm doing wrong? The JS [CODE] <script type="text/javascript"> function showUser(str) { if … |
The End.