15,113 Topics

Member Avatar for
Member Avatar for Eyeteeorg

As someone who is new to Javascript, I find it kind of odd that Javascript doesn't seem to have a != operator. Is there a rationale why the language was designed this way?

Member Avatar for Eyeteeorg
0
192
Member Avatar for while(!success)

Hi guys, how would I translate the functionality of this anchor: <a style="font-size: small;" href="javascript:void(0)" onclick="document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;">Blahblah</a> To an asp.net imagebutton control? This is what I have come up with: <asp:ImageButton ID="ImgBtn" runat="server" ImageUrl="~Images/Go.gif" OnClientClick="<script type='text/javascript'>document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;</script>" /> But its not coming out the same way. Can anyone help me …

Member Avatar for JorgeM
-1
773
Member Avatar for wolfgangcs

Grabbing this "loadcssfile" from http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml and added the check device. This is the best I have and I may just be entirly confused! I want to change the CSS file depending on the device before the rest of the page loads. function checkDevice(){ if(window.isiPad){ // do nothing } else { …

Member Avatar for wolfgangcs
0
226
Member Avatar for runlevel3nut

I've been learning Javascript on Codeacademy, but the site is so buggy and broken that the fact it's free of charge and breaks lessons down into small pieces isn't helping me. All I experience is frustration with the broken Run button and command parser, as well as the lazy and …

Member Avatar for wolfgangcs
0
280
Member Avatar for ajitdas57

What is the html code to make horizontal boxes i need to make some boxes go from left to right but all i can find is on top of each other, you can see example here <a href="http://www.carinsurancequotesinformation.com&quot;>car insurance quotes</a> where the boxes are next to each other, and will …

Member Avatar for Taywin
0
100
Member Avatar for Martin C++

As you can see from the title I am interested in making a shopping cart with javascript. What it should do is allow a client to add/remove products from the cart. Increase the quantity and have a visual overview of his cart. When he is finished he would go to …

Member Avatar for AleMonteiro
0
141
Member Avatar for rpgowned

I know there are many other threads on this but i can't seem to make heads or tails of them and make them work in my code. I have multiple dropdowns on a page with a yes/no answer each question has sub questions if yes is chosen.. I would like …

Member Avatar for AleMonteiro
0
172
Member Avatar for chris99

I'm having trouble getting my jQuery to work. The .js file is in the same folder as the homepage, and I'm trying to accordion a list using the effects plugin. Here's the jQuery code: $(document).ready(function(){ $('#accordion').accordion({collapsible:true, active: false}) }); Here's the homePage code: <!DOCTYPE html> <html> <head> <title>Santa's Workshop</title> <script …

Member Avatar for EvolutionFallen
0
160
Member Avatar for giovannitao

Hello, Some one can help me to customize a classic dropdown select menu to this: [Click Here](http://i45.tinypic.com/x6bpnb.png) Thanks

Member Avatar for AleMonteiro
0
63
Member Avatar for mattsearle

Hi I am trying to use the code below more than once within a web page. I have tried changing the id's of the div, getElementid and outDiv, however only one of the scripts will work. Is the outDIV.innerHTML the problem. Inline Code Example Here <link rel="stylesheet" type="text/css"> <style> div …

Member Avatar for mattsearle
0
173
Member Avatar for vizz

I have 4 div's. **first div** is **Centre div**, 2nd div is **right** of **Centre div**, 3rd dis **left** of **Centre div** and 4th div is **above** of **Centre div** How to detect number of div's and create **Paginated bullet like map** showing position of each div. If number of …

Member Avatar for vizz
0
289
Member Avatar for germainelol1

I have the following `layout.jade` code !!! html head title= title link(rel='stylesheet', href='/vendor/bootstrap.min.css') link(rel='stylesheet', href='/css/style.css') script(type='text/javascript') (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); body!= body And the …

Member Avatar for LastMitch
0
381
Member Avatar for secretply

Is it possible to send data from a webpage but only certain parts of it? For example: Webpage from form: <html> <head> </head> <body> <div>Non-form data</div> <form method="post" action=""> <input type="text" id="field1" /> </form> <div>Other non-form data</div> <?php $field = mysql_real_escape_string($_POST["field1"]); // Database info echo $field . "is in the …

Member Avatar for AleMonteiro
0
134
Member Avatar for while(!success)

Hi guys, I have an ImageButton control in asp.net calling a javascript function to display it in block. The elements have their own css classes, but they do not appear in the context that I gave them. I am assuming this is a problem with my css because the javascript …

Member Avatar for JorgeM
0
160
Member Avatar for jemz

Hi, can i ask some help ,my problem is that how can i display in the dropdownlist using jquerry. for example that in my database i have 1 table and 2 columns with 10 records or rows. assume that i already querried all the colors in the database,but how to …

Member Avatar for stbuchok
0
101
Member Avatar for sunnykeerthi

Hi, i have a html page with 3 frames(Index.html), and the preview is as in the screenshot. Here in Welcome.html i have a button named block. when i click this button i want left.html to be disabled(the frame in left side), i'm able to do it., but the form elements(the …

Member Avatar for AleMonteiro
0
635
Member Avatar for dany12

My code is for wordpress in noconflict mode This code works only on double click not on a single click,any advice or guideness is welcomed. I want to make it work on a single click. Thank you in advance $j=jQuery.noConflict(); $j(document).ready(function() { $j("#icomenu").toggle(function(){ $j("#menu").animate({left:"0px"}); }, function(){ $j("#menu").animate({left:"-280px"}); }) }) ;

Member Avatar for dany12
0
237
Member Avatar for varma51

<form method="post" action="#"> <table> <tr> <td></td> <td><input name=cars type=radio value=a>Volkeswagon</td> <td><input name=cars type=radio value=b>Ford</td> <td><input name=cars type=radio value=c>Honda City</td> <td><input name=cars type=radio value=d>Renault</td> </tr> <tr><td> <input type="submit" value="submit"></td></tr> </form> > Quoted Text Here so when i did page refreshing after the radiobutton selection.the radiobutton can display as unchecked. can u …

Member Avatar for gon1387
0
798
Member Avatar for jonsan32

Is there any way to get this to work in Internet Explorer? It shows/hides multiple rows in every other browser, but will only show one class's row in IE. Any help would be great. Here's the code. Thanks! <style type="text/css"> li.merk { list-style:none; display: block; width: 925px; padding:8px; margin-top:-20px; } …

Member Avatar for Airshow
0
709
Member Avatar for karlcunanan

Good day Geniuses! I am a beginner and would like to ask for your assistance regarding my Javascript not working ONLY in IE :( I dont know where to start debugging since I only use Chrome and Firefox for testing. Hope someone can help me on this. Javascript <script type='text/javascript'> …

Member Avatar for gon1387
0
1K
Member Avatar for hotelsinger

Hi Folks, I'm brand spankin' new to developing but was assigned a web app to develop in ASP.NET 4 with C#. I am using JavaScript for validation. The problem I'm having is that the date validation alert box that pops up displays a lot of unneccesary time and timezone information, …

Member Avatar for hotelsinger
0
702
Member Avatar for efth

I tried to rotate an element by changing the CSS using this code: elem.style.-moz-transform:rotate(45deg); It didn't work, and yes, I'm using firefox to test it. How should this be done?

Member Avatar for JorgeM
0
141
Member Avatar for suavedesign

Hi, I am looking for a tutorial to make an faq list with answers that pop-up, similar to this page:[http://www.lifewave.com/faq.asp](http://www.lifewave.com/faq.asp) I googled, and couldnt find anything. can anyone give me a link to a tutorial? Thanks.

Member Avatar for pritaeas
0
48
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
3K
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
275
Member Avatar for vizz

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

Member Avatar for vizz
0
187
Member Avatar for Vingklippt

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

Member Avatar for Vingklippt
0
277
Member Avatar for daniel36

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

Member Avatar for GliderPilot
0
228
Member Avatar for randomkid73

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 …

Member Avatar for randomkid73
0
133
Member Avatar for PaliGap

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

Member Avatar for PaliGap
0
249

The End.