15,127 Topics
| |
Hi I want to give a download button in my web page and when any one click on download button the image download to their computer. How i can do this please tell me? currently i m doing <a href='images/3.png'>Download</a> it open the image in new tab but i want … | |
I have a function as below in javascript that gets all the values from different inputs/selects. It must then build up a string that will be passed to a textarea. This was working fine last night when I tested. I then tweaked something, not sure what I did and of … | |
The code below simply shows and hides a div (content) when you click on the heading (heading). <script type="text/javascript"> jQuery(document).ready(function() { jQuery(".content").hide(); //toggle the componenet with class msg_body jQuery(".heading").click(function() { jQuery(this).next(".content").slideToggle(0); }); }); </script> Demo - http://www.designgala.com/demos/collapse-expand-jquery.html By default, the content is always hidden - Is there any way to … | |
so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a … | |
I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc. $.ajax({ url: '/foo.htm', method: 'GET', complete: function(a,b){ alert('complete-2'); }, success: function(a){ alert('good-2'); }, error: function(a,b){ alert('problem-2'); }, }); However, I am … | |
On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically … | |
m looking for a Javascript function or similar which will automatically load a different stylesheet randomly each time a page is visited. I have found several which work on user selection, or on browser size. My Javscript coding isn't up to adapting them sad If anyone knows of an example, … | |
hi Guys...i have two jquery functions.first one is showing data in grid and we can also update data in grid.. 2nd one is filtering data like if we want to see data of 'farhad' so it will bring data according to 'farhad'; i want to merge both functions in one … | |
Hi, I have a site built in dreamweaver. I am using library files to design navigation bar for every page. I have menu, sub menu and sub sub menu in that navigation part. All menu items are <a href> tags. I need a way to keep track of menus which … | |
![justmywheels1](/attachments/large/1/justmywheels1.png "justmywheels1") # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a … | |
hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); … | |
Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at … | |
I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; … | |
To register at http://www.box2d.org/forum/index.php there are difficult and annoying questions. But I solved one of them which was easiest for me, so I share in case someone else will want to register there: A ball of mass 3 kilograms begins falling with gravity of 10 meters per second squared. How … | |
Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this? | |
Hello everyone. I am building an Android app using Dreamweaver with the Jquery Framework and I am having trouble viewing source code of a given URL using javascript. I want the user to be able to type a url into a textfield, and then hit a button and have it … | |
Hi..! i have 2 files in a folder "form.php" "thankyou.php" after filling the form, user ir redirected to thankyou, but, if we click browser's BackTo button, the filled details are remaining in the fields. How to reset the form when clicking "Back". This code i tried.... but no use <!-- … | |
guys i have for buttons in html form...edit, back, submit, reset but the problem is how to go back to previous page....i m performing this using onlick event but not working... my code is.... <form method="post" action="" enctype="" name="Qform" onsubmit="return validateForm(this); "> <div class="centerform" > <div id="divbox"> <label id="label">Name : … | |
I am having a problem with my JS slideshow- it works perfectly in IE. I checked firefox, and for some reason, I just see the first image of the slide. Even if I manually press the next arrow, nothing happens. Here's a link to my site: [http://www.wordpress.suavedesign.net](http://www.wordpress.suavedesign.net) I'm not sure … | |
I am trying to create a menu bar off of my unordered list and i cant figure out why the js doesnt work. i got the fuction from w3c. here is my js file <style> #menu,#submenu { padding:5px; text-align:center; background-color:#e5eecc; border:solid 1px #c3c3c3; } #menu { padding:50px; display:none; } </style> … | |
Hello im sry if i have any of this code wrong, im not very good at Javascript. so basically i have a ChgText() which works fine althou it replaces the whole field of my text area. how would i go about changing this code so i could have it just … | |
I found great tool to make shapes. But the example how to load the shape for javascript. He wrote >Note: the following code snippets are extracted from the loader-libgdx-demo project. They are written in Java, and target the LibGDX game framework. However, they should be easy to understand, and easy … | |
PLease I need Help, I am a newbie, but i am a webdesigner, but i haven't done job that requested for though programming skills, But now i have a project which i am under going now, its a like a small finance site, Which means, i as the admin, i … | |
How do I get search engine results programatically? Some search engines use AJAX to display content and so the URL does not change. This makes it difficult to get result content from a search engine programatically. Most search engines do not use AJAX. But two popular ones that I am … | |
i am facing another issue. i want to delete row via ajax and fadeout. i have write below code. this is successfully deleted the row but do not fadeout. var parent = $(this).parent().parent(); $.ajax({ type: "POST", url: "delete_order.php", data: "id="+id, success: function(){ row.find("td").fadeOut(1000, function(){ $(this).parent().remove();}); } }); return false; | |
Hi there, am I doing something wrong with the if-statement? it either doesn't evaluate the conditions I've got in there or throw an error. $('button').click(function(){ var button = $($(this)).text(); console.log(button); // this logs the value of button as night or day depending on the button I click if(button == 'day'){ … | |
<asp:TemplateField HeaderText="Interview Date"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"/> </EditItemTemplate> </asp:TemplateField> this gives me an error, when i click on EDIT button in gridview, even ajaxtools are installed and work when i use them simply, Could not find any resources appropriate for the specified culture or the neutral … | |
Hello, All ... I have an HTML file which contains pages of formated text, all within a <p> tag, which has an onclick call to a jscript function. This function gets mouse cursor position at the click event, then passes this position to elementFromPoint(pos.x,pos.y) to return my element object, which … | |
Hi i want to use regular expression to check if a string is in the format : 1+2 or +12 or 12+ or 1-2 or -12 or 12-. CAn someone help? | |
I have a simple bit of code (contained in a CMS and cant be edited) that and needs to be read by Javascript in the header if it has been clicked. Here is the code: <div id="example" class="page-element-outer" style="text-align: left"><div class="page-element-inner" ><input type="image" name="Button1" id="Button" src="/getresource.axd?AssetID=16813" alt="Submit" style="text-align:left;" /></div></div> Can … |
The End.