20,316 Topics
So I want to show hide various parts of a form based on html form entries and this is what I have so far. [CODE]<script language="JavaScript"> function showhidefield(method) { if (method = 1) { document.getElementById("hideablearea").style.display = 'block'; document.getElementById("hideablearea2").style.display = 'none'; document.getElementById("hideablearea3").style.display = 'none'; } if (method = 2) { document.getElementById("hideablearea").style.display …
I would like to know how to create a query that will grab the first two results of the combobox and display on the Third comboBox without refreshing the page just the form i mean all to be done on the same page not a secundary page. Thank you! [CODE=php]<table …
Hi there, I need some help actually using the ajax I've got, and defining the url in the ajax [if that makes sense] I've been trying to do it but It's not working atall and I wondered if someone could actualy show me in the code how to go about …
I have a simple html form and i have a small piece of script which validates it, I would like it so that after the validation is carried out, if the return value is true, then the user will be redirected to index.html i have tried several pieces of code …
Hey everybody So I created a dropbox that would only enable certain entries in a second dropbox when specific options in the first dropbox are selected. For example, if A is selected in dropbox 1, then Z and X will be available for selection in dropbox 2, whereas if B …
I am embedding a flash photo gallery object in an html page. The flash gallery has a param "thumbVisibility" that allows you to set the visibility of the thumbnails with the options "NEVER" and "ALWAYS." I have it set to "NEVER" so that the thumbs do not show when the …
I just need to know how to update a time when someone imputs a short version. such as, if i were to put "3a" in the label, i want it to automatically put in 3:00am. Is there any way to do such a thing.?
Hi guys Im having a bit of trouble with my form, I basically want the values from the checkboxes to output to a div, I also want to give the check boxes a numerical value eg: if monday conference selected that would cost £80 if Tuesday conference selected theat would …
Hi, I need to display a table with many rows. I would like to only paint one page and have the scroll bar of the containing div set to the real range. I would also like to listen to the scrolling event and then display the relevant set of rows. …
Hi, I'm kind'a new to AJAX, and have not a lot experience with JS, so this might be just a stupid beginners-error... I'm busy creating a PHP-website in which i'd like to implement some dynamic features (like adding comments tot photo's without having to reload, searching a user-DB, etc). I've …
I'm interested to see how many languages most programmers end up learning and what languages are the most useful or popular. I've seen people talk about Javascript, C, PHP, Visual Basic, SQL, Java, and Python a lot. I thought it would be good to write down a list of programming …
ok there's a game i want to try and make an application for using Java i have some knowledge of JavaScript but its only used for drawing pictures and graphs and arranging images :P what i want to do is create an app for a game called tribal wars so …
how can i clear cookies from browser when ever i change any item from a drop down using javascript.....
hi, now i get value if i selected checkbox(id which was selected), but how get value when i unselected (id which was unselected)? For example I push on 1, and i get value 1. When I unselect 1, i get value 1. I hope you understand my problem. [CODE]<script> $(document).ready(function() …
hello all, i am having a problem.When i was working in an application without master page and content page, javascript was working finely.But later i needed to use mastr paga in my project.After using master page, javascripts is giving error on call of the function. error is like below. "Microsoft …
Hello, I've created two form fields (username, password). When a user comes to the page, the word "Username" is shown in the first form field. The word "Password" is shown in the second field. When a user clicks inside the field, the word inside the field erases automatically, allowing them …
hi all, i am trying to have the content of a txt file loaded in a page (which works), but this file changes on a regular basis and I need just the text to refreash, not the whole page, this is what I have... As mentioned, it correctly displayes the …
hi everyone, im having some trouble with design im working on. Basically what i want to achieve is when the user hovers on an image, a semi-transparent black box pops up over the image with a description. I have tried a few ways but am now stuck for ideas. My …
Hi, What i want is: I have a textarea. When user selects some text and presses a button "[smth]" is added to the begin and end of selected text. How can i do this? It must work on all browsers. The same thing makes daniweb when you format a text …
Hey guys, I'm having some AJAX troubles that hopefully someone can help me with. I have some PHP code, which works fine. And I'm trying to call the PHP function with AJAX. But I've never used AJAX at all so I'm a little confused. I've tried to fiddle around with …
hey huys i have a javascript ajax function that gets the parameter "id". I want to send it via post or get to a php file that gets database info based on the "id" but i cant get the id to transfer over to the php file. here is my …
My school assignment is to use browser detect to get the name and variation of a browser. I have been looking for detectible features, but the codes are way long. Document.all is good for seeing if this is explorer 4+, but what is a good thing for finding explorer 7? …
My code gives me an error only the first time when i press the checkbox. If i press it for the second time or just to uncheck the checkbox and it gives me the right answer. Can you please help me, i tried almost everything. I use IE7, xampp with …
Ok, so here is what I've gathered together so far. I've got a countdown timer, that at the end of 180 seconds it executes the function clearit. The problem I'm having I would like to put a user chosen variable in place of the 180. Any help would be greatly …
hello! i need your experience in this: i want to build a web page that i had categories and in each category i have a small pictures and a link named next so when o click "next" i want the 5 small pictures to be replaced with new 5 pictures …
This is a very simple WYSIWYG Text editor that only has three options Bold, Italic, and Underline. just copy and paste on the page you want it on. it is really easy to add more features. ENJOY
Good Day All I have a Method that i have defined that i will access in JavaScript(Page Method) and its defined like this [CODE] [WebMethod, System.Web.Script.Services.ScriptMethod] public static void Getadata(String StrSearch) { View obj = new View(); obj.Bind_SearchBox(StrSearch); // return Scriptt; }[/CODE] And the Bind_SearchBox() method is a non static …
Hey guys fairly new to PHP as is, I need to run a PHP function call through an onClick which through my research I have found that I need to use AJAX. Let me explain better what I am trying to do. I am currently using Simplepie PHP to pull …
Hi Guys, I'm trying to make an option on my site where visitor could select certain image(s) to print. Here is the closest code, I've found. [url]http://javascript.internet.com/misce...elds-only.html[/url] I'm not good in Javascript to write the code. I would appreciate any help. Here is my approximate code. <a href="#">Print selection</a> <br> …
Please help me to get All facebook in my application with Javascript only.
Here is a code I used for selecting the dates under my specified day (i.e. for all mondays of the month, tuesdays and so on. Take a look: [CODE]$('#dp1').datepick({multiSelect: 5, showTrigger: '#calImg', onShow: function(picker, inst) { var target = $(this); picker.find('div.datepick-month th span').each(function() { $('<a href="javascript:void(0)" class="' + this.className + …
Unable to close the popup. Have done the best I can Can someone please help me here. Would also like to be able to display without scrolling bars Here is the link [URL="http://www.videowebmastery.com/videopresenters/index.htm"]http://www.videowebmastery.com/videopresenters/index.htm[/URL] Cheers
Hello all, I made a custom theme with jquery theme roller.Accordion panel and a tabs panel. The problem is that the objects are not displaying correctly as they should on my page. When i remove the link to my main css file, the jquery shows up exactly as it should. …
Hi there, I solve a problem with jQuery plugins. On my page I need to use 3 plugins - the one is lightbox, the next is plugin for google maps. And the last plugin solves scrolling content - I click on the button and on the page shows to me …
Not sure if this is the best topic to post this question. We had an issue where during uploading javascripts, they became corrupt and no longer executed on the web page. Is there an automated way to detect if the uploaded files match the source file to detect corruption? We …
I have results of people that i need to compare and echo out. Eg 2x dropdown menus with all the peoples names in and each field then echoed in a table once the 2x dropdowns have been selected. the 2x dropdowns will be the same and have the same names …
How do I insert this: <script language="JavaScript" type="text/javascript" src="http://www.ABC.com/members/display.php?token=email"></script> Into the values of this: <input id="Email" name="Email" type="text" size="30" /><input name="emailagent" type="HIDDEN" class="textfield" id="emailagent" value='' />
Hello, how do you add a custom button to a webpage and link it to another page? ANother question is how can you make the button rollover when someone's mouse is over the button and when they click the button? Would I need javascript? Thanks
I have 10 navigation tabs in my website. Iam working on retaining the selected value from the drop down and should change the corresponding divs throughout the website....meaning based on selected value the content on all the pages should change...which should not let the user to select everytime ... I …
I making a form, nothing special, just for myself... so when user loads my form it askes him for his name ( with prompt 'var name=prompt("Your name please",""); ) then says Welcome 'name' (with alert box). THEN he can start filling in the form. What I want is for a …
can someone please fix whats wrong with the new problem. i really have no idea how to change it. 2 pages. the problem is when i have the ajax pages and i go to the next page, it doesnt highlight the number im on anymore. and then there was this …
Hi guys i have a problem with JScrollPane, Firstly i have 2 custom JPanel's i wanted to add them to a JSplitPane so i added them to a JScrollPane and then those JSplitPane but the problem is if i drag the divider in splitpane the panel doesnot scroll :'( Here …
I'm trying to code a play/pause button via Jquery and the Cycle plugin. I'm able to toggle between the two and the "resume" function works, but am not sure how to make the "pause" function work. Any ideas? Thanks in advance for your time! Here's my JS: <script type="text/javascript"> $(document).ready(function() …
Hi there, I have a piece of code that should give my category list a nice accordeon effect to show the sub categories. [CODE] <ul class="categorymenu"> <li class="cat-item cat-item-10"><a href="...">cat1</a> <ul class='children'> <li class="cat-item cat-item-11"><a href="...">cat1sub1</a> <li class="cat-item cat-item-12"><a href="...">cat1sub2</a> <li class="cat-item cat-item-13"><a href="...">cat1sub3</a> </ul> </li> <li class="cat-item cat-item-10"><a href="...">cat2</a> …
Have the Javascript function below which takes the name of an input on the form passed as a variable so that 1 function can check many inputs as I have up to 3 fields per form that can accept this data range. [code] function contact_number_check(formObj,field) { var obj = document.forms[formObj]; …
I need to disable and enable some drop down list data according to conditions I have two drop down lists. Say, First ddlist has A,B,C,D,E,F and second ddlist has 1,2,3,4,5. When I select C from the first ddlist, then 1,3,5 should be disabled in second ddlist. And again if I …
[U]Hey Guyz ....This is Aneesh I am new to javascript... and I needed a Sliding Javascript Dropdown Box ....[/U][B] I got many links on the web but with no explanation...[/B] [B][I][U]What I need:-[/U][/I][/B] I need some links with Sliding Javascript Dropdown Box source and explanation... Thanking You... Aneesh Dogra
I'd like to find a way to change photos on a website using Javascript or some type of Javascript framework. I think I've seen this done before but I can't recall where. I need the photos to behave like a slide show and change automatically without any user interaction. And …
Hi, Is anyone familiar with a Data Pager implementation written in JS? I need to write one (to attach to a JS ListView) and was wondering if there was such a thing already. Thanks, Sharon
Hello. How can i know which way the thumbtrack event eccured? i mean if the user dragged the thumb up or down? in general i'm having lots of trouble with this scroll bar because it effects 5 textboxes. if anyone can give an example on how a thumbtrack event looks …
The End.