15,121 Topics
| |
Hi Guys I have a text area(in php) that contain some text.I want a javascript that select the text and copy to clipboard automatically.Then it display "Link copied to clipboard alongside the text area Can anyone of you suggest me a good javascript ? | |
I have a bunch of drop down boxes, then after they are selected the the total amount automatically appears at the bottom.. the only problem is it appeears like this - <span id="resp">Total</span> How would I make this insert into the database? | |
Good Evening Guys, Today its my Birthaday. I have a If statement that i use to return an integer that will mean Success or Failure , now am testing for that integer in my ASP.NET 2.0 Page lke this [CODE] if (Res == 1) { Response.Write("<script> alert('You have Successfully Registred');</script>"); … | |
dude anyone knw how to create to assign height and width dynamically in web page for images? like this site http://muslider.musings.it/ | |
i am having problems in solving a few of my computer problems in 2d arrays.. for eg:- 1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 what would be the javascript to print this?? please help..its urgent :) | |
I have a problem whith my .change() function firing twice on my onClick. First of all, I know jquery has a .click function, but since my table (results) are bing displayed/pulled in dynamically from an $.ajax call I don't know of a way to bind .click since the content doesn't … | |
I have a photo gallery where there is a strip of thumbnails on the top and a full size image below. Basically when I click the thumbnails, it should show the full size image in the image placeholder known as "full" in my page. That works fine except I also … | |
Hi, I am building a basic shopping basket and the problem I find is that all the products, even with quantity of 0 are being displayed in the shopping basket. Please can anyone help!.. I don't know what I'm doing wrong. Thank you so much in advance! This is my … | |
i want the source code for image, audio and video slide show in javascript only... can anyone help me dudes !!?? | |
I have one menu toggle div manu which is slide up and down. For that I used jquery.Cookie plugin but still it's not working. here is my problem : http://jsfiddle.net/wasimkazi/fauNg/10/ please help me... $(document).ready(function() { $(".widget2").hide(); var $widget2 = $(".widget2"); readCookie('widget2') === 'open' ? $widget2.show() : $widget2.hide(); $(".box2").toggle(function() { $(this).next(".widget2").slideDown(200); … | |
Hello, I have found lots of examples on how to display a form field onclick, but none if I want to display an entire form onclick of a button. I am having difficulty figuring out where to put the form along with all of its form fields, in the head … | |
Why my javascript menu is structing after 5 minutes (measn the drop down menu is not coming ). For that i need to referesh the whole page that page is in jsp. Can anyone help me to overcome from this problem. below is the sample code <td WIDTH=150 onmouseover="awgMnBSpmc('awgMnBSpma0',1);awgMnBSpmd('awgMnBSpm11','awgMnBSpma0');" onmouseout="awgMnBSpmc('awgMnBSpma0',0);awgMnBSpme('awgMnBSpm11');" … | |
Dear All, I'm struglling with one small prblm with my code. // Charecter count $(document).ready(function (){ $('#msgbx').click(function(){ var charLength = $(this).val().length; $('#charcount').html(charLength + ' of 250 characters used'); // Alerts when 250 characters is reached if($(this).val().length > 250){ $('#charcount').html('<strong>You may only have up to 250 characters.</strong>'); }); }); Please help … | |
Hi, I'm working on rails project where I use json file for storing some data. Basically data are stored and get using ajax calls from jquery. But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json … | |
Friends What You Think? Which Editor Is Best For Writing JavaScript Code? I was writing the JavaScript code with notepad++ and checking with Mozilla Web Browser, but there is one problem that I am facing is: If there is a problem in my code the browser doesn't indicate aur highlight … | |
Hi there, why does the sort function not sort out numeric values depending on their values(large to small or small to large)? var drinks1 = [40,30,10,20,100]; println(drinks1.sort()); // this will give you 10, 100, 20, 30, 40 it sorts those values as follows: 10,100,20,30,40 Is there a way of changing … | |
Hello, The below code is mean to hit or show some data based on checkbox is checked off or not using Javascript. I found a bit of code on a Forum and tried modifying it. I'm trying to see if it's possible show data based on multiple Div Tags. For … | |
Having a little trouble getting my "pre-loader" to show properly... I would assume, what this script would do is that once xmlhttp is invoked, JS would make a div with an ID called 'preload' and it will persist until we get a 400 response from the server, and then destroy … | |
I've got a photo gallery on my website, but it seems to glitch at case 3 in my prevPic function. Instead of going backward, it goes forward. In each case, I want it to decrease the imgNum and show the previous picture. Here is some code: function prevPic(){ /*imgNum = … | |
need help here. how can i change the src in <embed> using javascript that works in firefox? ex. [code]<embed src="music.mid">[/code] - how can i change "music.mid" to another midi file. | |
Hi I have a question regarding the way my site deals with areas that are generated via Javascript not updating to the latest information when using IE9 but working perfectly on FireFox. I appreciate this may be like looking for a needle in a haystack but I would appreciate some … | |
Hi I have a script which displays a price but currently is not fixed to 2 decimal places so a price such as $2.50 shows as $2.5 which to me looks wrong. The line of code is `amount += parseFloat($(this).metadata().amount);` Looking around I see there is a function `toFixed()` but … | |
Hi, I am trying to populate 4 dropdowns. Each one is related to other. Dropdown 1 has predefined values. On selecting data from Dropdown1, dropdown2 populates. On selecting data from dropdown2, dropdown 3 populates accordingly. But nothing is working. Please help. I am not even sure whether my scripts are … | |
Hi! I am trying to wrap some html paragraphs inside a div element: <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> I want to have this when I select this text from an iframe with window.getSelection(): <div> <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> </div> and, in case I select 2 paragraphs and … | |
Hi, I want to get all the elements (span, paragraphs, div, etc.) that hold text inside, but just text. e.g.: If I had : <p>this is a paragraph</p> <p><div>this is a paragraph with a div inside</div></p> <div>this is a div</div> <span>this is a span <span>with a span</span>inside</span> So I would … | |
im using jqgrid datepicker but date will show in mm/dd/yy in this format i have to change the format in runtime how i can change dis format anyone can help me | |
Hi, I have a table with one column which contains icons. On hover over icon I am showing/hiding a dialog box or a page. The problem is sometimes dialog boxes dont go away. Any suggestion how to deal with this? Thanks, VC | |
Hi > nice to be in DANIWEB > really i m stucked in collecting value from ajax > i have an html select option on onchange on account i have the list of the customers belongs to the account > the problem i cannot collect the value of customer choosen … | |
**The problem:** Our "thankyou" page (goal page) is not recording all of our conversions. For instance, our analytics account is showing 19 conversions for yesterday, but we actually had 34 conversions. **The situation and the Code:** Our thankyou page is being called dynamically from the checkout page through a jquery/ajax … | |
Trying to validate a form that contains information about a car. Have all the validation completed apart from part for the registration number, the format it has to be entered is two letters, a hyphen, last two digits of the year its from, another hyphen, then 3 letters. eg GT-00-TRE. … |
The End.