15,117 Topics

Member Avatar for
Member Avatar for VaibsBrainyStud

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 :)

Member Avatar for DavidB
0
99
Member Avatar for dschuett

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 …

Member Avatar for AleMonteiro
0
2K
Member Avatar for SolidSora

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 …

Member Avatar for SolidSora
0
208
Member Avatar for kat*

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 …

Member Avatar for kat*
0
222
Member Avatar for ratanji

i want the source code for image, audio and video slide show in javascript only... can anyone help me dudes !!??

Member Avatar for JorgeM
0
97
Member Avatar for wasim kazi

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); …

Member Avatar for wasim kazi
0
2K
Member Avatar for jckb188

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 …

Member Avatar for aspirina
0
3K
Member Avatar for mrabrar09

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');" …

Member Avatar for dany12
0
115
Member Avatar for rayidi

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 …

Member Avatar for iamthwee
0
183
Member Avatar for aldm

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 …

0
130
Member Avatar for mindhacker

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 …

Member Avatar for pritaeas
0
118
Member Avatar for rotten69

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 …

Member Avatar for pritaeas
0
276
Member Avatar for MArun25039

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 …

Member Avatar for Taywin
0
2K
Member Avatar for ryantroop

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 …

Member Avatar for Taywin
0
140
Member Avatar for SolidSora

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 = …

Member Avatar for Taywin
0
142
Member Avatar for odee

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.

Member Avatar for Taywin
0
5K
Member Avatar for magicmarkuk

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 …

Member Avatar for Troy III
0
189
Member Avatar for magicmarkuk

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 …

Member Avatar for Troy III
0
214
Member Avatar for shahidr100

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 …

Member Avatar for shahidr100
0
2K
Member Avatar for softDeveloper

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 …

Member Avatar for ko ko
0
121
Member Avatar for softDeveloper

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 …

Member Avatar for ko ko
0
74
Member Avatar for thirumal.balu.3

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

Member Avatar for pritaeas
0
132
Member Avatar for VenusCrystal

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

Member Avatar for iamthwee
0
92
Member Avatar for asaidi

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 …

Member Avatar for pritaeas
0
94
Member Avatar for jwelsh

**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 …

Member Avatar for Taywin
0
397
Member Avatar for laura301019

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. …

Member Avatar for Taywin
0
165
Member Avatar for laura301019

Hi, practicing some javascript tasks and need some help with how to use a for loop to go through an array (which has 10 integers entered by the user). The for loop is to check if there are any duplicates of numbers and then i need to remove the duplicates. …

Member Avatar for laura301019
0
123
Member Avatar for vizz

I'm adding class through script to `<strong></strong>` ` background-color:transparent;` is OK in chrome and firefox but in IE adds black color around image **menu_bg.png** How to remove black background of image? **script** $("#navlist li a").hover(function() { $(this).parent().find('strong').addClass("hover"); }); **CSS** .hover{ display: inline-block; position:absolute; background: url(images/menu_bg.png) center no-repeat; background-color:transparent; } **HTML** …

Member Avatar for vizz
0
308
Member Avatar for Travus

I am using the [jQuery validation](http://docs.jquery.com/Plugins/Validation) plug in on a website I am creating. The validation works, and the messages are set, however when they get displayed on my webpage they have line breaks. I only display one message at a time so I dont know why a single message …

Member Avatar for Travus
0
1K
Member Avatar for SolidSora

I've got a photo gallery button on my website. I've got one button that looks like a forward arrow, which works fine and a back arrow, which does nothing. Also clicking on the thumbnail to view a larger one works fine. Everything is fine except for the back arrow. Here …

Member Avatar for Helianthus
0
159

The End.