15,117 Topics

Member Avatar for
Member Avatar for mbarandao

Good day all: I'm wondering how does one go about excluding a particular item on a form from being taxed? I have a check box, which onclick, calculates the sales taxes on all items on the form. to perform the tax calculation, I'm using: var tax = ($('#taxbox').attr('checked')) ? (subtotal …

Member Avatar for dany12
0
113
Member Avatar for dany12

I want to change the radio button color when i slect them and then change them back to default when I deselect them I have made some code but this is not working as it should be $(document).ready(function(){ $(':radio').click(function(){ if($(this).not(:checked)){ ($this).closest('td').css('background','none') } else{ ($this :checked).closest('td').css('background','red') } )} });

0
86
Member Avatar for harshm027

Hi, I have a form with various elements such as ids, location. I need to pass these values to a php file through a javascript function. Right now I am able to pass only ids. The Form <form action="display.php"> <label>Your ID</label> <input type="text" id="ids" name="ids" value=""> <label>Location</label> <select name="location" id="location"> …

Member Avatar for jstfsklh211
0
176
Member Avatar for khajvah

Hello ppl, I am learning PHP. I already know some programming languages, so i didnt read whole book i had, but after i read part of the book, i understood that i get the information but can not use it, so my question is-Is there any videos or books, which …

Member Avatar for Red Dragon
0
308
Member Avatar for drjay1627

Hello, I created 2 lightboxes on my page. When I just had one, everything worked fine. The 2 lightboxes are not displayed at the same time. There are 2 links that open each respectly. <a href="#" class="lightbox1">Open box 1</a> <a href="#" class="lightbox2">Open box 2</a> The following is the HTML/CSS: <div …

0
105
Member Avatar for rori

hi, i posted this in the javascript forums but didn't get any replies, maybe this is a better place. i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists …

Member Avatar for marsystsm123
0
2K
Member Avatar for MarielaMontaldo

Hey DW fellas I'm having some trouble when I run my code on IE. I tried it on Chrome and Firefox and it works, but it doesn't at IE. I think that is a Javascript problem, but I can't find the solution. So please, if you can give me a …

Member Avatar for ko ko
0
265
Member Avatar for AHMED_DB

**Hello every one, this is my first post since the day I registered. I need your help as I'm new to the programming world. I'm doing doing JavaScript and so far was going smooth.. But when I tried to work on the exercises that came with textbook, I failed. Here's …

Member Avatar for AHMED_DB
0
95
Member Avatar for arcticM

I can't think of how this thing is called and so I can't find any example on google, I'll try to explain my vision best I can. I want to have a list of square divs, each has contant (but that's not the point), so the divs are standing in …

Member Avatar for blinkey
0
112
Member Avatar for ak47carbon

i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it …

Member Avatar for dany12
0
426
Member Avatar for SergioQ

<html> <head> <title>My Facebook Login Page</title> </head> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : '220467641404829', status : true, cookie : true, xfbml : true, oauth : true, }); }; (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = …

Member Avatar for dany12
0
100
Member Avatar for cjay175

Hey, I was wondering if someone could help me with this. I want to, when an anchor link is clicked, the id of the link is grabbed by jquery then passed to a function. The id is would be the same as the id of the div that is used …

Member Avatar for efadfsfasdf
0
5K
Member Avatar for Bisquick

Is there any way I could make specific text strings "invisible" on my web page? For example, If I were to specify the string "hxxp://nullrefer.com/?", I would need that text to appear invisible on my page everywhere it's mentioned, automatically. So, if the url "hxxp://nullrefer.com/?hxxp://www.Amazon.com" were to be mentioned on …

Member Avatar for dany12
0
226
Member Avatar for aaloo

this is my javascript for validation of a form .It works perfectly <script type="text/javascript"> function validateForm() { var x=document.forms["contacts-form"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } var x=document.forms["contacts-form"]["name"].value; if (x==null || x==""||x=="Name:") { alert("First name must be filled …

Member Avatar for aaloo
0
183
Member Avatar for rakibtg

a script which will show a page content like video, photos to a user if they share it on Facebook. i mean to watch a video they have to share it first and only then they will able to watch it from web page...can i do it with javascript? like …

Member Avatar for dany12
0
85
Member Avatar for gorleone

Hi guys, I have a maybe simple question, but I'm wonder how they do this: [http://www.blacknegative.com/#!/adisseo/](http://www.blacknegative.com/#!/adisseo/) background image scale perfect in all screen resolution (even 2560x1440 or 800x1280), and the background picture is only ~1000 x 1000 pixels. I make similar effect with <img src=""> and some javascript, but they …

Member Avatar for gorleone
0
183
Member Avatar for MarielaMontaldo

I have another problem that is driving me crazy. I separated sections on my page with normal anchors, but when I click, they take me to the part of the page where the div is, and I want to keep focus on the top part of the page, I mean, …

Member Avatar for jackbauer24
0
114
Member Avatar for chakrapani

When we signout the form How can i disabling back button and, not only disabling back button but also delete history from browser. Suppose i used <script language="javascript" > javascript: window.history.forward(1); </script> to disable back button , its working. when i go to back list and click previous histories it …

Member Avatar for SehswagGxx123
0
11K
Member Avatar for harshm027

Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is …

Member Avatar for harshm027
0
198
Member Avatar for mbarandao

Hello: I would like to get confirmation from user, if a particular checkbox on form is not checked, whether they want to submit the form without checking this box. I have written the following, but need help with it --missing something. <script type="text/javascript"> function taxable(){ if (document.processEstimate.tax.checked == 0) { …

Member Avatar for mbarandao
0
174
Member Avatar for divsok

how can i submit a form when the page is loading..my code is here <div id="main_div"> </div> <s:form action="getpagethreads" id="ini"> <sx:submit targets="main_div" value="submit" /> </s:form> actually i don't need to show any buttons in my form...what can i do for that?

0
96
Member Avatar for TonyG_cyprus

Hi, Does anyone know if Bing translator is still available, or has it gone the same way as google, and converted to 'paid'? I'm trying to use jquery translate on a website that I'm building, but despite 3 days of searching I cannot find how to get a Bing Appid …

Member Avatar for TonyG_cyprus
0
118
Member Avatar for patocardo

I cannot find the mistake in the following code function doArray(n){ // test with n > 1000 var str, i, j,arr=[], cnt=0, q=0, re; str = ["one two three","two three four","three four five", "four five one", "five one two"]; for(i=0; i<n; i++){ j = Math.round(Math.random()*(str.length-1)); arr.push(str[j]); } re =/two/g; for(i=0; …

Member Avatar for Airshow
1
130
Member Avatar for harrispc

I have written my first javascript block which functions correctly in IE, however nothing executes in FF or chrome. have I missed something. Also is there a way to stop IE from prompting to run it? TIA Javascript function getCondition() { if (window.XMLHttpRequest) {// code for ie7+, firefox, chrome, opera, …

Member Avatar for jmichae3
0
167
Member Avatar for ettypaldos

I would like to alter the example provided [URL="http://www.w3schools.com/php/php_ajax_database.asp"]here [/URL]so that there is a second dropdown input for 'Male/Female'. I know the example itself does not provide a 'Sex' field in the MySQL db, but let's just pretend it does. Furthermore, assume we have a new in out select for …

Member Avatar for johns1982
0
5K
Member Avatar for softDeveloper

Dear All, Please suppose that I have this line of code, and that my selection range goes from div element with id=1, starting at '2', to div element with id='2', ending at '8'. `<div id='1'>1`2`3</div>456<div id='2'>7`8`9</div>`. I'm using chrome, I would like to get the position of the cursor inside …

Member Avatar for patocardo
0
178
Member Avatar for mbarandao

I'm populating a chained linked dropdown box with the following code: $(document).ready(function() { var data = <?php echo $arr;?>; var id; function getData(passCatID){ var content = ''; var content = '<option name="specify id="specify" style="background: url() right no-repeat; width: 20px">------SPECIFY-----</option>'; var product_desc = ''; var invt = ''; var qty = …

Member Avatar for mbarandao
0
243
Member Avatar for mbarandao

Hi: I was wondering if it is possible for an click() element for jquery to call another document.ready() element from within. Here is what I mean: I have: $('#addrow').click(function(){ $('.item-row:last').after('<tr class="item-row"><td valign="top" align=center style="border-left: 0px solid #cccccc;" width="100%" class="item-name"><div class="delete-wpr"><?php echo $dd2;?><a class="delete" href="javascript:;" title="Remove row">D</a></div></td><td valign="top" align=center ><select id="service_subcat_1" …

Member Avatar for mbarandao
0
133
Member Avatar for emclondon

I'm trying to upload an Image to PHP. The most common method I found out to do this was using FORM/POST; But that doesn't help me for what I am about to do. What I actually am trying to do is upload an image to PHP, the PHP Script will …

Member Avatar for pritaeas
0
685
Member Avatar for rayidi

# How to access $_SESSION in jQuery ? # I'm developing a existing chat using jQuery with PHP. here is the code function createChatBox(chatboxtitle,minimizeChatBox) { if ($("#chatbox_"+chatboxtitle).length > 0) { if ($("#chatbox_"+chatboxtitle).css('display') == 'none') { $("#chatbox_"+chatboxtitle).css('display','block'); restructureChatBoxes(); } $("#chatbox_"+chatboxtitle+" .chatboxtextarea").focus(); return; } $(" <div />" ).attr("id","chatbox_"+chatboxtitle) .addClass("chatbox") .html('<div class="chatboxhead"><div class="chatboxtitle"><a …

Member Avatar for pritaeas
0
218

The End.