15,121 Topics

Member Avatar for
Member Avatar for Cool&Awesome

Hi Everyone, I have a very simple js function to toggle div visibility, here's the working version: [CODE] function Toggle(obj) { var state = document.getElementById(obj); if (state.style.display === 'block') { state.style.display = 'none'; } else { state.style.display = 'block'; } } [/CODE] Now, as I have multiple divs, I want …

0
77
Member Avatar for nonshatter

Hi all, I'm relatively new to JS and I have an issue which I can't seem to get my head around... I have a perl script which iterates through an array and populates a table with its values. Within the created table I have a link in each row which …

Member Avatar for nonshatter
0
142
Member Avatar for Gunto

Hello! I have a table with cells, and each cell contains the following code: [CODE] <td align='center' bgcolor='#C45651' width='80' height='60' nowrap='yes' id='$' onClick='callPicture(this);'><p dir='ltr'><img border='0' src='X.jpg' width='80' height='60'></td> [/CODE] The javascript function [CODE]function callPicture(ID){[/CODE] gets the cell's ID and uses it. (This table is being written cell be cell dynamically …

Member Avatar for @developer
0
139
Member Avatar for alokshri67

Hello, I want to give alert on click of button my codes is [CODE] Protected Sub BTN_SAVE_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTN_SAVE.Click Response.Write("<script>alert('hello')</script>") End Sub [/CODE] But after clicking it is giving alert message. why? Alok Shrivastava

Member Avatar for alokshri67
0
74
Member Avatar for kiranking

In my form there are two anchor tags [B]Add[/B] and [B]Clear[/B] having same class called button. What I am trying is submit the form data to another page(post) using ajax & clear is for clearing the data using javascript.The problem is that as both buttons having the class the same …

Member Avatar for kiranking
0
147
Member Avatar for dylank

Hey guys - I'm working on a new website template. It works great, except for a little bug with the Contact panel. It should slide into the screen from the right side into the center, but fails to do so. I believe it is because of the CSS property "display" …

Member Avatar for Airshow
0
87
Member Avatar for vishalkhialani

Hi, My script works perfectly but when I put in in the wordpress post the below variable is changed from [CODE] var initialData="\{\"0name\":\"Secret\",\"0brandStatus\": \"checked\",\"1name\":\"OldSpice\",\"1brandStatus\": \"checked\",\"2name\":\"Degree\",\"2brandStatus\": \"checked\",\"3name\":\"Dove\",\"3brandStatus\": \"checked\",\"4name\":\"Axe\",\"4brandStatus\": \"checked\",\"5name\":\"Maxim\",\"5brandStatus\": \"checked\",\"6name\":\"Nivea\",\"6brandStatus\": \"checked\",\}" ; [/CODE] [B]to[/B] [CODE] var initialData="{"0name":"Secret","0brandStatus": "checked","1name":"OldSpice","1brandStatus": "checked","2name":"Degree","2brandStatus": "checked","3name":"Dove","3brandStatus": "checked","4name":"Axe","4brandStatus": "checked","5name":"Maxim","5brandStatus": "checked","6name":"Nivea","6brandStatus": "checked",}"; [/CODE] [B]How do I make sure the …

0
71
Member Avatar for amylawson

Recently I came across this website [URL="http://www.willebois.nl/photo/"]http://www.willebois.nl/photo/[/URL].I would like to know if we can acheive the same effect using something other than javascript.I am a novice programmer an really dont understand the logic behind the website. please help

0
45
Member Avatar for aditya61

The above code will get the user information from page "getuser.php". The output of getuser.php has some numericals populated in 5 rows. The 6th row i.e., the table footer has the sum of all numericals populated in the above 5 rows. The numericals in the first 5 rows are populated …

Member Avatar for scrappedcola
0
310
Member Avatar for Naggelos

Hello, I'm looking to learn Javascript. My knowledge of it is currently very limited, so I would like to learn it properly.. from scratch. Could anyone recommend me Javascript resources?

Member Avatar for bben95
0
82
Member Avatar for petercpwong

I was just wondering if it was possible to upload an image using XHR rather than a hidden iframe? If so, do all modern browsers support it?

Member Avatar for mehdi991
0
308
Member Avatar for kischi

Hi I'm tryng to make two boxes on my page always the same hight, no matter how much text is inside one of them. So the boxes will always be the hight of the box with the most text. you can see what I meen here: [url]http://wearecrunch.dk/test-globeaid/[/url] I would wan't …

Member Avatar for kischi
0
175
Member Avatar for xxcaliburr

How to align three divs to the right part of the page. We can do this [CODE] div1 { padding-left: (xyz) px; float:left; } div1 { float:left; } div1 { float:left; } [/CODE] but my question is what if these three divs are not of constant width (e.g if they …

0
53
Member Avatar for innovativesln

There are lots of websites , which are using ajax. But, there are some who just made ajax most popular thing nowadays . Here are some examples. Google Twitter Facebook Linkedin Orkut Myspace Google maps Wordpress Knol

-2
90
Member Avatar for ChrisATO

Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. Here is the issue I am having: In my project, I have a index.php page with a sidebar menu and a div id called “content”.The user can select different menu items …

Member Avatar for ChrisATO
0
369
Member Avatar for keavon

Hello. What I need is very simple in concept, although I am the worst in the world (not really) at JavaScript. I basically want to make a displayed image change, no special effects, every set amount of seconds. I also want to have a forward and backward image button to …

0
93
Member Avatar for Whilliam

Hello. Im not very good with javascript. My knowledge is very limited. I need your help. See, this code is going to check if a user has inputted an empty field or not. As of now, Im testing it on 'first name' text field. If the user didn't input anything …

Member Avatar for hielo
0
444
Member Avatar for camilahlah

I need to get the values of all textboxes that I've generated through dropdown list using AJAX. I've been getting only the last value of the textbox, I can' seem to loop it. Anyway, here's my code: [CODE] <? include('connect.php'); $tag = $_REQUEST['tag']; $ProjectName = $_REQUEST['ProjectName']; $Description = $_REQUEST['Description']; $textboxes …

0
78
Member Avatar for Infame

Hi there! I recently attempted making a code that would strip certain characters: [CODE]function writeColum () { var x = document.getElementById("wc").value; document.getElementById("passValue").innerHTML=x.replace(/(\<.+>|<\/|<|>)/ig, "[censored]"); }[/CODE] It works fine when showing it in 'live preview', but how can I make the clean value be used in a <form> be used instead of …

0
77
Member Avatar for kiranking

I am trying to code a form that has multiple textbox without refershing page using ajax, then after each textbox threre will be link called add which POST call the other php called addnew.php. In addnew.php data will we added to database(postgres). But I am geting problem while getting the …

Member Avatar for diafol
0
202
Member Avatar for public-image

Hi Guys! I'm currently trying to refresh a DIV on my page that is linked to MYSQL (changes if database has 1 or more rows) without refreshing the entire page, I've tried using javascript although it didn't seem to work and so Im back to the drawing board, Im not …

Member Avatar for rizvihaider72
0
101
Member Avatar for brandonna

Doing a upgrade most likely next year on my website, but need to figure out how much to budget for it. I like the look of the following sites and was wondering: 1) mint.com 2) benzinga.com Can you tell if they are: a) wordpress customization jobs? or another cms tool? …

Member Avatar for rizvihaider72
0
285
Member Avatar for arthurav

I have created a checkDelete function to ask the user if he wants to delete the selected entries from a database. The problem is that choosing cancel still deletes those entries. This is the function: function checkDelete (){ var answer = confirm("Are you sure you want to delete the selected …

Member Avatar for almostbob
0
341
Member Avatar for rajesanthu

[COLOR="Red"]NB:Excuse me Experts,,,This is only for beginners......[/COLOR] [COLOR="Green"]JAVASCRIPT FOR CHECKING WHETHER THE TEXT FILED IS FILLED OR NOT[/COLOR] Be noted that 1.The form given above is just for example 2.You can add your own form,,please dont forget to chenge the names in assignments as you are going on your own …

0
209
Member Avatar for sachin bhosale

how to just make same effect means same on cross browser.i just make one template in which there are images in IE6 background of images get something light white color. help me out!

0
60
Member Avatar for sumit_indian

Hello Friends , I m new in Javascript i m trying to validate two date coming in the format `DD-MON-YYYY` coming through `PopUP-Calendar` in two textboxes but unable to get required result I musing following function: <script type="text/javascript"> function check(){ var SDate = document.form.previous_date.value; var EDate = document.form.next_date.value; if (SDate …

Member Avatar for sahayata4u
0
235
Member Avatar for severman

hi all is it possible to find with jQuery an id that start with something, then a specific string, and then something. for example lets say that i have this divs [code] <div id="first_search_div1"></div> <div id="second_search_div2"></div> <div id="third_bla_div3"></div> [/code] i want to find this patern: *search* the result should the …

Member Avatar for Airshow
0
149
Member Avatar for thatguy2

I am trying to pre-populate form selections by evaluating a string. I will import a dynamic string later, but wanted to focus on the search function. If the value has a match in the string then write "selected" in the input tag to select it for the viewer. What am …

Member Avatar for thatguy2
0
161
Member Avatar for mbarandao

I'm working with this form which has js calendar. unfortunately, I can't get the calendar to work onclick. It produces the following error: [CODE] Uncaught SyntaxError: Unexpected token [/CODE] can't make out the error. Not sure if this is related to another onclick function. Here is the actual code: [CODE] …

Member Avatar for mbarandao
0
137
Member Avatar for kiranbvsn

hi all i developed one application in .net which i've used both javascript (on button clicks) and jquery (using script manager) my problem here is i've disabled "Edit and Delete" buttons in my page when clicking the "Add" button so far the application worked fine with in my system (i.e. …

Member Avatar for Airshow
0
60

The End.