15,688 Topics

Member Avatar for
Member Avatar for f_atencia

Hi all, I have an input box that should only contain decimal point numbers (including negative values), but I'm not sure how to remove invalid characters and replace it with something that is valid (i.e. the value e3.45 should be replaced with 3.45). If all the characters in the textbox …

Member Avatar for urtrivedi
0
175
Member Avatar for rhand

I am working on a local server on adding a media uploadbox to a Wordpress plugin Datafeedr Randam adds for a few days now and the code I have come up with so far is here [url]http://wordpress.pastebin.com/xF0xs9mL[/url] . Code added to load needed scripts starts at line 101 and media …

Member Avatar for gibigbig
0
281
Member Avatar for seblake

Greetings! I'll plead ignorance...that's easy. :-/ This is from: [url]http://www.w3schools.com/js/js_functions.asp[/url] [code] function product(a,b) { return a*b; } [/code] Without assigning a variable to the function, how does the correct value get returned? Or even interpreted? [pseudocode] a*b=c return c [/pseudocode] 2nd Q: Is this "undeclared (unseen) variable" local or global? …

Member Avatar for Airshow
0
119
Member Avatar for HelenLF

Does anyone know if JQuery can be used to produce a slideshow like the one here... [URL="http://www.scottishweddingphotographer.com"]www.scottishweddingphotographer.com[/URL] Or is there a ready made script out there that does it already. Basically I need a row of thumbnails which when clicked reveal a scrolling slideshow. Thanks in advance

Member Avatar for stbuchok
0
88
Member Avatar for iamthwee

Hi I am trying to customize the superfish (jquery) menu. Does anyone have experience working with this? [url]http://users.tpg.com.au/j_birch/plugins/superfish/[/url] Cheers.

Member Avatar for iamthwee
0
142
Member Avatar for Dean_Grobler

Hi guys, I've recently started with the [URL="http://www.sencha.com/products/touch/"]Sencha Touch API[/URL], or should i say, [B]tried[/B], as the syntax is crazy and takes some getting used to. Anyways, I'm just struggling with basic layouts in my page. Don't want to go into too much detail if no-one here has ever worked …

0
75
Member Avatar for newbie14

Dear All, I have form where I add dynamic html element as below. In the php code via ajax I have built the full drop down list. So when I post the form in IE when I do like this $masterID=$_POST['masterID']; I am able to capture the form value. But …

Member Avatar for newbie14
0
149
Member Avatar for newbie14

Dear All, I have a drop down list. Based on the selection I will create more drop down list depending on the selection of the first drop down list. Example if first I select the value as 3 then three drop down list will be created below. Thus now my …

Member Avatar for newbie14
0
100
Member Avatar for Joe34

I keep getting undefined with this script... I [CODE]document.getElementById(new_id).style.top = Top; //Works Fine document.getElementById(new_id).style.left = Left; //Works Fine document.getElementById(new_id).style.backgroundColor = Background_Color; //Works Fine document.getElementById(new_id).style.border = Border_Width+" "+Border_Type+" "+Border_Color; //Works Fine new_code = document.getElementById(new_id); //Doesn't Work!!!! document.write(new_code.value);[/CODE] I style the element correctly, but when I want to write it I keep …

Member Avatar for ko ko
0
4K
Member Avatar for raghujosh

I am trying to do some simple form validation in a JSP. But the javascript just does not work....as if its just not there. Dont know what is amiss. Here is my code [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

Member Avatar for Airshow
0
1K
Member Avatar for ivanichi

I create a form wizard (previous and next) and want to use a validation, I have multiple id to be applied on the form as an id. this is javascript for form wizard [CODE]<script type="text/javascript"> var myform=new formtowizard({ formid: '[COLOR="red"]fslide[/COLOR]', persistsection: true, revealfx: ['slide', 500] }) </script>[/CODE] and this is …

Member Avatar for ko ko
0
120
Member Avatar for web3

I have a problem with my for loop. This is the code: [CODE] for(i = 1; i <= 30; i++){ var opacity = $("#h"+i).css("opacity"); if(opacity < 1){ $("#h"+i).click(function() { $("#h"+i).css({ opacity: 1 }); }); } }[/CODE] When I put a number like [CODE]$("#h1")[/CODE] instead of [CODE]$("#h"+i)[/CODE] It works but only …

Member Avatar for web3
0
99
Member Avatar for bufospro

Hi all, I am trying to install jcart shopping cart but I have some problems when I am trying to modify it. [URL="http://conceptlogic.com/jcart/"]jcart[/URL] I would like to have a button "save in database" instead of having button "checkout with paypal". And when I click in new button to open a …

0
83
Member Avatar for munitjsr2

I have been looking for this for very long but still can't figure it out. I want a script to login to website without even typing the username and password while logging in.Its very annoying when you have to type the passwords to to login to multiple sites each time …

Member Avatar for munitjsr2
0
285
Member Avatar for Joe34

This function executes the first time correctly, but the next time the function returns an error. [CODE]function edit_div(id) { if(edit_status == 0) { document.getElementById("addnew").innerHTML = '<form><h5>Move</h5>Top Margin: <input type="text" id="topmargin"></br>Left Margin: <input type="text" id="leftmargin"></br><h5>Backgorund</h5>Background Color: <input type="text" id="backgroundcolor"></br><h5>Border</h5>Border Width: <input type="text" id="borderwidth"></br>Border Type: <input type="text" id="bordertype"></br>Border Color: <input type="text" id="bordercolor"></br><input …

Member Avatar for Airshow
0
222
Member Avatar for xylude

So I'm trying to access the .css('height') of an element and it keeps returning 0px regardless of what it's height is. I've put a couple alerts to see what it gets in the $(document).ready() function so it should be accessible by then. The height property is being set in the …

Member Avatar for xylude
0
71
Member Avatar for Soben

Hello, I'm going to make a portfolio and am trying to use jquery for effects. Basically I have several menus and when I click on any of them the showed text in content div of page should change, using ajax. These are levels: a) SlideUp the #Content div b) Change …

Member Avatar for xylude
0
203
Member Avatar for lcfr1012

IM NEW AT THIS AND I'M WORKING ON MY FIRST WEBSITE. I USED iWED AND I DON'T UNDERSTAND WHY IT WON'T WORK. WHENEVER I TRY TO OPEN IT IT SAYS: Parse error: syntax error, unexpected T_STRING in /home/a2460084/public_html/beto/index.html on line 1 [code=html]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …

Member Avatar for tian3348685
0
365
Member Avatar for aaron1988

Hi wondered if someone could help me i am having the same kind of issue: if you go here: [url="http://bluegeeks-testserver.co.cc/jaclyn-beta/index.php?route=product/product&path=1&product_id=1"]http://bluegeeks-testserver.co.cc/jaclyn-beta/index.php?route=product/product&path=1&product_id=1[/url] and your see the Select Drop Down called: Fonts, well if you choose say Airstrip or Arial the image should change but the problem i am having is. It works …

Member Avatar for aaron1988
0
553
Member Avatar for lifeworks

Hi This isn't specifically a roll-over related question exclusively. More and more when I 'Inspect element' on a roll-over link in Chrome, which clearly has two images, i see that it is infact 1 image, and the two images are stacked... How does this work? how is only one half …

Member Avatar for Airshow
0
91
Member Avatar for dyingatmidnight

My google foo is failing me, try as I might I can't seem to word things well enough to find what I want. I'm really new to javascript and AJAX, we did a little in school and I didn't really grasp it well. Given that this undertaking of mine is …

Member Avatar for twiss
0
79
Member Avatar for uselessninja

hello guys..... i need a help about javascript how to convert number (ex. 1) ----> to a word (ex, one)? here it is.... ....if i will input a number like 20 it will then displayed a word twenty.. (the numerical 20 --------> become a word "twenty") thankz in advance

Member Avatar for uselessninja
0
160
Member Avatar for ronnieaka

i tested the php version of the autocomplete example in ajax using PHP from here: [URL="http://www.w3schools.com/ajax/ajax_aspphp.asp"]http://www.w3schools.com/ajax/ajax_aspphp.asp[/URL] i tried the PHP veriosn, not the ASP version. It worked fine. Now i want to implement the same thing in JSP, and so i translated the PHP version of source file (which has …

Member Avatar for ronnieaka
0
233
Member Avatar for rizla777

Hey all Allright so here's what I'm trying to do. I'm trying to create about 6 pages into one page. They way that I want it to work is that I will have a navigation bar at the top which when one of the menu items when clicked will direct …

Member Avatar for twiss
0
139
Member Avatar for twentylemon

I have a simple function to toggle visibility of whatever. I use it in many places and I know it works fine. [code=html]<script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script>[/code] I'm now using this …

Member Avatar for twentylemon
0
220
Member Avatar for rents

Hey everyone. I'm looking to replicate an effect I saw on an app used on an iPad. Basically, there's a background image and a layered, centered content section. As you scroll down, the opacity of the background starts to fade, without effecting the content section at all. By the time …

Member Avatar for rents
0
137
Member Avatar for Ritesh_4

Hello Is there a specific tag in html so as to make a field behave as a date picker in a form?

Member Avatar for Ritesh_4
0
159
Member Avatar for mark22

I have almost given up but thought I would post here in a last attempt. I am pretty new to jquery and I am having an issue. I need to use the same carousel with three different json queries on the same page. I tried putting them in divs with …

0
111
Member Avatar for rajandass65

hi i have two div with same class name.these two div are generated dynamically by javascript from different server, so i dont have access to css file. i want hide one div when page load. so how to acess the div. regards rajan

Member Avatar for Airshow
0
87
Member Avatar for raghujosh

How can I set the value of a textbox to the user entered value(it's a number). [ICODE]<input type = "text" name = "somename" value = "">[/ICODE] User enters 3 in the textbox The code should transform to [ICODE]<input type = "text" name = "somename" value = "3">[/ICODE]

Member Avatar for twiss
0
102

The End.